SCALE-RM
|
module STDIO More...
Functions/Subroutines | |
subroutine, public | io_setup (APPNAME, conf_name, allow_noconf) |
Setup. More... | |
subroutine, public | io_log_setup (myrank, is_master) |
Setup LOG. More... | |
integer function, public | io_get_available_fid () |
search & get available file ID More... | |
subroutine, public | io_make_idstr (outstr, instr, ext, rank, isrgn) |
generate process specific filename More... | |
character(len=h_long) function, public | io_arg_getfname (is_master, allow_noconf) |
get config filename from argument More... | |
integer function, public | io_cnf_open (fname, is_master) |
open config file More... | |
Variables | |
integer, parameter, public | h_short = File_HSHORT |
Character length (short=16) More... | |
integer, parameter, public | h_mid = File_HMID |
Character length (short=64) More... | |
integer, parameter, public | h_long = File_HLONG |
Character length (short=256) More... | |
character(len=h_mid), public | h_appname |
name of the application More... | |
character(len=h_mid), public | h_libname |
name and version of the library More... | |
character(len=h_mid), public | h_source |
for file header More... | |
character(len=h_mid), public | h_institute = 'RIKEN' |
for file header More... | |
character(len=9), parameter, public | io_nullfile = "/dev/null" |
character(len=6), parameter, public | io_stdout = "STDOUT" |
integer, parameter, public | io_fid_stdout = 6 |
integer, public | io_fid_conf = -1 |
Config file ID. More... | |
integer, public | io_fid_log = -1 |
Log file ID. More... | |
integer, public | io_fid_nml = -1 |
Log file ID (only for output namelist) More... | |
character(len=h_long), public | io_log_basename = 'LOG' |
basename of logfile More... | |
character(len=h_long), public | io_nml_filename = '' |
filename of logfile (only for output namelist) More... | |
logical, public | io_l = .false. |
output log or not? (this process) More... | |
logical, public | io_nml = .false. |
output log or not? (for namelist, this process) More... | |
logical, public | io_log_suppress = .false. |
suppress all of log output? More... | |
logical, public | io_log_nml_suppress = .false. |
suppress all of log output? (for namelist) More... | |
logical, public | io_log_allnode = .false. |
output log for each node? More... | |
integer, public | io_step_to_stdout = -1 |
interval for output current step to STDOUT (negative is off) More... | |
module STDIO
name | type | default value | comment |
---|---|---|---|
H_SOURCE | character(len=H_MID) | for file header | |
H_INSTITUTE | character(len=H_MID) | 'RIKEN' | for file header |
IO_LOG_BASENAME | character(len=H_LONG) | 'LOG' | basename of logfile |
IO_NML_FILENAME | character(len=H_LONG) | '' | filename of logfile (only for output namelist) |
IO_LOG_SUPPRESS | logical | .false. | suppress all of log output? |
IO_LOG_NML_SUPPRESS | logical | .false. | suppress all of log output? (for namelist) |
IO_LOG_ALLNODE | logical | .false. | output log for each node? |
subroutine, public scale_io::io_setup | ( | character(len=*), intent(in) | APPNAME, |
character(len=*), intent(in), optional | conf_name, | ||
logical, intent(in), optional | allow_noconf | ||
) |
Setup.
[in] | appname | name of the application |
[in] | conf_name | name of config file for each process |
[in] | allow_noconf | if true, allow program to run without configure file |
Definition at line 87 of file scale_io.F90.
References h_appname, h_institute, h_libname, h_source, io_arg_getfname(), io_cnf_open(), io_fid_conf, io_log_allnode, io_log_basename, io_log_nml_suppress, io_log_suppress, io_nml_filename, io_stdout, and io_step_to_stdout.
Referenced by mod_rm_driver::rm_driver(), mod_rm_prep::rm_prep(), and scale::scale_init().
subroutine, public scale_io::io_log_setup | ( | integer, intent(in) | myrank, |
logical, intent(in) | is_master | ||
) |
Setup LOG.
[in] | myrank | my rank ID |
[in] | is_master | master process? |
Definition at line 142 of file scale_io.F90.
References h_appname, h_institute, h_libname, h_source, io_fid_conf, io_fid_log, io_fid_nml, io_fid_stdout, io_get_available_fid(), io_l, io_log_allnode, io_log_basename, io_log_nml_suppress, io_log_suppress, io_make_idstr(), io_nml, io_nml_filename, and io_stdout.
Referenced by mod_rm_driver::rm_driver(), mod_rm_prep::rm_prep(), and scale::scale_init().
integer function, public scale_io::io_get_available_fid | ( | ) |
search & get available file ID
Definition at line 313 of file scale_io.F90.
Referenced by scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_update_z(), scale_atmos_phy_mp_suzuki10::atmos_phy_mp_suzuki10_setup(), scale_atmos_phy_rd_mstrnx::atmos_phy_rd_mstrnx_flux(), scale_atmos_phy_rd_profile::atmos_phy_rd_profile_setup(), scale_atmos_phy_rd_profile::atmos_phy_rd_profile_setup_zgrid(), scale_atmos_sfc_ch_rn222::atmos_sfc_ch_rn222_setup(), mod_cnv2d::cnv2d(), scale_comm_cartesc_nest::comm_cartesc_nest_setup(), scale_file_tiledata::file_tiledata_read_catalog_file(), scale_file_tiledata::file_tiledata_read_data_int1_int(), scale_file_tiledata::file_tiledata_read_data_int2_int(), scale_file_tiledata::file_tiledata_read_data_int2_real(), scale_file_tiledata::file_tiledata_read_data_int4_int(), scale_file_tiledata::file_tiledata_read_data_int4_real(), scale_file_tiledata::file_tiledata_read_data_real4_int(), scale_file_tiledata::file_tiledata_read_data_real4_real(), scale_file_tiledata::file_tiledata_read_data_real8_real(), io_cnf_open(), io_log_setup(), mod_land_vars::land_vars_total(), scale_monitor::monitor_write(), mod_realinput_grads::parentatmosinputgrads(), mod_realinput_grads::parentatmossetupgrads(), mod_realinput_grads::parentlandinputgrads(), mod_realinput_grads::parentlandsetupgrads(), mod_realinput_grads::parentoceaninputgrads(), mod_realinput_grads::parentoceansetupgrads(), scale_prc_icoa::prc_icoa_setup(), and mod_mkinit::read_sounding().
subroutine, public scale_io::io_make_idstr | ( | character(len=h_long), intent(out) | outstr, |
character(len=*), intent(in) | instr, | ||
character(len=*), intent(in) | ext, | ||
integer, intent(in) | rank, | ||
logical, intent(in), optional | isrgn | ||
) |
generate process specific filename
[out] | outstr | generated string |
[in] | instr | strings |
[in] | ext | extention |
[in] | rank | number |
[in] | isrgn | for region? (8 digits) |
Definition at line 334 of file scale_io.F90.
Referenced by io_log_setup(), scale_monitor::monitor_finalize(), and scale_monitor::monitor_write().
character(len=h_long) function, public scale_io::io_arg_getfname | ( | logical, intent(in) | is_master, |
logical, intent(in), optional | allow_noconf | ||
) |
get config filename from argument
Definition at line 360 of file scale_io.F90.
References io_nullfile.
Referenced by io_setup(), scalerm(), scalerm_init(), and scalerm_pp().
integer function, public scale_io::io_cnf_open | ( | character(len=*), intent(in) | fname, |
logical, intent(in) | is_master | ||
) |
open config file
[in] | fname | filename |
[in] | is_master | master process? |
Definition at line 392 of file scale_io.F90.
References io_get_available_fid().
Referenced by io_setup(), scalerm(), scalerm_init(), and scalerm_pp().
integer, parameter, public scale_io::h_short = File_HSHORT |
Character length (short=16)
Definition at line 43 of file scale_io.F90.
Referenced by scale_comm_cartesc_nest::comm_cartesc_nest_domain_shape(), and scale_file_history::file_history_reg().
integer, parameter, public scale_io::h_mid = File_HMID |
Character length (short=64)
Definition at line 44 of file scale_io.F90.
integer, parameter, public scale_io::h_long = File_HLONG |
Character length (short=256)
Definition at line 45 of file scale_io.F90.
character(len=h_mid), public scale_io::h_appname |
name of the application
Definition at line 47 of file scale_io.F90.
Referenced by io_log_setup(), and io_setup().
character(len=h_mid), public scale_io::h_libname |
name and version of the library
Definition at line 48 of file scale_io.F90.
Referenced by io_log_setup(), and io_setup().
character(len=h_mid), public scale_io::h_source |
for file header
Definition at line 49 of file scale_io.F90.
Referenced by scale_file_cartesc::file_cartesc_create(), scale_file_cartesc::file_cartesc_setup(), scale_file_history_cartesc::file_history_cartesc_setup(), io_log_setup(), and io_setup().
character(len=h_mid), public scale_io::h_institute = 'RIKEN' |
for file header
Definition at line 50 of file scale_io.F90.
Referenced by scale_file_cartesc::file_cartesc_create(), scale_file_cartesc::file_cartesc_setup(), scale_file_history_cartesc::file_history_cartesc_setup(), io_log_setup(), and io_setup().
character(len=9), parameter, public scale_io::io_nullfile = "/dev/null" |
character(len=6), parameter, public scale_io::io_stdout = "STDOUT" |
integer, parameter, public scale_io::io_fid_stdout = 6 |
Definition at line 54 of file scale_io.F90.
Referenced by io_log_setup(), scale_prc::prc_mpifinish(), scale_prc::prc_mpitimestat(), and scale_prof::prof_rapreport().
integer, public scale_io::io_fid_conf = -1 |
Config file ID.
Definition at line 55 of file scale_io.F90.
Referenced by mod_admin_restart::admin_restart_setup(), mod_admin_time::admin_time_setup(), mod_admin_versioncheck::admin_versioncheck(), mod_atmos_admin::atmos_admin_setup(), mod_atmos_bnd_driver::atmos_boundary_driver_setup(), mod_atmos_dyn_driver::atmos_dyn_driver_setup(), scale_atmos_dyn_tstep_short_fvm_hivi::atmos_dyn_tstep_short_fvm_hivi_setup(), mod_atmos_dyn_vars::atmos_dyn_vars_setup(), scale_atmos_grid_cartesc_index::atmos_grid_cartesc_index_setup(), scale_atmos_grid_cartesc_metric::atmos_grid_cartesc_metric_setup(), scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_setup(), scale_atmos_grid_cartesc::atmos_grid_cartesc_setup(), scale_atmos_grid_icoa_index::atmos_grid_icoa_index_setup(), scale_atmos_hydrostatic::atmos_hydrostatic_setup(), scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_setup(), scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_tracer_setup(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_setup(), scale_atmos_phy_ch_rn222::atmos_phy_ch_rn222_setup(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_setup(), scale_atmos_phy_cp_common::atmos_phy_cp_common_setup(), scale_atmos_phy_cp_kf::atmos_phy_cp_kf_setup(), mod_atmos_phy_cp_vars::atmos_phy_cp_vars_setup(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_setup(), scale_atmos_phy_mp_sn14::atmos_phy_mp_sn14_qhyd2qtrc(), scale_atmos_phy_mp_sn14::atmos_phy_mp_sn14_setup(), scale_atmos_phy_mp_suzuki10::atmos_phy_mp_suzuki10_setup(), scale_atmos_phy_mp_suzuki10::atmos_phy_mp_suzuki10_tracer_setup(), scale_atmos_phy_mp_tomita08::atmos_phy_mp_tomita08_setup(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_setup(), scale_atmos_phy_rd_mstrnx::atmos_phy_rd_mstrnx_setup(), scale_atmos_phy_rd_offline::atmos_phy_rd_offline_setup(), scale_atmos_phy_rd_profile::atmos_phy_rd_profile_setup(), mod_atmos_phy_rd_vars::atmos_phy_rd_vars_setup(), scale_atmos_phy_sf_bulk::atmos_phy_sf_bulk_setup(), scale_atmos_phy_sf_const::atmos_phy_sf_const_setup(), mod_atmos_phy_sf_vars::atmos_phy_sf_vars_setup(), scale_atmos_phy_tb_d1980::atmos_phy_tb_d1980_setup(), scale_atmos_phy_tb_dns::atmos_phy_tb_dns_setup(), scale_atmos_phy_tb_smg::atmos_phy_tb_smg_setup(), mod_atmos_phy_tb_vars::atmos_phy_tb_vars_setup(), scale_atmos_refstate::atmos_refstate_setup(), scale_atmos_saturation::atmos_saturation_setup(), scale_atmos_sfc_ch_rn222::atmos_sfc_ch_rn222_setup(), scale_atmos_solarins::atmos_solarins_setup(), mod_atmos_vars::atmos_vars_setup(), scale_bulkflux::bulkflux_setup(), scale_calendar::calendar_setup(), mod_cnv2d::cnv2d(), mod_cnv2d::cnv2d_setup(), mod_cnvlanduse::cnvlanduse(), mod_cnvlanduse::cnvlanduse_setup(), mod_cnvtopo::cnvtopo(), mod_cnvtopo::cnvtopo_setup(), scale_comm_cartesc_nest::comm_cartesc_nest_setup(), scale_comm_cartesc::comm_setup(), scale_comm_icoa::comm_setup(), scale_const::const_setup(), mod_convert::convert_setup(), mod_copytopo::copytopo(), scale_cpl_phy_sfc_skin::cpl_phy_sfc_skin_setup(), scale_file_cartesc::file_cartesc_setup(), scale_file_external_input::file_external_input_setup(), scale_file_history_cartesc::file_history_cartesc_setup(), scale_file_history::file_history_setup(), scale_file::file_setup(), mod_mkinit::flux_setup(), scale_interp::interp_setup(), io_log_setup(), io_setup(), mod_land_admin::land_admin_setup(), scale_land_dyn_bucket::land_dyn_bucket_setup(), scale_land_grid_cartesc_index::land_grid_cartesc_index_setup(), scale_land_grid_cartesc::land_grid_cartesc_setup(), scale_land_grid_icoa_index::land_grid_icoa_index_setup(), scale_land_grid_icoa::land_grid_icoa_setup(), scale_land_phy_matsiro::land_phy_matsiro_setup(), scale_land_phy_snow_ky90::land_phy_snow_ky90_setup(), mod_mkinit::land_setup(), mod_land_vars::land_vars_setup(), mod_land_vars::land_vars_total(), scale_landuse::landuse_setup(), scale_mapprojection::mapprojection_setup(), scale_atmos_phy_mp_sn14::mixed_phase_collection_kij(), mod_mkinit::mkinit(), mod_mkinit::mkinit_setup(), mod_mktopo::mktopo(), mod_mktopo::mktopo_setup(), scale_monitor::monitor_setup(), scale_atmos_phy_mp_sn14::nucleation_kij(), mod_ocean_admin::ocean_admin_setup(), scale_ocean_dyn_offline::ocean_dyn_offline_setup(), scale_ocean_dyn_slab::ocean_dyn_slab_setup(), scale_ocean_grid_cartesc_index::ocean_grid_cartesc_index_setup(), scale_ocean_grid_cartesc::ocean_grid_cartesc_setup(), scale_ocean_grid_icoa_index::ocean_grid_icoa_index_setup(), scale_ocean_grid_icoa::ocean_grid_icoa_setup(), scale_ocean_phy_albedo::ocean_phy_albedo_const_setup(), scale_ocean_phy_albedo::ocean_phy_albedo_seaice_setup(), scale_ocean_phy_ice_simple::ocean_phy_ice_setup(), scale_ocean_phy_roughness::ocean_phy_roughness_const_setup(), scale_ocean_phy_roughness_miller92::ocean_phy_roughness_miller92_setup(), scale_ocean_phy_roughness_moon07::ocean_phy_roughness_moon07_setup(), scale_ocean_phy_roughness::ocean_phy_roughness_seaice_setup(), scale_ocean_phy_roughness::ocean_phy_roughness_setup(), scale_ocean_phy_tc::ocean_phy_tc_seaice_setup(), mod_mkinit::ocean_setup(), mod_ocean_vars::ocean_vars_setup(), mod_realinput_grads::parentatmossetupgrads(), mod_realinput_wrfarw::parentatmossetupwrfarw(), mod_realinput_wrfarw::parentlandsetupwrfarw(), mod_realinput_wrfarw::parentoceansetupwrfarw(), scale_prc_cartesc::prc_cartesc_setup(), scale_prc_icoa::prc_icoa_setup(), scale_prc::prc_mpifinish(), scale_prc::prc_mpitimestat(), scale_prof::prof_setup(), scale_random::random_setup(), mod_mkinit::read_sounding(), mod_realinput::realinput_atmos(), mod_realinput::realinput_surface(), mod_mkinit::rect_setup(), scale_statistics::statistics_setup(), mod_mkinit::tke_setup(), scale_topography::topo_setup(), scale_atmos_phy_mp_sn14::update_by_phase_change_kij(), mod_urban_admin::urban_admin_setup(), scale_urban_dyn_kusaka01::urban_dyn_kusaka01_setup(), scale_urban_grid_cartesc_index::urban_grid_cartesc_index_setup(), scale_urban_grid_cartesc::urban_grid_cartesc_setup(), scale_urban_grid_icoa_index::urban_grid_icoa_index_setup(), scale_urban_grid_icoa::urban_grid_icoa_setup(), mod_mkinit::urban_setup(), mod_urban_vars::urban_vars_setup(), and mod_user::user_setup().
integer, public scale_io::io_fid_log = -1 |
Log file ID.
Definition at line 56 of file scale_io.F90.
Referenced by scale_comm_icoa::comm_setup(), io_log_setup(), scale_monitor::monitor_setup(), scale_prc::prc_mpifinish(), scale_prc::prc_mpitimestat(), scale_prof::prof_rapreport(), mod_rm_driver::rm_driver(), and scale_comm_icoa::suf().
integer, public scale_io::io_fid_nml = -1 |
Log file ID (only for output namelist)
Definition at line 57 of file scale_io.F90.
Referenced by io_log_setup(), scale_monitor::monitor_setup(), scale_prc_cartesc::prc_cartesc_setup(), and scale_prc_icoa::prc_icoa_setup().
character(len=h_long), public scale_io::io_log_basename = 'LOG' |
basename of logfile
Definition at line 59 of file scale_io.F90.
Referenced by io_log_setup(), and io_setup().
character(len=h_long), public scale_io::io_nml_filename = '' |
filename of logfile (only for output namelist)
Definition at line 60 of file scale_io.F90.
Referenced by io_log_setup(), and io_setup().
logical, public scale_io::io_l = .false. |
output log or not? (this process)
Definition at line 61 of file scale_io.F90.
Referenced by scale_comm_icoa::comm_setup(), io_log_setup(), scale_prc_cartesc::prc_cartesc_setup(), scale_prc_icoa::prc_icoa_setup(), scale_prc::prc_mpifinish(), scale_prc::prc_mpitimestat(), scale_prof::prof_rapreport(), mod_rm_driver::rm_driver(), and scale_comm_icoa::suf().
logical, public scale_io::io_nml = .false. |
output log or not? (for namelist, this process)
Definition at line 62 of file scale_io.F90.
Referenced by scale_comm_icoa::comm_setup(), io_log_setup(), scale_prc_cartesc::prc_cartesc_setup(), and scale_prc_icoa::prc_icoa_setup().
logical, public scale_io::io_log_suppress = .false. |
suppress all of log output?
Definition at line 63 of file scale_io.F90.
Referenced by io_log_setup(), io_setup(), and scale_prof::prof_rapreport().
logical, public scale_io::io_log_nml_suppress = .false. |
suppress all of log output? (for namelist)
Definition at line 64 of file scale_io.F90.
Referenced by io_log_setup(), and io_setup().
logical, public scale_io::io_log_allnode = .false. |
output log for each node?
Definition at line 65 of file scale_io.F90.
Referenced by io_log_setup(), io_setup(), scale_monitor::monitor_write(), and scale_prof::prof_rapreport().
integer, public scale_io::io_step_to_stdout = -1 |
interval for output current step to STDOUT (negative is off)
Definition at line 66 of file scale_io.F90.
Referenced by mod_admin_time::admin_time_checkstate(), and io_setup().