Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
hdf5_file Module Reference

HDF5 file format.

Data Types

type  hdf5_layout_t
 Reusable distribution of a rank-ordered host array over NEKO_COMM. Counts are vector elements or matrix columns, not total matrix elements. Matrices distribute their second dimension; all ranks have the same number of rows and write every row of their local columns. Initialise collectively once, then reuse while every rank's local size and NEKO_COMM remain unchanged. Reinitialise after redistribution. More...
type  hdf5_dataset_t
 Dataset resources retained while the active group remains open. More...
type  hdf5_file_t
 Interface for HDF5 files. More...
type  hdf5_checkpoint_layout_t
 Where the data in a checkpoint file sits and how it maps onto the running case. Built once per read and shared by every dataset in the file, so a mesh-to-mesh point search happens once rather than per field. More...

Functions/Subroutines

subroutine hdf5_file_free (this)
 Release an open file and its retained dataset resources.
subroutine hdf5_file_open_new (this)
 Open a new numbered file without modifying any existing file. Uses the inherited filename and counter routines. Rank zero checks each candidate and shares the result before any collective file open.
subroutine hdf5_layout_init (this, local_count)
 Calculate a reusable layout for distributed array writes.
character(len=1024) function hdf5_file_get_next_output_fname (this)
 Get the physical file name generated by the next write.
subroutine hdf5_file_set_overwrite (this, overwrite)
 Set the overwrite flag for HDF5 files.
subroutine hdf5_file_set_precision (this, precision)
 Set the precision for the output (single or double).
subroutine hdf5_checkpoint_layout_free (this)
 Release the interpolation state and the function space of a layout. The mesh is only referenced; it belongs to the case or the checkpoint.
subroutine hdf5_file_open (this, mode)
 Open a HDF5 file in a given mode.
subroutine hdf5_file_close (this)
 Close the file.
subroutine hdf5_file_set_group (this, group_name_path)
 Set the active group for HDF5 files.
subroutine hdf5_file_write (this, data, t)
 Write data in HDF5 format.
subroutine hdf5_file_read (this, data)
 Read data in HDF5 format.
subroutine hdf5_file_write_dataset (this, data, name, layout)
subroutine hdf5_file_read_dataset (this, data_name, data, strategy)
subroutine hdf5_file_write_attribute (this, data_name, data)
subroutine hdf5_file_read_attribute (this, data_name, data, exist)
subroutine hdf5_file_write_array (this, values, name, layout)
subroutine hdf5_file_write_vector (this, vec, layout)
subroutine hdf5_file_write_matrix (this, mat, layout)
subroutine hdf5_file_write_field (this, fld)
subroutine hdf5_file_read_vector (this, data_name, vec, strategy)
subroutine hdf5_file_read_matrix (this, data_name, mat, strategy)
subroutine hdf5_file_write_int_attribute (this, attr_name, attr)
subroutine hdf5_file_write_rp_attribute (this, attr_name, attr)
subroutine hdf5_file_read_int_attribute (this, attr_name, attr, attr_exists)
subroutine hdf5_file_read_rp_attribute (this, attr_name, attr, attr_exists)

Function/Subroutine Documentation

◆ hdf5_checkpoint_layout_free()

subroutine hdf5_file::hdf5_checkpoint_layout_free ( class(hdf5_checkpoint_layout_t), intent(inout) this)
private

Definition at line 281 of file hdf5_file.F90.

Here is the call graph for this function:

◆ hdf5_file_close()

subroutine hdf5_file::hdf5_file_close ( class(hdf5_file_t), intent(inout) this)
private

Definition at line 2470 of file hdf5_file.F90.

◆ hdf5_file_free()

subroutine hdf5_file::hdf5_file_free ( class(hdf5_file_t), intent(inout) this)

Definition at line 189 of file hdf5_file.F90.

◆ hdf5_file_get_next_output_fname()

character(len=1024) function hdf5_file::hdf5_file_get_next_output_fname ( class(hdf5_file_t), intent(in) this)
private

Definition at line 241 of file hdf5_file.F90.

Here is the call graph for this function:

◆ hdf5_file_open()

subroutine hdf5_file::hdf5_file_open ( class(hdf5_file_t), intent(inout) this,
character(len=1), intent(in) mode )
private

Definition at line 2463 of file hdf5_file.F90.

◆ hdf5_file_open_new()

subroutine hdf5_file::hdf5_file_open_new ( class(hdf5_file_t), intent(inout) this)
private

Definition at line 199 of file hdf5_file.F90.

◆ hdf5_file_read()

subroutine hdf5_file::hdf5_file_read ( class(hdf5_file_t) this,
class(*), intent(inout), target data )
private
Parameters
dataData object to populate.

Definition at line 2494 of file hdf5_file.F90.

◆ hdf5_file_read_attribute()

subroutine hdf5_file::hdf5_file_read_attribute ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in) data_name,
class(*), intent(inout) data,
logical, intent(inout) exist )
private

Definition at line 2523 of file hdf5_file.F90.

◆ hdf5_file_read_dataset()

subroutine hdf5_file::hdf5_file_read_dataset ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in) data_name,
class(*), intent(inout) data,
character(len=*), intent(in), optional strategy )
private

Definition at line 2508 of file hdf5_file.F90.

◆ hdf5_file_read_int_attribute()

subroutine hdf5_file::hdf5_file_read_int_attribute ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in) attr_name,
integer, intent(inout) attr,
logical, intent(inout) attr_exists )
private

Definition at line 2589 of file hdf5_file.F90.

◆ hdf5_file_read_matrix()

subroutine hdf5_file::hdf5_file_read_matrix ( class(hdf5_file_t) this,
character(len=*), intent(in) data_name,
type(matrix_t), intent(inout) mat,
character(len=*), intent(in), optional strategy )
private

Definition at line 2567 of file hdf5_file.F90.

◆ hdf5_file_read_rp_attribute()

subroutine hdf5_file::hdf5_file_read_rp_attribute ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in) attr_name,
real(kind=rp), intent(inout) attr,
logical, intent(inout) attr_exists )
private

Definition at line 2597 of file hdf5_file.F90.

◆ hdf5_file_read_vector()

subroutine hdf5_file::hdf5_file_read_vector ( class(hdf5_file_t) this,
character(len=*), intent(in) data_name,
type(vector_t), intent(inout) vec,
character(len=*), intent(in), optional strategy )
private

Definition at line 2559 of file hdf5_file.F90.

◆ hdf5_file_set_group()

subroutine hdf5_file::hdf5_file_set_group ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in), optional group_name_path )
private

Definition at line 2476 of file hdf5_file.F90.

◆ hdf5_file_set_overwrite()

subroutine hdf5_file::hdf5_file_set_overwrite ( class(hdf5_file_t), intent(inout) this,
logical, intent(in) overwrite )
private

Definition at line 266 of file hdf5_file.F90.

◆ hdf5_file_set_precision()

subroutine hdf5_file::hdf5_file_set_precision ( class(hdf5_file_t), intent(inout) this,
integer, intent(in) precision )
private

Definition at line 273 of file hdf5_file.F90.

◆ hdf5_file_write()

subroutine hdf5_file::hdf5_file_write ( class(hdf5_file_t), intent(inout) this,
class(*), intent(in), target data,
real(kind=dp), intent(in), optional t )
private
Parameters
dataData object to write.
[optional]t Simulation time.

Definition at line 2485 of file hdf5_file.F90.

◆ hdf5_file_write_array()

subroutine hdf5_file::hdf5_file_write_array ( class(hdf5_file_t), intent(inout) this,
real(kind=rp), dimension(:), intent(in) values,
character(len=*), intent(in) name,
type(hdf5_layout_t), intent(in), optional layout )
private

Definition at line 2531 of file hdf5_file.F90.

◆ hdf5_file_write_attribute()

subroutine hdf5_file::hdf5_file_write_attribute ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in) data_name,
class(*), intent(inout) data )
private

Definition at line 2516 of file hdf5_file.F90.

◆ hdf5_file_write_dataset()

subroutine hdf5_file::hdf5_file_write_dataset ( class(hdf5_file_t), intent(inout) this,
class(*), intent(inout) data,
character(len=*), intent(in), optional name,
type(hdf5_layout_t), intent(in), optional layout )
private

Definition at line 2500 of file hdf5_file.F90.

◆ hdf5_file_write_field()

subroutine hdf5_file::hdf5_file_write_field ( class(hdf5_file_t), intent(inout) this,
type(field_t), intent(inout) fld )
private

Definition at line 2553 of file hdf5_file.F90.

◆ hdf5_file_write_int_attribute()

subroutine hdf5_file::hdf5_file_write_int_attribute ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in) attr_name,
integer, intent(in) attr )
private

Definition at line 2575 of file hdf5_file.F90.

◆ hdf5_file_write_matrix()

subroutine hdf5_file::hdf5_file_write_matrix ( class(hdf5_file_t), intent(inout) this,
type(matrix_t), intent(inout) mat,
type(hdf5_layout_t), intent(in), optional layout )
private

Definition at line 2546 of file hdf5_file.F90.

◆ hdf5_file_write_rp_attribute()

subroutine hdf5_file::hdf5_file_write_rp_attribute ( class(hdf5_file_t), intent(inout) this,
character(len=*), intent(in) attr_name,
real(kind=rp), intent(in) attr )
private

Definition at line 2582 of file hdf5_file.F90.

◆ hdf5_file_write_vector()

subroutine hdf5_file::hdf5_file_write_vector ( class(hdf5_file_t), intent(inout) this,
type(vector_t), intent(inout) vec,
type(hdf5_layout_t), intent(in), optional layout )
private

Definition at line 2539 of file hdf5_file.F90.

◆ hdf5_layout_init()

subroutine hdf5_file::hdf5_layout_init ( class(hdf5_layout_t), intent(inout) this,
integer, intent(in) local_count )
private
Parameters
local_countScalar integer: local number of vector elements or matrix columns. For a matrix use matget_ncols(), not matsize(). Pass only this rank's count, not an array of counts or dimensions.
Note
All ranks in NEKO_COMM must call this routine. A supplied layout removes size collectives from subsequent writes; callers must initialise it again on all ranks if any local count or the communicator changes.

Definition at line 225 of file hdf5_file.F90.