Files | |
file | mntrlog.f |
Set of module register and logging routines for KTH framework. | |
file | mntrlog_block.f |
Block data to initialise common blocks in MNTRLOGD. | |
file | mntrtmr.f |
Set of timer database routines for KTH framework. | |
file | mntrtmr_block.f |
Block data to initialise common blocks in MNTRTMRD. | |
Functions/Subroutines | |
subroutine | mntr_register_mod (log_thr) |
Initialise monitor by registering framework and monitor. More... | |
subroutine | mntr_register_par |
Register monitor runtime parameters. More... | |
subroutine | mntr_init |
Initialise monitor module. More... | |
subroutine | mntr_wclock |
Monitor simulation wall clock. More... | |
subroutine | mntr_set_step_delay (dstep) |
Set number of steps necessary to write proper checkpointing. More... | |
subroutine | mntr_get_step_delay (dstep) |
Get step delay. More... | |
subroutine | mntr_set_conv (ifconv) |
Set convergence flag to shorten simulation. More... | |
logical function | mntr_is_initialised () |
Check if module was initialised. More... | |
integer function | mntr_lp_def_get () |
Get logging threashold. More... | |
subroutine | mntr_mod_reg (mid, pmid, mname, mdscr) |
Register new module. More... | |
subroutine | mntr_mod_is_name_reg (mid, mname) |
Check if module name is registered and return its id. More... | |
logical function | mntr_mod_is_id_reg (mid) |
Check if module id is registered. This operation is performed locally. More... | |
subroutine | mntr_mod_get_number (nmod, mmod) |
Get number of registered modules. This operation is performed locally. More... | |
subroutine | mntr_mod_get_info (mname, pmid, mid) |
Get module name an parent id for given module id. This operation is performed locally. More... | |
subroutine | mntr_log (mid, priority, logs) |
Write log message. More... | |
subroutine | mntr_log_local (mid, priority, logs, prid) |
Write log message from given process. More... | |
subroutine | mntr_logi (mid, priority, logs, ivar) |
Write log message adding single integer. More... | |
subroutine | mntr_logr (mid, priority, logs, rvar) |
Write log message adding single real. More... | |
subroutine | mntr_logl (mid, priority, logs, lvar) |
Write log message adding single logical. More... | |
subroutine | mntr_warn (mid, logs) |
Write warning message. More... | |
subroutine | mntr_error (mid, logs) |
Write error message. More... | |
subroutine | mntr_abort (mid, logs) |
Abort simulation. More... | |
subroutine | mntr_check_abort (mid, ierr, logs) |
Abort simulation. More... | |
subroutine | mntr_mod_summary_print () |
Print registered modules showing tree structure. More... | |
subroutine | mntr_mod_get_olist (olist, ierr) |
Provide ordered list of registered modules for printing. More... | |
recursive subroutine | mntr_build_ord_list (olist, slist, nlist, npos, parent, level) |
Build ordered list reflecting graph structure. More... | |
subroutine | mntr_tmr_reg (mid, pmid, modid, mname, mdscr, ifsum) |
Register new timer. More... | |
subroutine | mntr_tmr_is_name_reg (mid, mname) |
Check if timer name is registered and return its id. More... | |
logical function | mntr_tmr_is_id_reg (mid) |
Check if timer id is registered. This operation is performed locally. More... | |
subroutine | mntr_tmr_add (mid, icount, time) |
Check if timer id is registered. This operation is performed locally. More... | |
subroutine | mntr_tmr_summary_print () |
Print registered timers showing tree structure. More... | |
subroutine | mntr_tmr_get_olist (olist, ierr) |
Provide ordered list of registered timers for printing. More... | |
subroutine mntr_abort | ( | integer | mid, |
character*(*) | logs | ||
) |
Abort simulation.
[in] | mid | module id |
[in] | logs | log body |
recursive subroutine mntr_build_ord_list | ( | integer, dimension(2,nlist) | olist, |
integer, dimension(2,nlist) | slist, | ||
integer | nlist, | ||
integer | npos, | ||
integer | parent, | ||
integer | level | ||
) |
Build ordered list reflecting graph structure.
[out] | olist | ordered list |
[in,out] | slist | list sorted with respect to parent |
[in] | nlist | lists length |
[in,out] | npos | position in olist array |
[in] | parent | parent id |
[in] | level | parent level |
subroutine mntr_check_abort | ( | integer | mid, |
integer | ierr, | ||
character*(*) | logs | ||
) |
Abort simulation.
[in] | mid | module id |
[in] | ierr | error flag |
[in] | logs | log body |
subroutine mntr_error | ( | integer | mid, |
character*(*) | logs | ||
) |
Write error message.
[in] | mid | module id |
[in] | logs | log body |
subroutine mntr_get_step_delay | ( | integer | dstep | ) |
Get step delay.
[out] | dstep | step delay |
subroutine mntr_init | ( | ) |
Initialise monitor module.
logical function mntr_is_initialised | ( | ) |
Check if module was initialised.
subroutine mntr_log | ( | integer | mid, |
integer | priority, | ||
character*(*) | logs | ||
) |
Write log message.
[in] | mid | module id |
[in] | priority | log priority |
[in] | logs | log body |
subroutine mntr_log_local | ( | integer | mid, |
integer | priority, | ||
character*(*) | logs, | ||
integer | prid | ||
) |
Write log message from given process.
[in] | mid | module id |
[in] | priority | log priority |
[in] | logs | log body |
[in] | prid | process id |
subroutine mntr_logi | ( | integer | mid, |
integer | priority, | ||
character*(*) | logs, | ||
integer | ivar | ||
) |
Write log message adding single integer.
[in] | mid | module id |
[in] | priority | log priority |
[in] | logs | log body |
[in] | ivar | integer variable |
subroutine mntr_logl | ( | integer | mid, |
integer | priority, | ||
character*(*) | logs, | ||
logical | lvar | ||
) |
Write log message adding single logical.
[in] | mid | module id |
[in] | priority | log priority |
[in] | logs | log body |
[in] | lvar | logical variable |
subroutine mntr_logr | ( | integer | mid, |
integer | priority, | ||
character*(*) | logs, | ||
real | rvar | ||
) |
Write log message adding single real.
[in] | mid | module id |
[in] | priority | log priority |
[in] | logs | log body |
[in] | rvar | real variable |
integer function mntr_lp_def_get | ( | ) |
Get logging threashold.
subroutine mntr_mod_get_info | ( | character*10 | mname, |
integer | pmid, | ||
integer | mid | ||
) |
Get module name an parent id for given module id. This operation is performed locally.
[out] | pmid | parent module id |
[out] | mname | module name |
[in,out] | mid | module id |
subroutine mntr_mod_get_number | ( | integer | nmod, |
integer | mmod | ||
) |
Get number of registered modules. This operation is performed locally.
[out] | nmod | module number |
[out] | mmod | max module id |
subroutine mntr_mod_get_olist | ( | integer, dimension(2,mntr_id_max) | olist, |
integer | ierr | ||
) |
Provide ordered list of registered modules for printing.
[out] | olist | ordered list |
[out] | ierr | error flag |
logical function mntr_mod_is_id_reg | ( | integer | mid | ) |
Check if module id is registered. This operation is performed locally.
[in] | mid | module id |
subroutine mntr_mod_is_name_reg | ( | integer | mid, |
character*(*) | mname | ||
) |
Check if module name is registered and return its id.
[out] | mid | module id |
[in] | mname | module name |
subroutine mntr_mod_reg | ( | integer | mid, |
integer | pmid, | ||
character*(*) | mname, | ||
character*(*) | mdscr | ||
) |
Register new module.
[out] | mid | current module id |
[in] | pmid | parent module id |
[in] | mname | module name |
[in] | mdscr | module description |
subroutine mntr_mod_summary_print | ( | ) |
Print registered modules showing tree structure.
subroutine mntr_register_mod | ( | integer | log_thr | ) |
Initialise monitor by registering framework and monitor.
[in] | log_thr | initial log threshold |
subroutine mntr_register_par | ( | ) |
Register monitor runtime parameters.
subroutine mntr_set_conv | ( | logical | ifconv | ) |
Set convergence flag to shorten simulation.
subroutine mntr_set_step_delay | ( | integer | dstep | ) |
Set number of steps necessary to write proper checkpointing.
[in] | dstep | step delay |
subroutine mntr_tmr_add | ( | integer | mid, |
integer | icount, | ||
real | time | ||
) |
Check if timer id is registered. This operation is performed locally.
[in] | mid | timer id |
[in] | icount | count increase |
[in] | time | time increase |
subroutine mntr_tmr_get_olist | ( | integer, dimension(2,mntr_tmr_id_max) | olist, |
integer | ierr | ||
) |
Provide ordered list of registered timers for printing.
[out] | olist | ordered list |
[out] | ierr | error flag |
logical function mntr_tmr_is_id_reg | ( | integer | mid | ) |
Check if timer id is registered. This operation is performed locally.
[in] | mid | timer id |
subroutine mntr_tmr_is_name_reg | ( | integer | mid, |
character*(*) | mname | ||
) |
Check if timer name is registered and return its id.
[out] | mid | timer id |
[in] | mname | timer name |
subroutine mntr_tmr_reg | ( | integer | mid, |
integer | pmid, | ||
integer | modid, | ||
character*(*) | mname, | ||
character*(*) | mdscr, | ||
logical | ifsum | ||
) |
Register new timer.
[out] | mid | new timer id |
[in] | pmid | parent timer id |
[in] | modid | registerring module id |
[in] | mname | timer name |
[in] | mdscr | timer description |
[in] | ifsum | add timer to parent |
subroutine mntr_tmr_summary_print | ( | ) |
Print registered timers showing tree structure.
subroutine mntr_warn | ( | integer | mid, |
character*(*) | logs | ||
) |
Write warning message.
[in] | mid | module id |
[in] | logs | log body |
subroutine mntr_wclock | ( | ) |
Monitor simulation wall clock.