mod_input_output_helper Module


Used by

  • module~~mod_input_output_helper~~UsedByGraph module~mod_input_output_helper mod_input_output_helper proc~add_convert_method2 add_convert_method2 proc~add_convert_method2->module~mod_input_output_helper proc~convert_dat_generic convert_dat_generic proc~convert_dat_generic->module~mod_input_output_helper proc~read_par_files read_par_files proc~read_par_files->module~mod_input_output_helper proc~read_snapshot read_snapshot proc~read_snapshot->module~mod_input_output_helper proc~snapshot_write_header snapshot_write_header proc~snapshot_write_header->module~mod_input_output_helper proc~timeintegration timeintegration proc~timeintegration->module~mod_input_output_helper proc~write_snapshot write_snapshot proc~write_snapshot->module~mod_input_output_helper

Variables

Type Visibility Attributes Name Initial
logical, public :: save_now

whether a manually inserted snapshot is saved

integer, public, parameter :: version_number = 5

Version number of the .dat file output


Functions

public pure function count_ix(ixOmin1, ixOmin2, ixOmin3, ixOmax1, ixOmax2, ixOmax3)

Compute number of elements in index range

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: ixOmin1
integer, intent(in) :: ixOmin2
integer, intent(in) :: ixOmin3
integer, intent(in) :: ixOmax1
integer, intent(in) :: ixOmax2
integer, intent(in) :: ixOmax3

Return Value integer

public function get_names_from_string(aux_variable_names, nwc) result(names)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: aux_variable_names
integer, intent(in) :: nwc

Return Value character(len=name_len), (1:nwc)


Subroutines

public subroutine block_shape_io(igrid, n_ghost, ixOmin1, ixOmin2, ixOmin3, ixOmax1, ixOmax2, ixOmax3, n_values)

Determine the shape of a block for output (whether to include ghost cells, and on which sides)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: igrid
integer, intent(out) :: n_ghost(2*ndim)

nghost(1:ndim) contains the number of ghost cells on the block's minimum boundaries, and nghost(ndim+1:2*ndim) on the block's maximum boundaries

integer, intent(out) :: ixOmin1

Index range on output block

integer, intent(out) :: ixOmin2

Index range on output block

integer, intent(out) :: ixOmin3

Index range on output block

integer, intent(out) :: ixOmax1

Index range on output block

integer, intent(out) :: ixOmax2

Index range on output block

integer, intent(out) :: ixOmax3

Index range on output block

integer, intent(out) :: n_values

Number of cells/values in output

public subroutine create_output_file(fh, ix, extension, suffix)

Standard method for creating a new output file

Arguments

Type IntentOptional Attributes Name
integer, intent(out) :: fh

File handle

integer, intent(in) :: ix

Index of file

character(len=*), intent(in) :: extension

Extension of file

character(len=*), intent(in), optional :: suffix

Optional suffix

public subroutine snapshot_write_header1(fh, offset_tree, offset_block, dataset_names, nw_vars)

Write header for a snapshot, generalize cons_wnames and nw

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: fh

File handle

integer(kind=MPI_OFFSET_KIND), intent(in) :: offset_tree

Offset of tree info

integer(kind=MPI_OFFSET_KIND), intent(in) :: offset_block

Offset of block data

character(len=*), intent(in) :: dataset_names(:)
integer, intent(in) :: nw_vars