SCALE-RM
|
module file More...
Functions/Subroutines | |
subroutine, public | file_setup (myrank) |
setup More... | |
subroutine, public | file_finalize |
finalize More... | |
subroutine, public | file_create (basename, title, source, institution, fid, existed, rankid, single, aggregate, time_units, calendar, allnodes, append) |
create file fid is >= 1 More... | |
subroutine, public | file_add_associatedvariable (fid, vname, existed) |
subroutine, public | file_set_option (fid, filetype, key, val) |
subroutine, public | file_open (basename, fid, mode, single, allnodes, aggregate, rankid, postfix) |
logical function, public | file_opened (fid) |
check if the file is opened? More... | |
logical function, public | file_single (fid) |
check if the file is single More... | |
logical function, public | file_allnodes (fid) |
check if the file is allnodes More... | |
subroutine, public | file_get_dimlength (fid, dimname, len, error) |
get length of dimension More... | |
subroutine, public | file_def_axis (fid, name, desc, units, dim_name, dtype, dim_size, bounds) |
subroutine, public | file_def_associatedcoordinate (fid, name, desc, units, dim_names, dtype) |
subroutine, public | file_def_variable (fid, varname, desc, units, standard_name, ndims, dims, dtype, vid, time_int, time_stats, existed) |
subroutine, public | file_get_stepsize (fid, varname, len, error) |
get number of steps More... | |
subroutine, public | file_enddef (fid) |
subroutine, public | file_redef (fid) |
subroutine, public | file_attach_buffer (fid, buf_amount) |
subroutine, public | file_detach_buffer (fid) |
subroutine, public | file_flush (fid) |
subroutine, public | file_close (fid, abort) |
subroutine, public | file_close_all (skip_abort) |
subroutine, public | file_get_cftunits (date, tunits) |
get unit of time More... | |
logical function, public | file_get_aggregate (fid) |
Variables | |
logical, public | file_aggregate |
logical, public | do |
logical, public | parallel |
logical, public | i |
logical, public | o |
logical, public | through |
logical, dimension(default setting), public | pnetcdf |
module file
name | type | default value | comment |
---|---|---|---|
FILE_AGGREGATE | logical | > do parallel I/O through PnetCDF (default setting) |
subroutine, public scale_file::file_setup | ( | integer, intent(in) | myrank | ) |
setup
Definition at line 236 of file scale_file.F90.
References file_aggregate, file_close_all(), scale_file_h::file_file_max, scale_io::io_fid_conf, and scale_prc::prc_set_file_closer().
Referenced by scale_file_cartesc::file_cartesc_setup().
subroutine, public scale_file::file_finalize |
finalize
Definition at line 277 of file scale_file.F90.
Referenced by mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().
subroutine, public scale_file::file_create | ( | character(len=*), intent(in) | basename, |
character(len=*), intent(in) | title, | ||
character(len=*), intent(in) | source, | ||
character(len=*), intent(in) | institution, | ||
integer, intent(out) | fid, | ||
logical, intent(out) | existed, | ||
integer, intent(in), optional | rankid, | ||
logical, intent(in), optional | single, | ||
logical, intent(in), optional | aggregate, | ||
character(len=*), intent(in), optional | time_units, | ||
character(len=*), intent(in), optional | calendar, | ||
logical, intent(in), optional | allnodes, | ||
logical, intent(in), optional | append | ||
) |
create file fid is >= 1
Definition at line 295 of file scale_file.F90.
References scale_file_h::cstr(), scale_file_h::file_fappend, scale_file_h::file_fwrite, file_get_nvars_c(), file_get_varname_c(), file_opened(), file_set_tunits_c(), scale_file_h::file_success_code, scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
Referenced by scale_file_cartesc::file_cartesc_create(), and scale_file_history::file_history_finalize().
subroutine, public scale_file::file_add_associatedvariable | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | vname, | ||
logical, intent(out), optional | existed | ||
) |
Definition at line 464 of file scale_file.F90.
References scale_file_h::cstr(), file_add_associatedvariable_c(), scale_file_h::file_already_existed_code, file_opened(), scale_file_h::file_success_code, scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
Referenced by scale_file_cartesc::file_cartesc_def_axes(), and scale_file_history::file_history_finalize().
subroutine, public scale_file::file_set_option | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | filetype, | ||
character(len=*), intent(in) | key, | ||
character(len=*), intent(in) | val | ||
) |
Definition at line 501 of file scale_file.F90.
References scale_file_h::cstr(), file_opened(), file_set_option_c(), scale_file_h::file_success_code, scale_prc::prc_abort(), scale_prof::prof_rapend(), and scale_prof::prof_rapstart().
Referenced by scale_file_history::file_history_finalize().
subroutine, public scale_file::file_open | ( | character(len=*), intent(in) | basename, |
integer, intent(out) | fid, | ||
integer, intent(in), optional | mode, | ||
logical, intent(in), optional | single, | ||
logical, intent(in), optional | allnodes, | ||
logical, intent(in), optional | aggregate, | ||
integer, intent(in), optional | rankid, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 536 of file scale_file.F90.
References scale_file_h::file_fread.
Referenced by scale_atmos_grid_cartesc::atmos_grid_cartesc_allocate(), scale_atmos_phy_rd_profile::atmos_phy_rd_profile_finalize(), mod_realinput_netcdf::check_filetype(), scale_comm_cartesc_nest::comm_cartesc_nest_domain_regist_file(), scale_comm_cartesc_nest::comm_cartesc_nest_setup(), mod_copytopo::copytopo_get_data_scale(), mod_copytopo::copytopo_get_data_wrfarw(), mod_copytopo::copytopo_get_size_wrfarw(), scale_file_cartesc::file_cartesc_finalize(), scale_file_cartesc::file_cartesc_open(), file_def_variable(), scale_file_external_input::file_external_input_query(), scale_file_external_input::file_external_input_regist_file(), file_get_stepsize(), scale_land_grid_cartesc::land_grid_cartesc_finalize(), scale_land_grid_icoa::land_grid_icoa_finalize(), scale_ocean_grid_cartesc::ocean_grid_cartesc_finalize(), scale_ocean_grid_icoa::ocean_grid_icoa_setup(), mod_realinput_netcdf::parentatmosopennetcdf(), mod_realinput_nicam::parentatmosopennicam(), mod_realinput_netcdf::parentlandopennetcdf(), mod_realinput_netcdf::parentoceanopennetcdf(), scale_urban_grid_cartesc::urban_grid_cartesc_finalize(), and scale_urban_grid_icoa::urban_grid_icoa_finalize().
logical function, public scale_file::file_opened | ( | integer, intent(in) | fid | ) |
check if the file is opened?
Definition at line 578 of file scale_file.F90.
Referenced by file_add_associatedvariable(), file_attach_buffer(), scale_file_cartesc::file_cartesc_close(), scale_file_cartesc::file_cartesc_def_axes(), scale_file_cartesc::file_cartesc_def_var(), scale_file_cartesc::file_cartesc_enddef(), scale_file_cartesc::file_cartesc_flush(), scale_file_cartesc::file_cartesc_put_globalattributes(), scale_file_cartesc::file_cartesc_read_1d(), scale_file_cartesc::file_cartesc_read_auto_2d(), scale_file_cartesc::file_cartesc_read_auto_3d(), scale_file_cartesc::file_cartesc_read_var_2d(), scale_file_cartesc::file_cartesc_read_var_3d(), scale_file_cartesc::file_cartesc_read_var_4d(), scale_file_cartesc::file_cartesc_write_axes(), scale_file_cartesc::file_cartesc_write_var_1d(), scale_file_cartesc::file_cartesc_write_var_2d(), scale_file_cartesc::file_cartesc_write_var_3d(), scale_file_cartesc::file_cartesc_write_var_3d_t(), scale_file_cartesc::file_cartesc_write_var_4d(), file_close(), file_create(), file_def_associatedcoordinate(), file_def_axis(), file_def_variable(), file_detach_buffer(), file_enddef(), file_flush(), file_get_aggregate(), file_get_dimlength(), file_get_stepsize(), file_redef(), and file_set_option().
logical function, public scale_file::file_single | ( | integer, intent(in) | fid | ) |
check if the file is single
Definition at line 595 of file scale_file.F90.
logical function, public scale_file::file_allnodes | ( | integer, intent(in) | fid | ) |
check if the file is allnodes
Definition at line 612 of file scale_file.F90.
Referenced by scale_file_cartesc::file_cartesc_close(), scale_file_cartesc::file_cartesc_def_var(), scale_file_cartesc::file_cartesc_enddef(), scale_file_cartesc::file_cartesc_flush(), scale_file_cartesc::file_cartesc_put_globalattributes(), scale_file_cartesc::file_cartesc_read_1d(), scale_file_cartesc::file_cartesc_read_auto_2d(), scale_file_cartesc::file_cartesc_read_auto_3d(), scale_file_cartesc::file_cartesc_read_var_2d(), scale_file_cartesc::file_cartesc_read_var_3d(), scale_file_cartesc::file_cartesc_read_var_4d(), scale_file_cartesc::file_cartesc_write_var_1d(), scale_file_cartesc::file_cartesc_write_var_2d(), scale_file_cartesc::file_cartesc_write_var_3d(), scale_file_cartesc::file_cartesc_write_var_3d_t(), and scale_file_cartesc::file_cartesc_write_var_4d().
subroutine, public scale_file::file_get_dimlength | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | dimname, | ||
integer, intent(out) | len, | ||
logical, intent(out), optional | error | ||
) |
get length of dimension
Definition at line 633 of file scale_file.F90.
References scale_file_h::cstr(), scale_precision::dp, scale_file_h::file_already_existed_code, file_get_dim_length_c(), file_opened(), file_put_axis_c(), scale_file_h::file_success_code, scale_prc::prc_abort(), scale_prof::prof_rapend(), scale_prof::prof_rapstart(), and scale_precision::sp.
Referenced by mod_copytopo::copytopo_get_size_wrfarw(), mod_realinput_netcdf::parentatmossetupnetcdf(), mod_realinput_netcdf::parentlandsetupnetcdf(), and mod_realinput_netcdf::parentoceansetupnetcdf().
subroutine, public scale_file::file_def_axis | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | units, | ||
character(len=*), intent(in) | dim_name, | ||
integer, intent(in) | dtype, | ||
integer, intent(in) | dim_size, | ||
logical, intent(in), optional | bounds | ||
) |
Definition at line 770 of file scale_file.F90.
References scale_file_h::cstr(), scale_precision::dp, scale_file_h::file_already_existed_code, file_def_axis_c(), file_opened(), file_put_associatedcoordinate_c(), scale_file_h::file_success_code, file_write_axis_c(), i, scale_prc::prc_abort(), scale_prof::prof_rapend(), scale_prof::prof_rapstart(), and scale_precision::sp.
Referenced by scale_file_cartesc::file_cartesc_def_axes(), and scale_file_history::file_history_finalize().
subroutine, public scale_file::file_def_associatedcoordinate | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | units, | ||
character(len=*), dimension(:), intent(in) | dim_names, | ||
integer, intent(in) | dtype | ||
) |
Definition at line 1472 of file scale_file.F90.
References file_add_variable_c(), file_def_associatedcoordinate_c(), file_opened(), file_write_associatedcoordinate_c(), and i.
Referenced by scale_file_cartesc::file_cartesc_def_axes(), and scale_file_history::file_history_finalize().
subroutine, public scale_file::file_def_variable | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | varname, | ||
character(len=*), intent(in) | desc, | ||
character(len=*), intent(in) | units, | ||
character(len=*), intent(in) | standard_name, | ||
integer, intent(in) | ndims, | ||
character(len=*), dimension(:), intent(in) | dims, | ||
integer, intent(in) | dtype, | ||
integer, intent(out) | vid, | ||
real(dp), intent(in), optional | time_int, | ||
character(len=*), intent(in), optional | time_stats, | ||
logical, intent(out), optional | existed | ||
) |
Definition at line 2381 of file scale_file.F90.
References file_add_variable_c(), file_get_attribute_double_c(), file_get_attribute_float_c(), file_get_attribute_int_c(), file_get_attribute_text_c(), file_get_datainfo_c(), file_open(), file_opened(), file_set_attribute_double_c(), file_set_attribute_float_c(), file_set_attribute_int_c(), and file_set_attribute_text_c().
Referenced by scale_file_cartesc::file_cartesc_def_var().
subroutine, public scale_file::file_get_stepsize | ( | integer, intent(in) | fid, |
character(len=*), intent(in) | varname, | ||
integer, intent(out) | len, | ||
logical, intent(out), optional | error | ||
) |
get number of steps
Definition at line 3335 of file scale_file.F90.
References file_get_datainfo_c(), file_get_step_size_c(), file_open(), file_opened(), file_read_data_c(), file_write_data_c(), and i.
subroutine, public scale_file::file_enddef | ( | integer, intent(in) | fid | ) |
Definition at line 6061 of file scale_file.F90.
References file_enddef_c(), and file_opened().
Referenced by scale_file_cartesc::file_cartesc_enddef(), scale_file_history::file_history_set_attribute_double(), and scale_file_history::file_history_write().
subroutine, public scale_file::file_redef | ( | integer, intent(in) | fid | ) |
Definition at line 6093 of file scale_file.F90.
References file_opened(), and file_redef_c().
Referenced by scale_file_history::file_history_finalize().
subroutine, public scale_file::file_attach_buffer | ( | integer, intent(in) | fid, |
integer(8), intent(in) | buf_amount | ||
) |
Definition at line 6127 of file scale_file.F90.
References file_attach_buffer_c(), file_detach_buffer(), and file_opened().
Referenced by scale_file_cartesc::file_cartesc_enddef(), and scale_file_history::file_history_finalize().
subroutine, public scale_file::file_detach_buffer | ( | integer, intent(in) | fid | ) |
Definition at line 6165 of file scale_file.F90.
References file_detach_buffer_c(), and file_opened().
Referenced by file_attach_buffer(), scale_file_cartesc::file_cartesc_close(), and scale_file_history::file_history_finalize().
subroutine, public scale_file::file_flush | ( | integer, intent(in) | fid | ) |
Definition at line 6201 of file scale_file.F90.
References file_flush_c(), and file_opened().
Referenced by scale_file_cartesc::file_cartesc_close(), scale_file_cartesc::file_cartesc_enddef(), scale_file_cartesc::file_cartesc_flush(), scale_file_history::file_history_finalize(), scale_file_history::file_history_set_attribute_double(), and scale_file_history::file_history_write().
subroutine, public scale_file::file_close | ( | integer, intent(in) | fid, |
logical, intent(in), optional | abort | ||
) |
Definition at line 6234 of file scale_file.F90.
References file_close_c(), and file_opened().
Referenced by scale_atmos_phy_rd_profile::atmos_phy_rd_profile_finalize(), mod_copytopo::copytopo_get_data_scale(), mod_copytopo::copytopo_get_data_wrfarw(), scale_file_cartesc::file_cartesc_close(), file_close_all(), and scale_file_history::file_history_finalize().
subroutine, public scale_file::file_close_all | ( | logical, intent(in), optional | skip_abort | ) |
Definition at line 6287 of file scale_file.F90.
References file_close().
Referenced by file_setup(), mod_rm_driver::rm_driver(), mod_rm_prep::rm_prep(), and scale::scale_finalize().
subroutine, public scale_file::file_get_cftunits | ( | integer, dimension(6), intent(in) | date, |
character(len=*), intent(out) | tunits | ||
) |
get unit of time
Definition at line 6304 of file scale_file.F90.
Referenced by scale_file_cartesc::file_cartesc_create(), and scale_file_history_cartesc::file_history_cartesc_truncate_3d().
logical function, public scale_file::file_get_aggregate | ( | integer, intent(in) | fid | ) |
Definition at line 6316 of file scale_file.F90.
References file_aggregate, file_open_c(), file_opened(), scale_prc::prc_comm_null, and scale_prc::prc_local_comm_world.
Referenced by mod_atmos_dyn_vars::atmos_dyn_vars_restart_read(), mod_atmos_phy_ae_vars::atmos_phy_ae_vars_restart_read(), mod_atmos_phy_bl_vars::atmos_phy_bl_vars_restart_read(), mod_atmos_phy_ch_vars::atmos_phy_ch_vars_restart_read(), mod_atmos_phy_cp_vars::atmos_phy_cp_vars_restart_read(), mod_atmos_phy_lt_vars::atmos_phy_lt_vars_restart_read(), mod_atmos_phy_mp_vars::atmos_phy_mp_vars_restart_read(), mod_atmos_phy_rd_vars::atmos_phy_rd_vars_restart_read(), mod_atmos_phy_sf_vars::atmos_phy_sf_vars_restart_read(), mod_atmos_vars::atmos_vars_restart_check(), mod_atmos_vars::atmos_vars_restart_read(), scale_file_cartesc::file_cartesc_close(), scale_file_cartesc::file_cartesc_def_axes(), scale_file_cartesc::file_cartesc_enddef(), scale_file_cartesc::file_cartesc_flush(), scale_file_cartesc::file_cartesc_read_1d(), scale_file_cartesc::file_cartesc_read_var_2d(), scale_file_cartesc::file_cartesc_read_var_3d(), scale_file_cartesc::file_cartesc_read_var_4d(), scale_file_cartesc::file_cartesc_write_axes(), scale_file_cartesc::file_cartesc_write_var_1d(), scale_file_cartesc::file_cartesc_write_var_2d(), scale_file_cartesc::file_cartesc_write_var_3d(), scale_file_cartesc::file_cartesc_write_var_3d_t(), scale_file_cartesc::file_cartesc_write_var_4d(), mod_land_vars::land_vars_restart_read(), mod_ocean_vars::ocean_vars_restart_read(), and mod_urban_vars::urban_vars_restart_read().
logical, public scale_file::file_aggregate |
Definition at line 196 of file scale_file.F90.
Referenced by mod_admin_restart::admin_restart_setup(), mod_atmos_bnd_driver::atmos_boundary_driver_setup(), scale_atmos_grid_cartesc::atmos_grid_cartesc_setup(), mod_cnvuser::cnvuser_setup(), scale_file_cartesc::file_cartesc_create(), scale_file_cartesc::file_cartesc_open(), scale_file_external_input::file_external_input_regist_file(), scale_file_external_input::file_external_input_setup(), file_get_aggregate(), scale_file_history::file_history_setup(), file_setup(), scale_land_grid_cartesc::land_grid_cartesc_setup(), scale_land_grid_icoa::land_grid_icoa_setup(), scale_landuse::landuse_setup(), scale_ocean_grid_cartesc::ocean_grid_cartesc_setup(), scale_ocean_grid_icoa::ocean_grid_icoa_setup(), scale_topography::topography_setup(), scale_urban_grid_cartesc::urban_grid_cartesc_setup(), and scale_urban_grid_icoa::urban_grid_icoa_setup().
logical, public scale_file::do |
Definition at line 196 of file scale_file.F90.
logical, public scale_file::parallel |
Definition at line 196 of file scale_file.F90.
logical, public scale_file::i |
Definition at line 196 of file scale_file.F90.
Referenced by decode_toshiba(), decode_toshiba_mpr(), file_def_associatedcoordinate(), file_def_associatedcoordinate_c(), file_def_axis(), file_get_step_size_c(), file_get_stepsize(), file_get_varname_c(), and file_put_associatedcoordinate_c().
logical, public scale_file::o |
Definition at line 196 of file scale_file.F90.
logical, public scale_file::through |
Definition at line 196 of file scale_file.F90.
logical, dimension (default setting), public scale_file::pnetcdf |
Definition at line 196 of file scale_file.F90.