KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
PROJECT_NS::Handler Class Referencefinal

this class provides a control of simulation More...

#include <Handler.h>

Collaboration diagram for PROJECT_NS::Handler:
Collaboration graph

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< Kernelmodel
 
std::shared_ptr< Kernelsolver
 

Detailed Description

this class provides a control of simulation

Definition at line 13 of file Handler.h.

Constructor & Destructor Documentation

◆ Handler()

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().

Here is the call graph for this function:

◆ ~Handler()

virtual PROJECT_NS::Handler::~Handler ( )
inlinevirtual

Definition at line 17 of file Handler.h.

Member Function Documentation

◆ run()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_help()

int PROJECT_NS::Handler::run_help ( std::shared_ptr< Param > & PM)
inline

Definition at line 29 of file Handler.h.

Referenced by run().

Here is the caller graph for this function:

◆ run_help_dataset()

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().

Here is the caller graph for this function:

◆ run_help_param()

int PROJECT_NS::Handler::run_help_param ( std::shared_ptr< Param > & PM)
inline

Definition at line 31 of file Handler.h.

Referenced by run().

Here is the caller graph for this function:

◆ run_parallel()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_sampling()

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().

Here is the caller graph for this function:

◆ run_single()

int PROJECT_NS::Handler::run_single ( std::shared_ptr< Param > & PM)

Definition at line 46 of file Handler.cpp.

References solver.

Referenced by run().

Here is the caller graph for this function:

◆ run_single_mpi()

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().

Here is the caller graph for this function:

Member Data Documentation

◆ model

std::shared_ptr<Kernel> PROJECT_NS::Handler::model
private

Definition at line 36 of file Handler.h.

Referenced by Handler().

◆ solver

std::shared_ptr<Kernel> PROJECT_NS::Handler::solver
private

Definition at line 37 of file Handler.h.

Referenced by Handler(), run_parallel(), run_sampling(), run_single(), and run_single_mpi().


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