![]() |
OGS
|
Implementation of OpenGeoSys simulation application.
Definition in file ogs.cpp.
#include <pybind11/pybind11.h>#include <spdlog/spdlog.h>#include <tclap/CmdLine.h>#include <algorithm>#include <chrono>#include <csignal>#include <iostream>#include <sstream>#include "CommandLineArgumentParser.h"#include <cfenv>#include "Applications/ApplicationsLib/Simulation.h"#include "Applications/ApplicationsLib/TestDefinition.h"#include "BaseLib/DateTools.h"#include "BaseLib/Error.h"#include "BaseLib/FileTools.h"#include "BaseLib/Logging.h"#include "BaseLib/RunTime.h"#include "InfoLib/GitInfo.h"#include <spdlog/sinks/null_sink.h>#include <spdlog/sinks/stdout_color_sinks.h>#include "BaseLib/MPI.h"Go to the source code of this file.
Functions | |
| void | enableFloatingPointExceptions () |
| void | signalHandler (int signum) |
| void | initializeLogger (bool const all_ranks_log) |
| int | main (int argc, char *argv[]) |
| void enableFloatingPointExceptions | ( | ) |
| void initializeLogger | ( | bool const | all_ranks_log | ) |
Definition at line 72 of file ogs.cpp.
References BaseLib::console, BaseLib::formatDate(), INFO(), and BaseLib::MPI::OGS_COMM_WORLD.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 122 of file ogs.cpp.
References BaseLib::createOutputDirectory(), BaseLib::RunTime::elapsed(), CommandLineArguments::enable_fpe_is_set, enableFloatingPointExceptions(), ERR(), Simulation::executeSimulation(), BaseLib::formatDate(), Simulation::getTestDefinition(), INFO(), Simulation::initializeDataStructures(), initializeLogger(), BaseLib::initOGSLogger(), CommandLineArguments::log_level, CommandLineArguments::log_parallel, CommandLineArguments::mesh_dir, CommandLineArguments::nonfatal, OGS_FATAL, GitInfoLib::GitInfo::ogs_version, CommandLineArguments::outdir, Simulation::outputLastTimeStep(), parseCommandLineArguments(), CommandLineArguments::project, CommandLineArguments::reference_path, CommandLineArguments::reference_path_is_set, Simulation::runTestDefinitions(), CommandLineArguments::script_dir, signalHandler(), BaseLib::RunTime::start(), CommandLineArguments::write_prj, and CommandLineArguments::xml_patch_file_names.
| void signalHandler | ( | int | signum | ) |
Definition at line 63 of file ogs.cpp.
References ERR(), and BaseLib::formatDate().
Referenced by main().