Chi-Tech
Chi::run_time Class Reference

#include <chi_runtime.h>

Public Member Functions

 run_time ()=delete
 
 run_time (const run_time &)=delete
 
run_time operator= (const run_time &)=delete
 

Static Public Attributes

static bool termination_posted_ = false
 
static std::string input_file_name_
 
static bool sim_option_interactive_ = true
 
static bool allow_petsc_error_handler_ = false
 
static bool supress_beg_end_timelog_ = false
 
static bool suppress_color_ = false
 
static bool dump_registry_ = false
 
static const std::string command_line_help_string_
 

Static Private Member Functions

static void ParseArguments (int argc, char **argv)
 
static int InitPetSc (int argc, char **argv)
 

Friends

class Chi
 

Detailed Description

Data block for run-time quantities.

Definition at line 104 of file chi_runtime.h.

Constructor & Destructor Documentation

◆ run_time() [1/2]

Chi::run_time::run_time ( )
delete

◆ run_time() [2/2]

Chi::run_time::run_time ( const run_time )
delete

Member Function Documentation

◆ InitPetSc()

int Chi::run_time::InitPetSc ( int  argc,
char **  argv 
)
staticprivate

Initializes PetSc for use by all entities.

Definition at line 201 of file chi_runtime.cc.

◆ operator=()

run_time Chi::run_time::operator= ( const run_time )
delete

◆ ParseArguments()

void Chi::run_time::ParseArguments ( int  argc,
char **  argv 
)
staticprivate

Parses input arguments.

Parameters
argcint Number of arguments supplied.
argvchar** Array of strings representing each argument.

Definition at line 82 of file chi_runtime.cc.

Friends And Related Function Documentation

◆ Chi

friend class Chi
friend

Definition at line 118 of file chi_runtime.h.

Field Documentation

◆ allow_petsc_error_handler_

bool Chi::run_time::allow_petsc_error_handler_ = false
static

Definition at line 110 of file chi_runtime.h.

◆ command_line_help_string_

const std::string Chi::run_time::command_line_help_string_
static
Initial value:
=
"\nUsage: exe inputfile [options values]\n"
"\n"
" -v Level of verbosity. Default 0.\n"
" Can be either 0, 1 or 2.\n"
" a=b Executes argument as a lua string. "
"i.e. x=2 or y=[[\"string\"]]\n"
" --allow_petsc_error_handler Allow petsc error handler.\n"
" --supress_beg_end_timelog Suppress time logs at the \n"
" beginning and end of execution.\n"
" --suppress_color Suppresses the printing of color.\n"
" useful for unit tests requiring a diff.\n"
" --dump-object-registry Dumps the object registry.\n"
"\n\n\n"

Definition at line 115 of file chi_runtime.h.

◆ dump_registry_

bool Chi::run_time::dump_registry_ = false
static

Definition at line 113 of file chi_runtime.h.

◆ input_file_name_

std::string Chi::run_time::input_file_name_
static

Definition at line 108 of file chi_runtime.h.

◆ sim_option_interactive_

bool Chi::run_time::sim_option_interactive_ = true
static

Definition at line 109 of file chi_runtime.h.

◆ suppress_color_

bool Chi::run_time::suppress_color_ = false
static

Definition at line 112 of file chi_runtime.h.

◆ supress_beg_end_timelog_

bool Chi::run_time::supress_beg_end_timelog_ = false
static

Definition at line 111 of file chi_runtime.h.

◆ termination_posted_

bool Chi::run_time::termination_posted_ = false
static

Definition at line 107 of file chi_runtime.h.


The documentation for this class was generated from the following files: