6 #ifndef APPLICATION_BASE_HH_
7 #define APPLICATION_BASE_HH_
50 void init(
int argc,
char ** argv);
53 static const int exit_success = 0;
54 static const int exit_failure = 1;
55 static const int exit_output = 0;
76 virtual void run() = 0;
81 void system_init(
MPI_Comm comm,
const string &log_filename);
94 static PetscErrorCode petscvfprintf(FILE *fd,
const char format[], va_list Argp);
100 void petsc_initialize(
int argc,
char ** argv);
105 int petcs_finalize();
123 string petsc_redirect_file_=
"";
virtual void parse_cmd_line(const int argc, char **argv)
static bool petsc_initialized
static FILE * petsc_output_
File handler for redirecting PETSc output.
I/O functions with filename storing, able to track current line in opened file. All standard stdio fu...
Global macros to enhance readability and debugging, general constants.