Re: [Libmesh-users] vector-valued command-line argument

2012-02-22 Thread Dmitry Karpeev
Okay, that's good to know. What I need is simple enough that I can get away with direct GetPot calls. command_line_point() might not be a bad thing to have, though (IMHO). Dmitry. On Wed, Feb 22, 2012 at 4:34 PM, Roy Stogner wrote: > > Despite the fact that we've forked GetPot, I've been trying

Re: [Libmesh-users] vector-valued command-line argument

2012-02-22 Thread Roy Stogner
Despite the fact that we've forked GetPot, I've been trying to avoid making it too libMesh-dependent - everything specific to us is in those 30 "#ifdef USE_LIBMESH" lines at the top. Unfortunately that precludes adding simple accessor functions for Points etc, unless we someday write a whole libM

Re: [Libmesh-users] vector-valued command-line argument

2012-02-22 Thread Dmitry Karpeev
Okay, thanks, Cody. Good to know. It doesn't seem to be hard to do. Dmitry. On Wed, Feb 22, 2012 at 3:59 PM, Cody Permann wrote: > I'm fairly certain there's not a wrapper in libMesh for doing this > automatically. We've created one in MOOSE for reading and creating various > vector types like

Re: [Libmesh-users] vector-valued command-line argument

2012-02-22 Thread Cody Permann
I'm fairly certain there's not a wrapper in libMesh for doing this automatically. We've created one in MOOSE for reading and creating various vector types like RealVectorValue from an input file but you will probably have to write a little bit of GetPot code to do this on the command line in libMe

[Libmesh-users] vector-valued command-line argument

2012-02-22 Thread Dmitry Karpeev
Dear All, Is there an easy way to read in something like --center_point 0.5 0.5 0.5 in libMesh? command_line_value() doesn't help here and I've decided that I have to make direct GetPot calls (actually, wrap them as 'command_line_vector()'), but I wanted to make sure that I'm not missing a nice wa