|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
This file contains C++ code for setting up the command-line handler. More...
#include "SignalHandler.H"#include "FFaLib/FFaDefinitions/FFaMsg.H"#include "FFaLib/FFaCmdLineArg/FFaCmdLineArg.H"#include "FFaLib/FFaOS/FFaFortran.H"#include "Admin/FedemAdmin.H"#include <cstring>
Classes | |
| class | F90Msg |
| A sub-class of FFaMsg that passes the list-messages to Fortran. More... | |
Functions | |
| static void | emergencyExit () |
| Cleans up on disk on emergency exists, exceptions, etc. More... | |
| void | cmdLineArgInit (int argc, char **argv) |
| Initializes the command-line parser. More... | |
| void | redirectOutput2Ftn (int whichFile) |
| Redirects all error messages from C++ to F90. More... | |
| void | readOptionFiles (const char *program, int whichFile) |
| Reads the command-line options files. More... | |
This file contains C++ code for setting up the command-line handler.
The file contains some extensions of the functions located in cmdLineArgInitStd.C, to deal with output redirection, program versioning, signal handling, etc.
| void cmdLineArgInit | ( | int | argc, |
| char ** | argv | ||
| ) |
Initializes the command-line parser.
| [in] | argc | Number of command-line arguments (including program name) |
| [in] | argv | List of command-line arguments |
|
static |
Cleans up on disk on emergency exists, exceptions, etc.
Used by signal handlers only.
| void readOptionFiles | ( | const char * | program, |
| int | whichFile | ||
| ) |
Reads the command-line options files.
| [in] | program | Name of the program module |
| [in] | whichFile | Option for console output redirection |
| void redirectOutput2Ftn | ( | int | whichFile | ) |
Redirects all error messages from C++ to F90.
| [in] | whichFile | Defines to which file we should write (see below) |