![]() |
KIDS
ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
|
this class provides a control of simulation More...
#include <Handler.h>
Public Member Functions | |
Handler (const std::string &solver_name, const std::string &model_name) | |
virtual | ~Handler () |
int | run (std::shared_ptr< Param > &PM) |
int | run_single (std::shared_ptr< Param > &PM) |
int | run_single_mpi (std::shared_ptr< Param > &PM) |
int | run_parallel (std::shared_ptr< Param > &PM) |
int | run_sampling (std::shared_ptr< Param > &PM) |
int | run_help (std::shared_ptr< Param > &PM) |
int | run_help_param (std::shared_ptr< Param > &PM) |
int | run_help_dataset (std::shared_ptr< Param > &PM) |
Private Attributes | |
std::shared_ptr< Kernel > | model |
std::shared_ptr< Kernel > | solver |
PROJECT_NS::Handler::Handler | ( | const std::string & | solver_name, |
const std::string & | model_name ) |
Definition at line 17 of file Handler.cpp.
References model, PROJECT_NS::ModelFactory(), solver, and PROJECT_NS::SolverFactory().
int PROJECT_NS::Handler::run | ( | std::shared_ptr< Param > & | PM | ) |
Definition at line 23 of file Handler.cpp.
References LOC, run_help(), run_help_dataset(), run_help_param(), run_parallel(), run_sampling(), run_single(), and run_single_mpi().
Referenced by main().
|
inline |
int PROJECT_NS::Handler::run_help_dataset | ( | std::shared_ptr< Param > & | PM | ) |
Definition at line 197 of file Handler.cpp.
References PROJECT_NS::VARIABLE_BASE::_LIST.
Referenced by run().
|
inline |
int PROJECT_NS::Handler::run_parallel | ( | std::shared_ptr< Param > & | PM | ) |
Definition at line 85 of file Handler.cpp.
References PROJECT_NS::RuleSet::flush_all(), PROJECT_NS::Status::icalc, PROJECT_NS::MPI_Guard::iend, PROJECT_NS::MPI_Guard::isroot, PROJECT_NS::MPI_Guard::istart, LOC, PROJECT_NS::MPI_Guard::rank, PROJECT_NS::MPI_Guard::reduce(), and solver.
Referenced by run().
int PROJECT_NS::Handler::run_sampling | ( | std::shared_ptr< Param > & | PM | ) |
Definition at line 163 of file Handler.cpp.
References PROJECT_NS::Status::icalc, PROJECT_NS::MPI_Guard::iend, PROJECT_NS::MPI_Guard::isroot, PROJECT_NS::MPI_Guard::istart, LOC, PROJECT_NS::MPI_Guard::rank, and solver.
Referenced by run().
int PROJECT_NS::Handler::run_single | ( | std::shared_ptr< Param > & | PM | ) |
Definition at line 46 of file Handler.cpp.
References solver.
Referenced by run().
int PROJECT_NS::Handler::run_single_mpi | ( | std::shared_ptr< Param > & | PM | ) |
Definition at line 64 of file Handler.cpp.
References solver.
Referenced by run().
|
private |
|
private |
Definition at line 37 of file Handler.h.
Referenced by Handler(), run_parallel(), run_sampling(), run_single(), and run_single_mpi().