Chi-Tech
chi_tech_main.cc
Go to the documentation of this file.
1
#include "
chi_runtime.h
"
2
3
//######################################################### Program entry point
4
/** Program entry point.
5
6
\param argc int Number of arguments supplied.
7
\param argv char** Array of strings representing each argument.
8
9
*/
10
int
main
(
int
argc,
char
** argv)
11
{
12
Chi::Initialize
(argc, argv, MPI_COMM_WORLD);
13
14
int
error_code;
15
if
(
Chi::run_time::sim_option_interactive_
)
16
error_code =
Chi::RunInteractive
(argc, argv);
17
else
18
error_code =
Chi::RunBatch
(argc, argv);
19
20
Chi::Finalize
();
21
22
return
error_code;
23
}
chi_runtime.h
main
int main(int argc, char **argv)
Definition:
chi_tech_main.cc:10
Chi::run_time::sim_option_interactive_
static bool sim_option_interactive_
Definition:
chi_runtime.h:109
Chi::RunBatch
static int RunBatch(int argc, char **argv)
Definition:
chi_runtime.cc:285
Chi::RunInteractive
static int RunInteractive(int argc, char **argv)
Definition:
chi_runtime.cc:239
Chi::Initialize
static int Initialize(int argc, char **argv, MPI_Comm communicator)
Definition:
chi_runtime.cc:173
Chi::Finalize
static void Finalize()
Definition:
chi_runtime.cc:216
framework
chi_tech_main.cc
Generated by
1.9.3