SCALE-RM
|
module file_history More...
Functions/Subroutines | |
subroutine, public | file_history_setup (title, source, institution, time_start, time_interval, time_units, time_since, calendar, default_basename, default_postfix_timelabel, default_zcoord, default_tinterval, default_tunit, default_taverage, default_tstats_op, default_datatype, myrank) |
Setup. More... | |
subroutine, public | file_history_reg (name, desc, unit, itemid, standard_name, ndims, dim_type, cell_measures, fill_halo) |
Register/Append variable to history file. More... | |
subroutine | file_history_in_0d (var, name, desc, unit, standard_name, dim_type) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put. More... | |
subroutine | file_history_in_1d (var, name, desc, unit, standard_name, dim_type) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put. More... | |
subroutine | file_history_in_2d (var, name, desc, unit, standard_name, dim_type, fill_halo) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put. More... | |
subroutine | file_history_in_3d (var, name, desc, unit, standard_name, dim_type, fill_halo) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put. More... | |
subroutine | file_history_in_4d (var, name, desc, unit, standard_name, dim_type, fill_halo) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put. More... | |
subroutine, public | file_history_set_dim (name, ndims, nzcoords, dims, zcoords, start, count, mapping, area, area_x, area_y, volume, location, grid) |
set dimension information More... | |
subroutine, public | file_history_set_axis (name, desc, units, dim, var, bounds, down, gsize, start) |
set axis information More... | |
subroutine, public | file_history_write |
subroutine, public | file_history_set_nowdate (NOWDATE, NOWSUBSEC, NOWSTEP) |
set now step More... | |
subroutine, public | file_history_set_disable (switch) |
set switch to turn on/off history More... | |
subroutine, public | file_history_finalize |
finalization More... | |
subroutine | file_history_set_associatedcoordinate_1d (name, desc, units, dims, var, datatype, start) |
subroutine | file_history_set_associatedcoordinate_2d (name, desc, units, dims, var, datatype, start) |
subroutine | file_history_set_associatedcoordinate_3d (name, desc, units, dims, var, datatype, start) |
subroutine | file_history_set_attribute_text (varname, key, val, add_variable) |
subroutine | file_history_set_attribute_logical (varname, key, val, add_variable) |
subroutine | file_history_set_attribute_int_ary (varname, key, val, add_variable) |
subroutine | file_history_set_attribute_int (varname, key, val, add_variable) |
subroutine | file_history_set_attribute_float (varname, key, val, add_variable) |
subroutine | file_history_set_attribute_double (varname, key, val, add_variable) |
Variables | |
procedure(truncate_1d), pointer, public | file_history_truncate_1d => NULL() |
procedure(truncate_2d), pointer, public | file_history_truncate_2d => NULL() |
procedure(truncate_3d), pointer, public | file_history_truncate_3d => NULL() |
procedure(truncate_4d), pointer, public | file_history_truncate_4d => NULL() |
logical, public | file_history_aggregate |
logical, public | switch |
logical, public | to |
logical, public | use |
logical, public | aggregate |
logical, public | file |
logical, public | i |
logical, public | o |
module file_history
name | type | default value | comment |
---|---|---|---|
FILE_HISTORY_TITLE | character(len=H_MID) | > Header information of the output file: title | |
FILE_HISTORY_SOURCE | character(len=H_MID) | > Header information of the output file: model name | |
FILE_HISTORY_INSTITUTION | character(len=H_MID) | > Header information of the output file: institution | |
FILE_HISTORY_TIME_UNITS | character(len=H_MID) | > Unit for time axis | |
FILE_HISTORY_DEFAULT_BASENAME | character(len=H_LONG) | > Base name of the file | |
FILE_HISTORY_DEFAULT_POSTFIX_TIMELABEL | logical | > Add timelabel to the basename? | |
FILE_HISTORY_DEFAULT_ZCOORD | character(len=H_SHORT) | > Default z-coordinate | |
FILE_HISTORY_DEFAULT_TINTERVAL | real(DP) | > Time interval | |
FILE_HISTORY_DEFAULT_TUNIT | character(len=H_SHORT) | > Time unit | |
FILE_HISTORY_DEFAULT_TAVERAGE | logical | > Apply time average? (obsolete) | |
FILE_HISTORY_DEFAULT_TSTATS_OP | character(len=4) | > Statistics operation: none, mean, min, max | |
FILE_HISTORY_DEFAULT_DATATYPE | character(len=5) | > Data type: REAL4, REAL8 | |
FILE_HISTORY_OUTPUT_STEP0 | logical | .false. | > Output value at step=0? |
FILE_HISTORY_OUTPUT_WAIT | real(DP) | > Time length to suppress output | |
FILE_HISTORY_OUTPUT_WAIT_TUNIT | character(len=H_SHORT) | > Time unit | |
FILE_HISTORY_OUTPUT_SWITCH_TINTERVAL | real(DP) | > Time interval to switch output file | |
FILE_HISTORY_OUTPUT_SWITCH_TUNIT | character(len=H_SHORT) | > Time unit | |
FILE_HISTORY_ERROR_PUTMISS | logical | .true. | > Abort if the value is never stored after last output? |
FILE_HISTORY_AGGREGATE | logical | > Switch to use aggregate file I/O | |
FILE_HISTORY_OPTIONS | character(len=H_MID) | '' !> option to give file. 'filetype1:key1=val1&filetype2:key2=val2&...' | |
DEBUG | logical | .false. |
name | type | default value | comment |
---|---|---|---|
NAME | character(len=*) | ||
OUTNAME | character(len=H_SHORT) | > name of variable (for output) | |
BASENAME | character(len=H_LONG) | > base name of the file | |
POSTFIX_TIMELABEL | logical | > Add timelabel to the basename? | |
ZCOORD | character(len=*) | ||
TINTERVAL | real(DP) | > time interval | |
TUNIT | character(len=H_SHORT) | > time unit | |
TAVERAGE | logical | > apply time average? (obsolete) | |
TSTATS_OP | character(len=4) | > statistics operation: none, mean, min, max | |
DATATYPE | character(len=*) |
subroutine, public scale_file_history::file_history_setup | ( | character(len=*), intent(in) | title, |
character(len=*), intent(in) | source, | ||
character(len=*), intent(in) | institution, | ||
real(dp), intent(in) | time_start, | ||
real(dp), intent(in) | time_interval, | ||
character(len=*), intent(in), optional | time_units, | ||
character(len=*), intent(in), optional | time_since, | ||
character(len=*), intent(in), optional | calendar, | ||
character(len=*), intent(in), optional | default_basename, | ||
logical, intent(in), optional | default_postfix_timelabel, | ||
character(len=*), intent(in), optional | default_zcoord, | ||
real(dp), intent(in), optional | default_tinterval, | ||
character(len=*), intent(in), optional | default_tunit, | ||
logical, intent(in), optional | default_taverage, | ||
character(len=*), intent(in), optional | default_tstats_op, | ||
character(len=*), intent(in), optional | default_datatype, | ||
integer, intent(in), optional | myrank | ||
) |
Setup.
REAL4 : single precision REAL8 : double precision
Unit for time axis
Base name of the file
Add timelabel to the basename?
Default z-coordinate
Time interval
Time unit
Apply time average? (obsolete)
Statistics operation
Data type
Time length to suppress output
Time unit
Time interval to switch output file
Time unit
Definition at line 345 of file scale_file_history.F90.
References scale_calendar::calendar_unit2sec(), scale_precision::dp, scale_file::file_aggregate, file_history_aggregate, file_history_truncate_1d, file_history_truncate_2d, file_history_truncate_3d, file_history_truncate_4d, scale_file_h::file_real4, scale_file_h::file_real8, scale_io::io_fid_conf, and scale_prc::prc_abort().
Referenced by scale_file_history_cartesc::file_history_cartesc_setup().
subroutine, public scale_file_history::file_history_reg | ( | character(len=*), intent(in) | name, |
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
integer, intent(out) | itemid, | ||
character(len=*), intent(in), optional | standard_name, | ||
integer, intent(in), optional | ndims, | ||
character(len=*), intent(in), optional | dim_type, | ||
character(len=*), intent(in), optional | cell_measures, | ||
logical, intent(in), optional | fill_halo | ||
) |
Register/Append variable to history file.
[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 | if ndims is set and dim_type is not set, the dim_type that set firstry by FILE_HISTORY_set_dim of ndims is used |
Definition at line 685 of file scale_file_history.F90.
References scale_const::const_eps, scale_const::const_huge, scale_const::const_undef, scale_file_h::file_rmiss, scale_io::h_short, i, 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_ae_vars::atmos_phy_ae_vars_setup(), scale_atmos_phy_bl_mynn::atmos_phy_bl_mynn_setup(), scale_atmos_phy_cp_kf::atmos_phy_cp_kf_setup(), mod_atmos_phy_lt_driver::atmos_phy_lt_driver_setup(), scale_atmos_phy_lt_sato2019::atmos_phy_lt_sato2019_setup(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_setup(), scale_atmos_phy_mp_sn14::atmos_phy_mp_sn14_setup(), scale_atmos_phy_mp_tomita08::atmos_phy_mp_tomita08_setup(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_setup(), mod_atmos_phy_sf_driver::atmos_phy_sf_driver_setup(), mod_atmos_vars::atmos_vars_setup(), file_history_in_0d(), file_history_in_1d(), file_history_in_2d(), file_history_in_3d(), file_history_in_4d(), and scale_urban_dyn_kusaka01::urban_dyn_kusaka01_setup().
subroutine scale_file_history::file_history_in_0d | ( | real(rp), intent(in) | var, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
character(len=*), intent(in), optional | standard_name, | ||
character(len=*), intent(in), optional | dim_type | ||
) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put.
[in] | var | value |
[in] | name | name of the item |
[in] | desc | description of the item |
[in] | unit | unit of the item |
Definition at line 960 of file scale_file_history.F90.
References scale_const::const_eps, scale_const::const_huge, scale_const::const_undef, file_history_reg(), file_history_truncate_1d, scale_file_h::file_rmiss, scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_file_history::file_history_in_1d | ( | real(rp), dimension(:), intent(in) | var, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
character(len=*), intent(in), optional | standard_name, | ||
character(len=*), intent(in), optional | dim_type | ||
) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put.
[in] | var | value |
[in] | name | name of the item |
[in] | desc | description of the item |
[in] | unit | unit of the item |
Definition at line 1142 of file scale_file_history.F90.
References scale_const::const_eps, scale_const::const_huge, scale_const::const_undef, file_history_reg(), file_history_truncate_2d, scale_file_h::file_rmiss, scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_file_history::file_history_in_2d | ( | real(rp), dimension(:,:), intent(in) | var, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
character(len=*), intent(in), optional | standard_name, | ||
character(len=*), intent(in), optional | dim_type, | ||
logical, intent(in), optional | fill_halo | ||
) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put.
[in] | var | value |
[in] | name | name of the item |
[in] | desc | description of the item |
[in] | unit | unit of the item |
Definition at line 1325 of file scale_file_history.F90.
References scale_const::const_eps, scale_const::const_huge, scale_const::const_undef, file_history_reg(), file_history_truncate_3d, scale_file_h::file_rmiss, scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_file_history::file_history_in_3d | ( | real(rp), dimension(:,:,:), intent(in) | var, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
character(len=*), intent(in), optional | standard_name, | ||
character(len=*), intent(in), optional | dim_type, | ||
logical, intent(in), optional | fill_halo | ||
) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put.
[in] | var | value |
[in] | name | name of the item |
[in] | desc | description of the item |
[in] | unit | unit of the item |
Definition at line 1507 of file scale_file_history.F90.
References scale_const::const_eps, scale_const::const_huge, scale_const::const_undef, file_history_reg(), file_history_truncate_4d, scale_file_h::file_rmiss, scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_file_history::file_history_in_4d | ( | real(rp), dimension(:,:,:,:), intent(in) | var, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | unit, | ||
character(len=*), intent(in), optional | standard_name, | ||
character(len=*), intent(in), optional | dim_type, | ||
logical, intent(in), optional | fill_halo | ||
) |
Wrapper routine of FILE_HISTORY_reg + FILE_HISTORY_put.
[in] | var | value |
[in] | name | name of the item |
[in] | desc | description of the item |
[in] | unit | unit of the item |
Definition at line 1689 of file scale_file_history.F90.
References file_history_reg().
subroutine, public scale_file_history::file_history_set_dim | ( | character(len=*), intent(in) | name, |
integer, intent(in) | ndims, | ||
integer, intent(in) | nzcoords, | ||
character(len=*), dimension(ndims,nzcoords), intent(in) | dims, | ||
character(len=*), dimension(nzcoords), intent(in) | zcoords, | ||
integer, dimension(ndims,nzcoords), intent(in) | start, | ||
integer, dimension(ndims,nzcoords), intent(in) | count, | ||
character(len=*), intent(in), optional | mapping, | ||
character(len=*), intent(in), optional | area, | ||
character(len=*), intent(in), optional | area_x, | ||
character(len=*), intent(in), optional | area_y, | ||
character(len=*), intent(in), optional | volume, | ||
character(len=*), intent(in), optional | location, | ||
character(len=*), intent(in), optional | grid | ||
) |
set dimension information
Definition at line 1738 of file scale_file_history.F90.
References scale_prc::prc_abort().
Referenced by scale_file_history_cartesc::file_history_cartesc_set_pres().
subroutine, public scale_file_history::file_history_set_axis | ( | character(len=*), intent(in) | name, |
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | units, | ||
character(len=*), intent(in) | dim, | ||
real(rp), dimension(:), intent(in) | var, | ||
real(rp), dimension(:,:), intent(in), optional | bounds, | ||
logical, intent(in), optional | down, | ||
integer, intent(in), optional | gsize, | ||
integer, intent(in), optional | start | ||
) |
set axis information
Definition at line 1847 of file scale_file_history.F90.
References scale_prc::prc_abort().
Referenced by scale_file_history_cartesc::file_history_cartesc_truncate_3d().
subroutine, public scale_file_history::file_history_write |
Definition at line 1911 of file scale_file_history.F90.
References scale_file::file_enddef(), scale_file::file_flush(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
Referenced by mod_rm_driver::rm_driver().
subroutine, public scale_file_history::file_history_set_nowdate | ( | integer, dimension(:), intent(in) | NOWDATE, |
real(dp), intent(in) | NOWSUBSEC, | ||
integer, intent(in) | NOWSTEP | ||
) |
set now step
Definition at line 1965 of file scale_file_history.F90.
Referenced by scale_file_history_cartesc::file_history_cartesc_setup(), and mod_rm_driver::rm_driver().
subroutine, public scale_file_history::file_history_set_disable | ( | logical, intent(in) | switch | ) |
set switch to turn on/off history
Definition at line 1980 of file scale_file_history.F90.
References switch.
Referenced by scale_atmos_dyn_tstep_large_fvm_heve::atmos_dyn_tstep_large_fvm_heve().
subroutine, public scale_file_history::file_history_finalize |
finalization
Definition at line 1994 of file scale_file_history.F90.
References aggregate, scale_precision::dp, scale_file::file_add_associatedvariable(), scale_file::file_attach_buffer(), scale_file::file_close(), scale_file::file_create(), scale_file::file_def_associatedcoordinate(), scale_file::file_def_axis(), scale_file::file_detach_buffer(), scale_file_h::file_dtypelist, scale_file::file_flush(), file_history_aggregate, scale_file_h::file_real4, scale_file_h::file_real8, scale_file::file_redef(), scale_file::file_set_option(), i, scale_prc::prc_abort(), scale_precision::rp, and scale_time::time_time2label().
Referenced by mod_rm_driver::rm_driver().
subroutine scale_file_history::file_history_set_associatedcoordinate_1d | ( | character(len=*), intent(in) | name, |
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | units, | ||
character(len=*), dimension(:), intent(in) | dims, | ||
real(rp), dimension(:), intent(in) | var, | ||
character(len=*), intent(in), optional | datatype, | ||
integer, dimension(:), intent(in), optional | start | ||
) |
Definition at line 2515 of file scale_file_history.F90.
References scale_precision::dp, scale_file_h::file_real4, scale_file_h::file_real8, scale_prc::prc_abort(), and scale_precision::sp.
subroutine scale_file_history::file_history_set_associatedcoordinate_2d | ( | character(len=*), intent(in) | name, |
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | units, | ||
character(len=*), dimension(:), intent(in) | dims, | ||
real(rp), dimension(:,:), intent(in) | var, | ||
character(len=*), intent(in), optional | datatype, | ||
integer, dimension(:), intent(in), optional | start | ||
) |
Definition at line 2592 of file scale_file_history.F90.
References scale_precision::dp, scale_file_h::file_real4, scale_file_h::file_real8, scale_prc::prc_abort(), and scale_precision::sp.
subroutine scale_file_history::file_history_set_associatedcoordinate_3d | ( | character(len=*), intent(in) | name, |
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | units, | ||
character(len=*), dimension(:), intent(in) | dims, | ||
real(rp), dimension(:,:,:), intent(in) | var, | ||
character(len=*), intent(in), optional | datatype, | ||
integer, dimension(:), intent(in), optional | start | ||
) |
Definition at line 2669 of file scale_file_history.F90.
References scale_precision::dp, scale_file_h::file_real4, scale_file_h::file_real8, scale_prc::prc_abort(), and scale_precision::sp.
subroutine scale_file_history::file_history_set_attribute_text | ( | character(len=*), intent(in) | varname, |
character(len=*), intent(in) | key, | ||
character(len=*), intent(in) | val, | ||
logical, intent(in), optional | add_variable | ||
) |
Definition at line 2744 of file scale_file_history.F90.
References scale_prc::prc_abort().
Referenced by file_history_set_attribute_logical().
subroutine scale_file_history::file_history_set_attribute_logical | ( | character(len=*), intent(in) | varname, |
character(len=*), intent(in) | key, | ||
logical, intent(in) | val, | ||
logical, intent(in), optional | add_variable | ||
) |
Definition at line 2783 of file scale_file_history.F90.
References file_history_set_attribute_text().
subroutine scale_file_history::file_history_set_attribute_int_ary | ( | character(len=*), intent(in) | varname, |
character(len=*), intent(in) | key, | ||
integer, dimension(:), intent(in) | val, | ||
logical, intent(in), optional | add_variable | ||
) |
Definition at line 2810 of file scale_file_history.F90.
References scale_prc::prc_abort().
Referenced by file_history_set_attribute_int().
subroutine scale_file_history::file_history_set_attribute_int | ( | character(len=*), intent(in) | varname, |
character(len=*), intent(in) | key, | ||
integer, intent(in) | val, | ||
logical, intent(in), optional | add_variable | ||
) |
Definition at line 2854 of file scale_file_history.F90.
References file_history_set_attribute_int_ary(), and scale_prc::prc_abort().
subroutine scale_file_history::file_history_set_attribute_float | ( | character(len=*), intent(in) | varname, |
character(len=*), intent(in) | key, | ||
real(sp), intent(in) | val, | ||
logical, intent(in), optional | add_variable | ||
) |
Definition at line 2919 of file scale_file_history.F90.
References scale_prc::prc_abort().
subroutine scale_file_history::file_history_set_attribute_double | ( | character(len=*), intent(in) | varname, |
character(len=*), intent(in) | key, | ||
real(dp), intent(in) | val, | ||
logical, intent(in), optional | add_variable | ||
) |
Definition at line 2982 of file scale_file_history.F90.
References scale_calendar::calendar_sec2unit(), scale_file::file_enddef(), scale_file::file_flush(), scale_file_h::file_rmiss, and scale_prc::prc_abort().
procedure(truncate_1d), pointer, public scale_file_history::file_history_truncate_1d => NULL() |
Definition at line 77 of file scale_file_history.F90.
Referenced by scale_file_history_cartesc::file_history_cartesc_setup(), file_history_in_0d(), and file_history_setup().
procedure(truncate_2d), pointer, public scale_file_history::file_history_truncate_2d => NULL() |
Definition at line 89 of file scale_file_history.F90.
Referenced by scale_file_history_cartesc::file_history_cartesc_setup(), file_history_in_1d(), and file_history_setup().
procedure(truncate_3d), pointer, public scale_file_history::file_history_truncate_3d => NULL() |
Definition at line 101 of file scale_file_history.F90.
Referenced by scale_file_history_cartesc::file_history_cartesc_setup(), file_history_in_2d(), and file_history_setup().
procedure(truncate_4d), pointer, public scale_file_history::file_history_truncate_4d => NULL() |
Definition at line 113 of file scale_file_history.F90.
Referenced by file_history_in_3d(), and file_history_setup().
logical, public scale_file_history::file_history_aggregate |
Definition at line 143 of file scale_file_history.F90.
Referenced by scale_file_history_cartesc::file_history_cartesc_truncate_3d(), file_history_finalize(), and file_history_setup().
integer public scale_file_history::switch |
Definition at line 143 of file scale_file_history.F90.
Referenced by file_history_set_disable().
integer public scale_file_history::to |
Definition at line 143 of file scale_file_history.F90.
logical, public scale_file_history::use |
Definition at line 143 of file scale_file_history.F90.
logical, public scale_file_history::aggregate |
Definition at line 143 of file scale_file_history.F90.
Referenced by file_history_finalize().
integer public scale_file_history::file |
Definition at line 143 of file scale_file_history.F90.
logical, public scale_file_history::i |
Definition at line 143 of file scale_file_history.F90.
Referenced by file_history_finalize(), and file_history_reg().
logical, public scale_file_history::o |
Definition at line 143 of file scale_file_history.F90.