Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 28 of file fparser_parse.C.
29{
31
32 libmesh_error_msg_if(argc < 2, "Usage: " << argv[0] << " function_to_eval [x] [y] [z] [t]");
33
34 std::string function_string = argv[1];
35
37
38 const Point p ( (argc > 2) ? std::atof(argv[2]) : 0.0,
39 (argc > 3) ?
std::atof(argv[3]) : 0.0,
40 (argc > 4) ?
std::atof(argv[4]) : 0.0 );
41
42 const libMesh::Real t = (argc > 5) ? std::atof(argv[5]) : 0.0;
43
45
47
48 return 0;
49}
A Function generated (via FParser) by parsing a mathematical expression.
A Point defines a location in LIBMESH_DIM dimensional Real space.
The libMesh namespace provides an interface to certain functionality in the library.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
References main(), libMesh::out, and libMesh::Real.