KTH framework for Nek5000 toolboxes; testing version
0.0.1
|
Backbone for toolboxes. More...
Modules | |
Monitoring module | |
Monitoring routines for toolboxes. | |
Runtime parameters | |
Routines related to module's runtime parameters. | |
Files | |
file | frame.f |
Set of routines for framework operation. | |
Functions | |
subroutine | frame_start |
Start framework. More... | |
subroutine | frame_monitor |
Simulataion monitoring. More... | |
subroutine | frame_end |
Finalise framework. More... | |
integer function | frame_get_master () |
Specify master node id. More... | |
Backbone for toolboxes.
The frame module provides backbone of the whole framework consisting of dynamical (as much as fortran 77 allows for it) databases for registered modules, runtime parameters and timers. This is supposed to simplify interactions between different modules, logging and operations on runtime parameters. It provides interfaces for intialisation, monitoring and finalisation of the framework. It requires as well three subroutines defined in setup.usr and providing modules registration (frame_usr_register), initialisation (frame_usr_init) and finalisation (frame_usr_end). There are three modules automatically started by framework: monitor, runtime parameters and I/O tools. These modules should not be registered inside (frame_usr_register).
This module also provides an include file FRAMELP defining log priorities and runtime parameter types. Using logging routines from the monitor submodule, one can easily specify the verbosity of the code. The logging level can be set in two ways: by LOGLEVEL runtime parameter in [_MNTR] section of setup.par file (doeas not cover framework initialisation) or by setting the enviromental variable FRAMELOGL. The second way covers all stages of the simulation. For the bash shell this variable can be set by:
subroutine frame_end |
Finalise framework.
Definition at line 75 of file frame.f.
References io_file_close(), and mntr_tmr_summary_print().
integer function frame_get_master |
subroutine frame_monitor |
Simulataion monitoring.
Definition at line 58 of file frame.f.
References mntr_wclock().
subroutine frame_start |
Start framework.
Definition at line 11 of file frame.f.
References bcast(), io_register(), mntr_init(), mntr_register_mod(), mntr_register_par(), rprm_dict_get(), rprm_init(), and rprm_register().