29#include "b2ppconfig.h"
31#include "utils/b2comm.H"
50 std::shared_ptr<Communicator> comm, std::ostream& out = std::cout,
51 std::ostream& err = std::cerr)
52 : out{out}, err{err}, comm{comm} {}
66 "define",
"",
"Define MDL variable=value to be passed to b2ip++."};
70 "Update or add an analysis directive key/value of the form key=value"
71 " or key='value1 value2 ...'."};
75 "Add a logging directive of the form"
76 " '(critical|error|warning|info|data|debug) of <logger>"
77 " in (err|cerr|out|cout|file:filename|db|raise)'."
78 " The available loggers can be obtained with"
79 " the --list-loggers option."};
83 "Set CPU time limit (in seconds)."
84 " B2000++ aborts when this limit is reached.",
89 "Set the limit for the virtual memory size (in MBytes)."
90 " B2000++ aborts when this limit is reached",
95 "At the end of the program execution, print a list of the encountered "
99 "t",
"DATABASE_TYPE",
"Specify the database version to process.",
"b2dbv3"};
103 "nb-threads",
"N",
"Number of threads to use (default = automatic).", -1};
108 "Print a list of the available object types at startup and exit "
109 "(for developers)."};
113 "Do not catch the exception or the signal in the main function"
114 " (for debugging purpose)."};
118 "Start b2000++ in valgrind (for debugging purpose,"
119 " must be the first argument)."};
123 "Start b2000++ in gdb (for debugging purpose,"
124 " must be the first argument)."};
128 "Extract backtrace with gdb if unexpected termination"
129 " (for debugging purpose, must be the first argument)."};
131#ifdef HAVE_FEENABLEEXCEPT
134 "Enable traps of floating point exceptions FE_DIVBYZERO, FE_INVALID"
135 " and FE_OVERFLOW (for debugging purposes only)."};
139 "timer-maxrank",
"N",
"Number of ranks to write timing information (default=1)", 1};
142 "DBNAME",
"The b2000 database to process or an MDL input file to be read."};
157 inline void Abort(
int use_err = 1) {
158 comm->Abort(use_err);
164 std::shared_ptr<Communicator> comm;
172inline void PrintShortHelp(std::ostream& out,
const cmdline::CmdLine& cline) {
174 cline.print_short_desc(out);
Class to describe the command line interface for b2000.
Definition b2cli.H:47
void ProcessCmdOpts(cmdline::CmdLine &cline)
Definition b2cli.C:63
void Abort(int use_err=1)
Abort the program execution with an error code use_err.
Definition b2cli.H:157
void PrintVersion() const
Print the version number of the running B2000++ to the out stream.
Definition b2cli.C:36
Definition b2cmdline.H:530
Definition b2cmdline.H:641
Definition b2cmdline.H:286
Definition b2cmdline.H:214
Definition b2cmdline.H:242
Definition b2cmdline.H:185
Contains the base classes for implementing Finite Elements.
Definition b2boundary_condition.H:32