Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 27 of file getpot_parse.C.
28{
30
31 libmesh_error_msg_if(argc < 2, "Usage: " << argv[0] << " inputconfigfile [outputconfigfile]");
32
33 GetPot gp(argv[1]);
34
35 std::ostream *my_out;
36 std::ofstream fout;
37 fout.exceptions ( std::ofstream::failbit | std::ofstream::badbit );
38
39 if (argc < 3)
40 my_out = &std::cout;
41 else
42 {
43 fout.open(argv[2]);
44 my_out = &fout;
45 }
46
47 gp.print("", *my_out, 1);
48}
The libMesh namespace provides an interface to certain functionality in the library.
References main().