Initialize general infrastructure settings of treelm.
This module provides a central point to initialize the various general settings in treelm.
Global parameter type contains all general information needed for all solvers
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(tem_solveHead_type), | private | :: | solver | General description of the deployed solver. |
|||
type(tem_simControl_type), | private | :: | simControl | contains current simulation time, timeControl, abortCriteria and simulation status |
|||
type(tem_comm_env_type), | private | :: | proc | MPI communication enviroment including MPI communicator. |
|||
type(tem_commPattern_type), | private | :: | commPattern | MPI communication pattern type. |
|||
type(tem_restart_type), | private | :: | restart | Global restart type |
|||
type(tem_balance_type), | private | :: | balance | Load balancing information. |
|||
character(len=pathLen), | private | :: | timingFile | Filename for solver timing output |
Load general treelm settings from the Lua script in conf.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_general_type), | intent(inout) | :: | me | global general parameter |
||
type(flu_state) | :: | conf | Handle to the Lua script containing the configuration. |
|||
character(len=*), | intent(in), | optional | :: | timingFile | Default timing filename provided by the caller, overwritten by config file. |
|
class(tem_solverAborts_type), | intent(inout), | optional | :: | solverAborts | Solver specific abort criteria to load. See tem_abortCriteria_module for details on this additional abortCriteria parameters, that the solver may define to be loaded from the configuration. |
Initialize the environment. Should be the very first call in the program.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | codeName | name of code |
||
character(len=*), | intent(in) | :: | version | version of the code |
||
type(tem_general_type), | intent(out) | :: | general | encapsulates global parameters which are common for all solvers |
||
integer, | intent(in), | optional | :: | comm | mpi communicator if it is predefined as in apesmate |
|
type(tem_simControl_type), | intent(out), | optional | :: | simControl | simulation control to initialize |
Finalize the environment, should be the very last call in the program.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_general_type), | intent(in) | :: | general | encapsulates global parameters which are common for all solvers |