SCALE-RM
|
module file More...
Functions/Subroutines | |
subroutine, public | file_setup (myrank) |
setup More... | |
subroutine, public | file_create (basename, title, source, institution, fid, existed, rankid, single, aggregate, time_units, calendar, 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, 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... | |
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_avg, 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_make_fname (basename, prefix, rankid, len, fname) |
subroutine, public | file_get_cftunits (date, tunits) |
get unit of time More... | |
logical function, public | file_get_aggregate (fid) |
Variables | |
logical, public | file_aggregate = .false. |
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 | .false. | > do parallel I/O through PnetCDF (default setting) |
subroutine, public scale_file::file_setup | ( | integer, intent(in) | myrank | ) |
setup
Definition at line 221 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_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 | append | ||
) |
create file fid is >= 1
Definition at line 267 of file scale_file.F90.
References 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, and scale_prc::prc_abort().
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 422 of file scale_file.F90.
References file_add_associatedvariable_c(), scale_file_h::file_already_existed_code, file_opened(), scale_file_h::file_success_code, and scale_prc::prc_abort().
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 456 of file scale_file.F90.
References file_opened(), file_set_option_c(), scale_file_h::file_success_code, and scale_prc::prc_abort().
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 | aggregate, | ||
integer, intent(in), optional | rankid, | ||
character(len=*), intent(in), optional | postfix | ||
) |
Definition at line 487 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_setup(), 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_cleanup(), scale_file_cartesc::file_cartesc_open(), file_def_variable(), scale_file_external_input::file_external_input_regist(), scale_file_external_input::file_external_input_update_3d(), file_get_stepsize(), scale_land_grid_cartesc::land_grid_cartesc_setup(), scale_land_grid_icoa::land_grid_icoa_setup(), scale_ocean_grid_cartesc::ocean_grid_cartesc_setup(), scale_ocean_grid_icoa::ocean_grid_icoa_setup(), mod_realinput_scale::parentatmosinputscale(), mod_realinput_wrfarw::parentatmosinputwrfarw(), mod_realinput_nicam::parentatmosopennicam(), mod_realinput_scale::parentatmosopenscale(), mod_realinput_wrfarw::parentatmossetupwrfarw(), mod_realinput_scale::parentlandinputscale(), mod_realinput_wrfarw::parentlandinputwrfarw(), mod_realinput_wrfarw::parentlandsetupwrfarw(), mod_realinput_scale::parentoceaninputscale(), mod_realinput_wrfarw::parentoceaninputwrfarw(), mod_realinput_scale::parentoceanopenscale(), mod_realinput_wrfarw::parentoceansetupwrfarw(), scale_urban_grid_cartesc::urban_grid_cartesc_setup(), scale_urban_grid_icoa::urban_grid_icoa_setup(), and mod_realinput_wrfarw::wrf_arwpost_calc_uvmet().
logical function, public scale_file::file_opened | ( | integer, intent(in) | fid | ) |
check if the file is opened?
Definition at line 527 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 544 of file scale_file.F90.
Referenced by 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(), 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 565 of file scale_file.F90.
References 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(), and scale_precision::sp.
Referenced by mod_copytopo::copytopo_get_size_wrfarw(), mod_realinput_wrfarw::parentatmossetupwrfarw(), mod_realinput_wrfarw::parentlandsetupwrfarw(), and mod_realinput_wrfarw::parentoceansetupwrfarw().
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 667 of file scale_file.F90.
References 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(), scale_prc::prc_abort(), 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 1037 of file scale_file.F90.
References scale_precision::dp, file_add_variable_c(), scale_file_h::file_already_existed_code, file_def_associatedcoordinate_c(), file_opened(), scale_file_h::file_success_code, file_write_associatedcoordinate_c(), scale_prc::prc_abort(), 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_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, | ||
logical, intent(in), optional | time_avg, | ||
logical, intent(out), optional | existed | ||
) |
Definition at line 1571 of file scale_file.F90.
References file_add_variable_c(), scale_file_h::file_already_existed_code, 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(), file_set_attribute_text_c(), scale_file_h::file_success_code, and scale_prc::prc_abort().
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 2472 of file scale_file.F90.
References scale_precision::dp, scale_file_h::file_already_existed_code, file_get_datainfo_c(), file_get_step_size_c(), file_open(), file_opened(), file_read_data_c(), scale_file_h::file_rmiss, scale_file_h::file_success_code, file_write_data_c(), i, scale_prc::prc_abort(), and scale_precision::sp.
subroutine, public scale_file::file_enddef | ( | integer, intent(in) | fid | ) |
Definition at line 4585 of file scale_file.F90.
References file_enddef_c(), file_opened(), scale_file_h::file_success_code, and scale_prc::prc_abort().
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 4613 of file scale_file.F90.
References file_opened(), file_redef_c(), scale_file_h::file_success_code, and scale_prc::prc_abort().
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 4643 of file scale_file.F90.
References file_attach_buffer_c(), file_detach_buffer(), file_opened(), scale_file_h::file_success_code, and scale_prc::prc_abort().
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 4677 of file scale_file.F90.
References file_detach_buffer_c(), file_opened(), scale_file_h::file_success_code, and scale_prc::prc_abort().
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 4709 of file scale_file.F90.
References file_flush_c(), file_opened(), scale_file_h::file_success_code, and scale_prc::prc_abort().
Referenced by scale_file_cartesc::file_cartesc_close(), scale_file_cartesc::file_cartesc_enddef(), scale_file_cartesc::file_cartesc_flush(), scale_file_cartesc::file_cartesc_write_var_4d(), 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 4738 of file scale_file.F90.
References scale_file_h::file_already_closed_code, file_close_c(), file_opened(), scale_file_h::file_success_code, and scale_prc::prc_abort().
Referenced by scale_atmos_phy_rd_profile::atmos_phy_rd_profile_setup(), 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 4787 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_make_fname | ( | character(len=*), intent(in) | basename, |
character(len=*), intent(in) | prefix, | ||
integer, intent(in) | rankid, | ||
integer, intent(in) | len, | ||
character(len=*), intent(out) | fname | ||
) |
Definition at line 4806 of file scale_file.F90.
References scale_prc::prc_abort().
Referenced by file_get_aggregate().
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 4832 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 4844 of file scale_file.F90.
References file_aggregate, file_make_fname(), file_open_c(), file_opened(), scale_file_h::file_success_code, 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 = .false. |
Definition at line 182 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(), 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 182 of file scale_file.F90.
logical, public scale_file::parallel |
Definition at line 182 of file scale_file.F90.
logical, public scale_file::i |
Definition at line 182 of file scale_file.F90.
Referenced by file_add_variable_c(), file_def_associatedcoordinate_c(), 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 182 of file scale_file.F90.
logical, public scale_file::through |
Definition at line 182 of file scale_file.F90.
logical, dimension (default setting), public scale_file::pnetcdf |
Definition at line 182 of file scale_file.F90.