On 12/13/2012 05:01 PM, Jens Lohne Eftang wrote: > On 12/13/2012 04:49 PM, Kirk, Benjamin (JSC-EG311) wrote: >> On Dec 13, 2012, at 3:45 PM, Jens Lohne Eftang <[email protected]> wrote: >> >>> Is there a way to get the approximation order of a variable of a system? >>> I was looking for something like system.get_variable_order(string >>> var_name) …. >> You can get the Variable class associated with a variable number, and it >> knows the order. >> >> So I think >> >> system.variable(0).order(); >> >> is what you have in mind. > Ehm .. are you sure? There's no order member in the Variable class. Will > system.variable(0).type().order do what I want? (I.e., I want it to > return FIRST if variable 0 is added as system.add_variable("u", FIRST).
Yep, type() returns the FEType, which includes the Order (and other things as well, have a look in include/base/fe_type.h for more details) David ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
