SCALE-RM
|
module Statistics More...
Functions/Subroutines | |
subroutine, public | statistics_setup |
Setup. More... | |
subroutine | statistics_total_2d (IA, IS, IE, JA, JS, JE, var, varname, area, total, log_suppress, mean, sum) |
Calc domain sum and area-weighted mean. More... | |
subroutine | statistics_total_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, varname, vol, total, log_suppress, mean, sum) |
Calc domain sum and volume-weighted mean. More... | |
subroutine | statistics_horizontal_mean_2d (IA, IS, IE, JA, JS, JE, var, area, varmean) |
Calc horizontal mean value. More... | |
subroutine | statistics_horizontal_mean_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, area, varmean) |
subroutine | statistics_horizontal_min_2d (IA, IS, IE, JA, JS, JE, var, varmin) |
Calc horizontal minimum value. More... | |
subroutine | statistics_horizontal_min_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, varmin) |
subroutine | statistics_horizontal_max_2d (IA, IS, IE, JA, JS, JE, var, varmax) |
Calc horizontal maximum value. More... | |
subroutine | statistics_horizontal_max_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, var, varmax) |
subroutine | statistics_detail_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, VA, varname, var, local) |
Search global maximum & minimum value. More... | |
subroutine | statistics_detail_2d (IA, IS, IE, JA, JS, JE, VA, varname, var, local) |
Variables | |
logical, public | statistics_checktotal = .false. |
calc&report variable totals to logfile? More... | |
module Statistics
name | type | default value | comment |
---|---|---|---|
STATISTICS_CHECKTOTAL | logical | .false. | calc&report variable totals to logfile? |
STATISTICS_USE_GLOBALCOMM | logical | .false. | calculate total with global communication? |
subroutine, public scale_statistics::statistics_setup | ( | ) |
Setup.
Definition at line 81 of file scale_statistics.F90.
References scale_comm_cartesc::comm_setup(), scale_io::io_fid_conf, scale_prc::prc_abort(), and statistics_checktotal.
Referenced by mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().
subroutine scale_statistics::statistics_total_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | var, | ||
character(len=*), intent(in) | varname, | ||
real(rp), dimension(ia,ja), intent(in) | area, | ||
real(rp), intent(in) | total, | ||
logical, intent(in), optional | log_suppress, | ||
real(rp), intent(out), optional | mean, | ||
real(dp), intent(out), optional | sum | ||
) |
Calc domain sum and area-weighted mean.
[in] | var | 3D value |
[in] | varname | name of item |
[in] | area | area of the grid cell |
[in] | total | total area |
[in] | log_suppress | suppress log output |
[out] | mean | area-weighted mean |
[out] | sum | domain sum |
Definition at line 129 of file scale_statistics.F90.
References scale_const::const_undef, scale_prc::prc_abort(), scale_prc::prc_myrank, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_total_3d | ( | 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, | ||
real(rp), dimension(ka,ia,ja), intent(in) | var, | ||
character(len=*), intent(in) | varname, | ||
real(rp), dimension(ka,ia,ja), intent(in) | vol, | ||
real(rp), intent(in) | total, | ||
logical, intent(in), optional | log_suppress, | ||
real(rp), intent(out), optional | mean, | ||
real(dp), intent(out), optional | sum | ||
) |
Calc domain sum and volume-weighted mean.
[in] | var | 3D value |
[in] | varname | name of item |
[in] | vol | volume of the grid cell |
[in] | total | total volume |
[in] | log_suppress | suppress log output |
[out] | mean | volume/area-weighted total |
[out] | sum | domain sum |
Definition at line 223 of file scale_statistics.F90.
References scale_const::const_undef, scale_prc::prc_abort(), scale_prc::prc_myrank, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_mean_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension (ia,ja), intent(in) | var, | ||
real(rp), dimension(ia,ja), intent(in) | area, | ||
real(rp), intent(out) | varmean | ||
) |
Calc horizontal mean value.
Definition at line 318 of file scale_statistics.F90.
References scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_mean_3d | ( | 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, | ||
real(rp), dimension (ka,ia,ja), intent(in) | var, | ||
real(rp), dimension( ia,ja), intent(in) | area, | ||
real(rp), dimension(ka), intent(out) | varmean | ||
) |
Definition at line 367 of file scale_statistics.F90.
References scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_min_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | var, | ||
real(rp), intent(out) | varmin | ||
) |
Calc horizontal minimum value.
Definition at line 430 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_min_3d | ( | 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, | ||
real(rp), dimension(ka,ia,ja), intent(in) | var, | ||
real(rp), dimension(ka), intent(out) | varmin | ||
) |
Definition at line 481 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_max_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | var, | ||
real(rp), intent(out) | varmax | ||
) |
Calc horizontal maximum value.
Definition at line 545 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_horizontal_max_3d | ( | 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, | ||
real(rp), dimension(ka,ia,ja), intent(in) | var, | ||
real(rp), dimension(ka), intent(out) | varmax | ||
) |
Definition at line 596 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_const::const_huge, scale_const::const_undef, scale_prc::prc_local_comm_world, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_detail_3d | ( | 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, | ||
integer, intent(in) | VA, | ||
character(len=*), dimension(va), intent(in) | varname, | ||
real(rp), dimension(ka,ia,ja,va), intent(in) | var, | ||
logical, intent(in), optional | local | ||
) |
Search global maximum & minimum value.
[in] | varname | name of item |
[in] | var | values |
[in] | local | calc in local node |
Definition at line 660 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_prc::prc_nprocs, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
subroutine scale_statistics::statistics_detail_2d | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
integer, intent(in) | VA, | ||
character(len=*), dimension(va), intent(in) | varname, | ||
real(rp), dimension(ia,ja,va), intent(in) | var, | ||
logical, intent(in), optional | local | ||
) |
[in] | varname | name of item |
[in] | var | values |
Definition at line 796 of file scale_statistics.F90.
References scale_comm_cartesc::comm_datatype, scale_prc::prc_myrank, scale_prc::prc_nprocs, scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
logical, public scale_statistics::statistics_checktotal = .false. |
calc&report variable totals to logfile?
Definition at line 64 of file scale_statistics.F90.
Referenced by mod_atmos_dyn_vars::atmos_dyn_vars_restart_read(), mod_atmos_dyn_vars::atmos_dyn_vars_restart_write(), mod_atmos_phy_ae_driver::atmos_phy_ae_driver_calc_tendency(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_restart_read(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_restart_write(), mod_atmos_phy_bl_driver::atmos_phy_bl_driver_calc_tendency(), mod_atmos_phy_ch_driver::atmos_phy_ch_driver_calc_tendency(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_restart_read(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_restart_write(), mod_atmos_phy_cp_driver::atmos_phy_cp_driver_calc_tendency(), mod_atmos_phy_cp_vars::atmos_phy_cp_vars_checktotal(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_calc_tendency(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_restart_read(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_restart_write(), mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency(), mod_atmos_phy_rd_vars::atmos_phy_rd_vars_checktotal(), mod_atmos_phy_sf_driver::atmos_phy_sf_driver_calc_tendency(), mod_atmos_phy_sf_vars::atmos_phy_sf_vars_checktotal(), mod_atmos_phy_tb_driver::atmos_phy_tb_driver_calc_tendency(), mod_atmos_vars::atmos_vars_monitor(), mod_atmos_vars::atmos_vars_total(), mod_land_vars::land_vars_total(), mod_ocean_driver::ocean_driver_calc_tendency(), mod_ocean_vars::ocean_vars_total(), statistics_setup(), mod_urban_driver::urban_driver_calc_tendency(), and mod_urban_vars::urban_vars_total().