Flow123d
master-93637712f
|
Go to the documentation of this file.
18 #ifndef APPLICATION_BASE_HH_
19 #define APPLICATION_BASE_HH_
45 DECLARE_EXCEPTION( ExcSignal, <<
"[ Signal " << EI_Signal::val <<
" (" << EI_SignalName::val <<
") received! ]" );
72 void init(
int argc,
char ** argv);
79 virtual void run() = 0;
82 static const int exit_success = 0;
83 static const int exit_failure = 1;
84 static const int exit_output = 0;
104 void system_init(
MPI_Comm comm,
const string &log_filename);
111 virtual void parse_cmd_line(
const int argc,
char ** argv) = 0;
116 #ifdef FLOW123D_HAVE_PETSC
117 static PetscErrorCode petscvfprintf(FILE *fd,
const char format[], va_list Argp);
123 void petsc_initialize(
int argc,
char ** argv);
128 int petcs_finalize();
133 void permon_initialize(
int argc,
char ** argv);
138 int permon_finalize();
149 string petsc_redirect_file_=
"";
manipulators::Array< T, Delim > format(T const &deduce, Delim delim=", ")
TYPEDEF_ERR_INFO(EI_Signal, int)
DECLARE_EXCEPTION(ExcSignal,<< "[ Signal "<< EI_Signal::val<< " ("<< EI_SignalName::val<< ") received! ]")
static bool petsc_initialized
bool signal_handler_off_
Turn off signal handling useful to debug with valgrind.
static bool permon_initialized
static FILE * petsc_output_
File handler for redirecting PETSc output.