The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
oft_io.F90 File Reference
#include "local.h"

Data Types

interface  hdf5_read
 Read data from an HDF5 file. More...
type  hdf5_rst
 HDF5 restart structure. More...
interface  hdf5_write
 Write data to an HDF5 file. More...
type  oft_bin_file
 Binary output file object. More...
type  xdmf_plot_file
 Information for XDMF plotting groups in HDF5 plot file. More...

Modules

module  oft_io
 HDF5 file manipulation for output and restart data.

Functions/Subroutines

subroutine bin_file_add (self, fieldname, type_str, desc, fsize)
 Add field to Open FUSION Toolkit binary I/O file.
subroutine bin_file_add_comm (self, comment)
 Add comment to Open FUSION Toolkit binary I/O file.
subroutine bin_file_close (self)
 Close Open FUSION Toolkit binary I/O file.
subroutine bin_file_flush (self)
 Flush I/O buffer for Open FUSION Toolkit binary I/O file.
subroutine bin_file_header (self)
 Write header for Open FUSION Toolkit binary I/O file.
subroutine bin_file_open (self)
 Open Open FUSION Toolkit binary I/O file.
subroutine bin_file_setup (self, filename, desc)
 Setup Open FUSION Toolkit binary I/O file.
subroutine bin_file_write (self, data_i4, data_i8, data_r4, data_r8)
 Write single set of data to Open FUSION Toolkit binary I/O file.
subroutine hdf5_add_string_attribute (filename, objname, aname, attr_data)
 Add string attribute to existing object (group or dataset).
subroutine hdf5_create_file (filename, persistent_space_tracking)
 Create an empty HDF5 output file.
subroutine hdf5_create_group (filename, group_name)
 Create HDF5 group in existing file.
subroutine hdf5_delete_obj (filename, obj_path)
 Delete HDF5 object in existing file.
logical function hdf5_field_exist (filepath, path)
 Test for exitence of a field in a HDF5 file.
subroutine hdf5_field_get_sizes (filepath, path, ndims, dim_sizes)
 Test for exitence of a field in a HDF5 file.
integer(hssize_t) function, dimension(2) hdf5_file_size (filepath)
 Test for exitence of a field in a HDF5 file.
character(len=oft_mpi_plen) function hdf5_proc_str (proc_ind)
 Get processor rank as string for HDF5 I/O.
subroutine hdf5_read_1d_i4 (array, filename, path, success)
 integer(i8) 1D array implementation of hdf5_write
subroutine hdf5_read_1d_r8 (array, filename, path, success)
 real(r8) 1D array implementation of hdf5_write
subroutine hdf5_read_2d_i4 (array, filename, path, success)
 integer(i4) 2D array implementation of hdf5_write
subroutine hdf5_read_2d_r8 (array, filename, path, success)
 real(r8) 2D array implementation of hdf5_write
subroutine hdf5_read_rst (rst_info, filename, path, success)
 FE vector implementation of hdf5_write.
subroutine hdf5_read_scalar_i4 (val, filename, path, success)
 integer(i4) scalar implementation of hdf5_read
subroutine hdf5_read_scalar_r8 (val, filename, path, success)
 real(r8) scalar implementation of hdf5_read
subroutine hdf5_rst_destroy (self)
 Deallocate internal storage fields created for HDF5 collective I/O.
character(len=oft_mpi_plen) function hdf5_ts_str (ts_in)
 Get timestep index as string for HDF5 I/O.
subroutine hdf5_write_1d_i4 (array, filename, path)
 integer(i4) 1D array implementation of hdf5_write
subroutine hdf5_write_1d_r8 (array, filename, path, single_prec)
 real(r8) 1D array implementation of hdf5_write
subroutine hdf5_write_2d_i4 (array, filename, path)
 integer(i4) 2D array implementation of hdf5_write
subroutine hdf5_write_2d_r8 (array, filename, path, single_prec)
 real(r8) 2D array implementation of hdf5_write
subroutine hdf5_write_rst (rst_info, filename, path)
 FE vector implementation of hdf5_write.
subroutine hdf5_write_scalar_i4 (val, filename, path)
 integer(i4) scalar implementation of hdf5_write
subroutine hdf5_write_scalar_r8 (val, filename, path, single_prec)
 real(r8) scalar implementation of hdf5_write
logical function oft_file_exist (filepath)
 Test for exitence of a file.
subroutine xdmf_add_mesh (self, mesh_type, pt_list, cell_list, grid_name)
 Needs docs.
subroutine xdmf_add_timestep (self, t)
 Adds a timestep to the dump metadata file.
subroutine xdmf_clear_timesteps (self, clear_static)
 Clear existing timesteps and reset to static fields.
subroutine xdmf_write_scalar (self, data, grid_name, path, centering, single_prec)
 Write scalar field to plot file.
subroutine xdmf_write_vector (self, data, grid_name, path, centering, single_prec)
 Write vector field to plot file.
subroutine xmdf_setup (self, group_name, basepath, persistent_space_tracking)
 Needs docs.

Variables

integer(i4hdf5_fcount =0
 Number of HDF5 fields.
integer(i4), parameter hdf5_flen =40
 Maximum size of HDF5 filenames.
integer(i4), parameter hdf5_nl =800
 Maximum number of HDF5 fields.
integer(i4hdf5_ts =0
 Number of HDF5 time steps.