Dear all:

I'd like to use libMesh's GetPot to read in a vector from a file, for example 
in the main function:

   GetPot infile("input.in<http://input.in>");
   std::vector<int> N = infile("N");

In the input.in<http://input.in> file, for example I have

   N = 1   2   3

My purpose is to make the input file concise to some extent. I searched around 
the libMesh examples and GetPot class, but didn't notice anything like this. Do 
I miss anything there? or are there other ways to do this sort of thing?

Thanks in advance.

Xikai
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to