SCALE-RM
|
module MONITOR More...
Functions/Subroutines | |
subroutine, public | monitor_setup (dt) |
Setup. More... | |
subroutine, public | monitor_set_dim (KA, KS, KE, IA, IS, IE, JA, JS, JE, dim_type, dim_size, area, total_area, volume, total_volume) |
Set area and volume. More... | |
subroutine, public | monitor_reg (name, desc, unit, itemid, ndims, dim_type, is_tendency) |
Search existing item, or matching check between requested and registered item. More... | |
subroutine | monitor_put_2d (itemid, var) |
Put total value to the monitor buffer. More... | |
subroutine | monitor_put_3d (itemid, var) |
Put total value to the monitor buffer. More... | |
subroutine | monitor_in_2d (var, name, desc, unit, ndims, dim_type, is_tendency) |
Wrapper routine of MONITOR_reg+MONITOR_put. More... | |
subroutine, public | monitor_write (memo, nowstep) |
Flush monitor buffer to formatted file. More... | |
subroutine, public | monitor_finalize |
Close file. More... | |
module MONITOR
name | type | default value | comment |
---|---|---|---|
MONITOR_OUT_BASENAME | character(len=H_LONG) | 'monitor' | filename of monitor output |
MONITOR_USEDEVIATION | logical | .true. | use deviation from first step? |
MONITOR_GLOBAL_SUM | logical | .true. | global or local sum |
MONITOR_STEP_INTERVAL | integer | 1 | step interval |
name | type | default value | comment |
---|---|---|---|
NAME | character(len=*) | name |
subroutine, public scale_monitor::monitor_setup | ( | real(dp), intent(in) | dt | ) |
Setup.
Definition at line 105 of file scale_monitor.F90.
References scale_io::io_fid_conf, scale_io::io_fid_log, scale_io::io_fid_nml, and scale_prc::prc_abort().
Referenced by scale_monitor_cartesc::monitor_cartesc_setup().
subroutine, public scale_monitor::monitor_set_dim | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
integer, intent(in) | IA, | ||
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
character(len=*), intent(in) | dim_type, | ||
integer, intent(in) | dim_size, | ||
real(rp), dimension(ia,ja), intent(in), optional | area, | ||
real(rp), intent(in), optional | total_area, | ||
real(rp), dimension(ka,ia,ja), intent(in), optional | volume, | ||
real(rp), intent(in), optional | total_volume | ||
) |
Set area and volume.
Definition at line 190 of file scale_monitor.F90.
Referenced by scale_monitor_cartesc::monitor_cartesc_setup().
subroutine, public scale_monitor::monitor_reg | ( | character(len=*), intent(in) | name, |
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
integer, intent(out) | itemid, | ||
integer, intent(in), optional | ndims, | ||
character(len=*), intent(in), optional | dim_type, | ||
logical, intent(in), optional | is_tendency | ||
) |
Search existing item, or matching check between requested and registered item.
[in] | name | name of the item |
[in] | desc | description of the item |
[in] | unit | unit of the item |
[out] | itemid | index number of the item |
[in] | ndims | # of dimension |
[in] | dim_type | dimension type |
[in] | is_tendency | need to integrate value? |
Definition at line 243 of file scale_monitor.F90.
References scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
Referenced by scale_atmos_dyn_tstep_large_fvm_heve::atmos_dyn_tstep_large_fvm_heve_setup(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_setup(), mod_atmos_phy_tb_driver::atmos_phy_tb_driver_setup(), mod_atmos_vars::atmos_vars_setup(), mod_land_vars::land_vars_setup(), monitor_in_2d(), mod_ocean_vars::ocean_vars_setup(), and mod_urban_vars::urban_vars_setup().
subroutine scale_monitor::monitor_put_2d | ( | integer, intent(in) | itemid, |
real(rp), dimension(:,:), intent(in) | var | ||
) |
Put total value to the monitor buffer.
[in] | itemid | index number of the item |
[in] | var | value |
Definition at line 349 of file scale_monitor.F90.
References scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_monitor::monitor_put_3d | ( | integer, intent(in) | itemid, |
real(rp), dimension(:,:,:), intent(in) | var | ||
) |
Put total value to the monitor buffer.
[in] | itemid | index number of the item |
[in] | var | value |
Definition at line 402 of file scale_monitor.F90.
References scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_monitor::monitor_in_2d | ( | real(rp), dimension(:,:), intent(in) | var, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
integer, intent(in), optional | ndims, | ||
character(len=*), intent(in), optional | dim_type, | ||
logical, intent(in), optional | is_tendency | ||
) |
Wrapper routine of MONITOR_reg+MONITOR_put.
[in] | var | value |
[in] | desc | description |
[in] | ndims | # of dimension |
[in] | dim_type | dimension type |
[in] | is_tendency | need to integrate values? |
Definition at line 462 of file scale_monitor.F90.
References monitor_reg().
subroutine, public scale_monitor::monitor_write | ( | character(len=*), intent(in) | memo, |
integer, intent(in) | nowstep | ||
) |
Flush monitor buffer to formatted file.
[in] | memo | note |
Definition at line 518 of file scale_monitor.F90.
References scale_io::io_get_available_fid(), scale_io::io_get_fname(), scale_io::io_log_allnode, scale_prc::prc_abort(), scale_prc::prc_ismaster, scale_prc::prc_myrank, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
Referenced by mod_rm_driver::rm_driver().
subroutine, public scale_monitor::monitor_finalize |
Close file.
Definition at line 625 of file scale_monitor.F90.
References scale_prc::prc_myrank.
Referenced by mod_rm_driver::rm_driver().