Flow123d
release_3.0.0-973-g92f55e826
|
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);
75 static const int exit_success = 0;
76 static const int exit_failure = 1;
77 static const int exit_output = 0;
98 virtual void run() = 0;
103 void system_init(
MPI_Comm comm,
const string &log_filename);
115 #ifdef FLOW123D_HAVE_PETSC
116 static PetscErrorCode petscvfprintf(FILE *fd,
const char format[], va_list Argp);
122 void petsc_initialize(
int argc,
char ** argv);
127 int petcs_finalize();
145 string petsc_redirect_file_=
"";
virtual void parse_cmd_line(const int argc, char **argv)
TYPEDEF_ERR_INFO(EI_Signal, int)
std::string format(CStringRef format_str, ArgList args)
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 FILE * petsc_output_
File handler for redirecting PETSc output.