![]() |
OGS
|
|
#include <pybind11/pybind11.h>#include <pybind11/stl.h>#include <spdlog/spdlog.h>#include <tclap/CmdLine.h>#include <range/v3/range/conversion.hpp>#include <range/v3/view/transform.hpp>#include "../ogs.OGSMesh/OGSMesh.h"#include "Applications/ApplicationsLib/Simulation.h"#include "Applications/ApplicationsLib/TestDefinition.h"#include "BaseLib/ConfigTree.h"#include "BaseLib/DateTools.h"#include "BaseLib/Error.h"#include "BaseLib/FileTools.h"#include "BaseLib/Logging.h"#include "BaseLib/MPI.h"#include "BaseLib/RunTime.h"#include "BaseLib/TCLAPArguments.h"#include "CommandLineArgumentParser.h"#include "InfoLib/GitInfo.h"Go to the source code of this file.
Classes | |
| class | OGSSimulation |
Macros | |
| #define | OGS_ALWAYS_ASSERT(cond) |
Functions | |
| std::pair< int, std::vector< char * > > | toArgcArgv (std::vector< std::string > &argv_str) |
| PYBIND11_MODULE (OGSSimulator, m) | |
Variables | |
| static constexpr int | EXIT_ARGPARSE_FAILURE = 3 |
| static constexpr int | EXIT_ARGPARSE_EXIT_OK = 2 |
| #define OGS_ALWAYS_ASSERT | ( | cond | ) |
Definition at line 31 of file ogs_python_module.cpp.
Referenced by OGSSimulation::currentTime(), OGSSimulation::endTime(), OGSSimulation::executeSimulation(), OGSSimulation::executeTimeStep(), OGSSimulation::getMesh(), and OGSSimulation::getMeshNames().
| PYBIND11_MODULE | ( | OGSSimulator | , |
| m | ) |
To use this module import dependencies first: import ogs.mesh as mesh import ogs.OGSSimulator as sim
See also https://github.com/pybind/pybind11/issues/1391#issuecomment-912642979
Definition at line 283 of file ogs_python_module.cpp.
References OGSSimulation::currentTime(), OGSSimulation::endTime(), OGSSimulation::executeSimulation(), OGSSimulation::executeTimeStep(), OGSSimulation::finalize(), OGSSimulation::getMesh(), OGSSimulation::getMeshNames(), OGSSimulation::initialized(), and OGSSimulation::status().
| std::pair< int, std::vector< char * > > toArgcArgv | ( | std::vector< std::string > & | argv_str | ) |
Definition at line 37 of file ogs_python_module.cpp.
Referenced by OGSSimulation::OGSSimulation().
|
staticconstexpr |
Definition at line 27 of file ogs_python_module.cpp.
|
staticconstexpr |
Definition at line 26 of file ogs_python_module.cpp.