nohdf5_io

Module

Description

$Id$

This module is a dummy module for non-HDF5 IO. 28-Oct-2016/PABoudin: coded

Quick access

Types:

element

Variables:

create_group_hdf5, exists_in_hdf5, file_close_hdf5, file_open_hdf5, finalize_hdf5, h5_dptype, h5_dset, h5_dspace, h5_err, h5_file, h5_fspace, h5_group, h5_mspace, h5_ntype, h5_plist, hdf5_input_slice, hdf5_output_slice, hdf5_output_slice_position, index_append, index_get, index_pro, index_reset, init_hdf5, initialize_hdf5, input_dim, input_hdf5, input_hdf5_0d, input_hdf5_1d, input_hdf5_3d, input_hdf5_4d, input_hdf5_int_0d, input_hdf5_int_1d, input_hdf5_part_2d, input_hdf5_profile_1d, input_profile, input_slice_real_arr, input_slice_scat_arr, lcollective, local_subsize, lun_input, maux_out, mvar_out, n_dims, nsleep, ntries, output_average, output_average_1d, output_average_1d_chunked, output_average_phi, output_dim, output_hdf5, output_hdf5_0d, output_hdf5_1d, output_hdf5_3d, output_hdf5_4d, output_hdf5_double, output_hdf5_double_0d, output_hdf5_double_1d, output_hdf5_int_0d, output_hdf5_int_1d, output_hdf5_part_2d, output_hdf5_profile_1d, output_hdf5_slice_2d, output_hdf5_string, output_local_hdf5_2d, output_local_hdf5_3d, output_local_hdf5_4d, output_profile, output_settings, output_timeseries, particle_index_append, particle_index_pro, pointmass_index_append, pointmass_index_pro, trim_average, ts_offsets

Routines:

create_group_hdf5(), exists_in_hdf5(), file_close_hdf5(), file_open_hdf5(), finalize_hdf5(), hdf5_output_slice(), hdf5_output_slice_position(), index_append(), index_get(), index_reset(), init_hdf5(), initialize_hdf5(), input_dim(), output_dim(), output_settings(), output_timeseries(), particle_index_append(), pointmass_index_append(), trim_average()

Needed modules

Variables

  • hdf5_io/hdf5_input_slice [public]
  • hdf5_io/index_pro [character,private/parameter/optional/default='index.pro']
  • hdf5_io/input_hdf5 [public]
  • hdf5_io/input_hdf5_0d [private]
  • hdf5_io/input_hdf5_1d [private]
  • hdf5_io/input_hdf5_3d [private]
  • hdf5_io/input_hdf5_4d [private]
  • hdf5_io/input_hdf5_int_0d [private]
  • hdf5_io/input_hdf5_int_1d [private]
  • hdf5_io/input_hdf5_part_2d [private]
  • hdf5_io/input_hdf5_profile_1d [private]
  • hdf5_io/input_profile [public]
  • hdf5_io/input_slice_real_arr [private]
  • hdf5_io/input_slice_scat_arr [private]
  • hdf5_io/lun_input [integer,private/parameter/optional/default=89]
  • hdf5_io/lun_output [integer,private/parameter/optional/default=92]
  • hdf5_io/output_average [public]
  • hdf5_io/output_average_1d [private]
  • hdf5_io/output_average_1d_chunked [private]
  • hdf5_io/output_average_phi [private]
  • hdf5_io/output_hdf5 [public]
  • hdf5_io/output_hdf5_0d [private]
  • hdf5_io/output_hdf5_1d [private]
  • hdf5_io/output_hdf5_3d [private]
  • hdf5_io/output_hdf5_4d [private]
  • hdf5_io/output_hdf5_double [public]
  • hdf5_io/output_hdf5_double_0d [private]
  • hdf5_io/output_hdf5_double_1d [private]
  • hdf5_io/output_hdf5_int_0d [private]
  • hdf5_io/output_hdf5_int_1d [private]
  • hdf5_io/output_hdf5_part_2d [private]
  • hdf5_io/output_hdf5_profile_1d [private]
  • hdf5_io/output_hdf5_slice_2d [private]
  • hdf5_io/output_hdf5_string [private]
  • hdf5_io/output_local_hdf5_2d [private]
  • hdf5_io/output_local_hdf5_3d [private]
  • hdf5_io/output_local_hdf5_4d [private]
  • hdf5_io/output_profile [public]
  • hdf5_io/particle_index_pro [character,private/parameter/optional/default='particle_index.pro']
  • hdf5_io/pointmass_index_pro [character,private/parameter/optional/default='pointmass_index.pro']

Subroutines and functions

subroutine  hdf5_io/initialize_hdf5([nxyz[, ngrid[, mvar_[, maux_]]]])
Parameters:
  • nxyz (3) [integer]

  • ngrid (3) [integer]

  • mvar [integer]

  • maux [integer]

Called from:

helper_loop(), reload(), gen_output(), timeloop(), check_tspec_crit_log_interval(), check_tsnap_crit_log_interval(), check_tvid_crit_log_interval(), setup_signal_files(), print_metrics(), run_start(), start

Call to:

fatal_error(), exists_in_hdf5(), write_rslice_position(), index_get()

subroutine  hdf5_io/init_hdf5()
Called from:

helper_loop(), reload(), gen_output(), timeloop(), check_tspec_crit_log_interval(), check_tsnap_crit_log_interval(), check_tvid_crit_log_interval(), setup_signal_files(), print_metrics(), run_start(), start

Call to:

fatal_error(), exists_in_hdf5(), write_rslice_position(), index_get()

subroutine  hdf5_io/finalize_hdf5()
Call to:

fatal_error(), exists_in_hdf5(), write_rslice_position(), index_get()

subroutine  hdf5_io/file_open_hdf5(file[, truncate[, global[, read_only[, write[, comm]]]]])
Parameters:
  • file [character,in]

  • truncate [logical,in,]

  • global [logical,in,]

  • read_only [logical,in,]

  • write [logical,in,]

  • comm [integer,in,]

Called from:

initialize_power_spectrum(), read_power_spectrum_run_pars(), write_power_spectrum_run_pars(), power(), crossspec(), power_2d(), power_xy(), powerhel(), powerlor(), poweromu(), poweremf(), powertra(), powergws(), powerscl(), power_1d(), pdf(), pdf_2d(), pdf1d_ang(), power_phi(), powerhel_phi(), power_vec(), polar_spectrum(), power1d_plane(), power_cor(), power_cor_scl(), quadratic_invariants(), power_fft3d_vec(), power_transfer_mag()

Call to:

fatal_error(), exists_in_hdf5(), write_rslice_position(), index_get()

subroutine  hdf5_io/file_close_hdf5()
Called from:

initialize_power_spectrum(), read_power_spectrum_run_pars(), write_power_spectrum_run_pars(), power(), crossspec(), power_2d(), power_xy(), powerhel(), powerlor(), poweromu(), poweremf(), powertra(), powergws(), powerscl(), power_1d(), pdf(), pdf_2d(), pdf1d_ang(), power_phi(), powerhel_phi(), power_vec(), polar_spectrum(), power1d_plane(), power_cor(), power_cor_scl(), quadratic_invariants(), power_fft3d_vec(), power_transfer_mag()

Call to:

fatal_error(), exists_in_hdf5(), write_rslice_position(), index_get()

subroutine  hdf5_io/create_group_hdf5(name)
Parameters:

name [character,in]

Called from:

initialize_power_spectrum(), read_power_spectrum_run_pars(), write_power_spectrum_run_pars(), power(), crossspec(), power_2d(), power_xy(), powerhel(), powerlor(), poweromu(), poweremf(), powertra(), powergws(), powerscl(), power_1d(), pdf(), pdf_2d(), pdf1d_ang(), power_phi(), powerhel_phi(), power_vec(), polar_spectrum(), power1d_plane(), power_cor(), power_cor_scl(), quadratic_invariants(), power_fft3d_vec(), power_transfer_mag()

Call to:

fatal_error(), exists_in_hdf5(), write_rslice_position(), index_get()

function  hdf5_io/exists_in_hdf5(name)
Parameters:

name [character,in]

Return:

exists_in_hdf5 [logical]

Called from:

initialize_hdf5(), init_hdf5(), finalize_hdf5(), file_open_hdf5(), file_close_hdf5(), create_group_hdf5(), initialize_power_spectrum(), read_power_spectrum_run_pars(), write_power_spectrum_run_pars(), power(), crossspec(), power_2d(), power_xy(), powerhel(), powerlor(), poweromu(), poweremf(), powertra(), powergws(), powerscl(), power_1d(), pdf(), pdf_2d(), pdf1d_ang(), power_phi(), powerhel_phi(), power_vec(), polar_spectrum(), power1d_plane(), power_cor(), power_cor_scl(), quadratic_invariants(), power_fft3d_vec(), power_transfer_mag()

Call to:

fatal_error(), write_rslice_position(), index_get()

subroutine  hdf5_io/input_dim(wrkdir, mx_in, my_in, mz_in, mvar_in, maux_in, mglobal_in, prec_in, nghost_in, nprocx_in, nprocy_in, nprocz_in[, local])

Read dimensions from dim.dat (local or global). If local=.true., nprocx_in, nprocy_in, nprocz_in contain the processor coordinates from dim.dat, not the processor numbers (which are not stored there). Default: local=.false.

Parameters:
  • wrkdir [character,in]

  • mx_in [integer,out]

  • my_in [integer,out]

  • mz_in [integer,out]

  • mvar_in [integer,out]

  • maux_in [integer,out]

  • mglobal_in [integer,out]

  • prec_in [character]

  • nghost_in [integer,out]

  • nprocx_in [integer,out]

  • nprocy_in [integer,out]

  • nprocz_in [integer,out]

  • local [logical]

Use :

general (loptest(), itoa())

Called from:

initialize_boundcond()

Call to:

fatal_error(), write_rslice_position(), index_get()

subroutine  hdf5_io/output_dim(file, mx_out, my_out, mz_out, mxgrid_out, mygrid_out, mzgrid_out, mvar_out, maux_out, mglobal)

Write dimension to file.

02-Nov-2018/PABourdin: moved IO parts from wdim to low-level IO modules

Parameters:
  • file [character,in]

  • mx_out [integer,in]

  • my_out [integer,in]

  • mz_out [integer,in]

  • mxgrid_out [integer,in]

  • mygrid_out [integer,in]

  • mzgrid_out [integer,in]

  • mvar_out [integer,in]

  • maux_out [integer,in]

  • mglobal [integer,in]

Call to:

fatal_error(), write_rslice_position(), index_get()

subroutine  hdf5_io/output_timeseries(data, data_im)

Append diagnostic data to a binary file.

01-Apr-2019/PABourdin: coded

Parameters:
  • data (2 * nname) [real,in] :: intent(inout)

  • data_im (2 * nname) [real,in]

Called from:

initialize_diagnostic_arrays()

Call to:

fatal_error(), write_rslice_position(), index_get()

subroutine  hdf5_io/hdf5_output_slice_position()

‘data/procN/slice_position.dat’ is distributed, but may not be synchronized on I/O error (-> dist=0) as this would make it disfunctional; correct a posteriori if necessary.

27-Oct-2018/PABourdin: cleaned up

Use :

slices_methods (write_rslice_position())

Called from:

wgrid(), rgrid(), register_io(), finalize_io(), directory_names(), output_snap(), output_snap_finalize(), output_average_2d(), output_slice_position(), input_snap(), input_snap_finalize(), input_part_snap(), input_pointmass(), init_read_persist(), read_persist_id(), input_globals(), log_filename_to_file(), wdim(), rproc_bounds(), wproc_bounds(), output_ode(), input_ode(), read_profile()

Call to:

write_rslice_position(), fatal_error(), index_get()

subroutine  hdf5_io/hdf5_output_slice(lwrite, time, label, suffix, pos, grid_pos, data)

append to a slice file

12-nov-02/axel: coded 26-jun-06/anders: moved to slices 22-sep-07/axel: changed Xy to xy2, to be compatible with Mac 28-Oct-2018/PABourdin: cleaned up, moved to IO module

Parameters:
  • lwrite [logical,in]

  • time [real,in]

  • label [character,in]

  • suffix [character,in]

  • pos [real,in]

  • grid_pos [integer,in]

  • data (,) [real,pointer]

Called from:

wgrid(), rgrid(), register_io(), finalize_io(), directory_names(), output_snap(), output_snap_finalize(), output_average_2d(), output_slice_position(), output_slice(), input_snap(), input_snap_finalize(), input_part_snap(), input_pointmass(), init_read_persist(), read_persist_id(), input_globals(), log_filename_to_file(), wdim(), rproc_bounds(), wproc_bounds(), output_ode(), input_ode(), read_profile()

Call to:

fatal_error(), index_get()

subroutine  hdf5_io/index_append(varname, ivar, vector, array)

14-oct-18/PAB: coded 09-Jul-2020/PAB: reworked

Parameters:
  • varname [character,in]

  • ivar [integer,in]

  • vector [integer,in]

  • array [integer,in]

Call to:

fatal_error(), index_get()

subroutine  hdf5_io/particle_index_append(label, ilabel)

22-Oct-2018/PABourdin: coded

Parameters:
  • label [character,in]

  • ilabel [integer,in]

Called from:

input_particles(), output_particles(), append_npvar(), append_npaux()

Call to:

index_get(), fatal_error()

subroutine  hdf5_io/pointmass_index_append(label, ilabel)

13-Apr-2019/PABourdin: copied from ‘particle_index_append’

Parameters:
  • label [character,in]

  • ilabel [integer,in]

Call to:

index_get(), fatal_error()

function  hdf5_io/index_get(ivar[, particle[, pointmass[, quiet]]])

13-Nov-2018/PABourdin: coded

Parameters:
  • ivar [integer,in]

  • particle [logical,in,]

  • pointmass [logical,in,]

  • quiet [logical,in,]

Return:

index_get [character]

Called from:

initialize_hdf5(), init_hdf5(), finalize_hdf5(), file_open_hdf5(), file_close_hdf5(), create_group_hdf5(), exists_in_hdf5(), input_dim(), output_dim(), output_timeseries(), hdf5_output_slice_position(), hdf5_output_slice(), index_append(), particle_index_append(), pointmass_index_append()

Call to:

fatal_error()

subroutine  hdf5_io/index_reset()

14-Oct-2018/PABourdin: coded

Call to:

fatal_error()

subroutine  hdf5_io/trim_average(path, plane, ngrid, nname)

Trim a 1D-average file for times past the current time.

25-apr-16/ccyang: coded 23-Nov-2018/PABourdin: moved to IO module

Parameters:
  • path [character,in]

  • plane [character,in]

  • ngrid [integer,in]

  • nname [integer,in]

Use :

file_io (file_exists())

Called from:

initialize_diagnostics(), initialize_diagnostic_arrays(), prints(), report_undefined_diagnostics(), gen_form_legend(), write_sound(), get_average_density(), diagnostic(), initialize_time_integrals(), xyaverages_z(), xzaverages_y(), yzaverages_x(), phizaverages_r(), yaverages_xz(), zaverages_xy(), phiaverages_rz(), write_1daverages(), write_1daverages_prepare(), write_2daverages_prepare(), write_2daverages(), trim_averages()

Call to:

fatal_error()

subroutine  hdf5_io/output_settings([time[, time_only]])

Dummy.

Parameters:
  • time [real,in,]

  • time_only [logical,in,]