|
Saddle-Point
|
Program entry point: parse the parameter file and run a SaddlePointProblem<2>.
More...

Functions | |
| int | main (int argc, char **argv) |
| Program entry point. | |
Program entry point: parse the parameter file and run a SaddlePointProblem<2>.
The main() function is intentionally short. Its job is to
"project.prm" when no argument is given),SaddlePointProblem<2>::Parameters declare its entries on it,Parameters object,SaddlePointProblem<2> problem and call its run() method, and| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Program entry point.
Usage:
If no parameter file is given on the command line, the default name "project.prm" is used. The chosen file must contain the entries declared by SaddlePointProblem::Parameters::declare_parameters().
The body of main is wrapped in a try/catch block: any std::exception thrown deeper in the program will be reported on std::cerr, and the program will return 1 instead of aborting silently. A second catch-all handler reports unknown exception types.
| [in] | argc | Number of command-line arguments. |
| [in] | argv | Command-line argument vector. argv[1], if present, is the path to the parameter file. |
0 on successful execution, 1 on any uncaught exception.