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

Neko legacy checkpoint file format. More...

Data Types

type  chkp_file_t
 Interface for Neko legacy checkpoint files. More...
 
type  legacy_checkpoint_view_t
 Temporary view of the payloads required by the positional .chkp format. More...
 

Functions/Subroutines

character(len=1024) function chkp_file_get_next_output_fname (this)
 Get the physical file name generated by the next write.
 
subroutine chkp_file_write (this, data, t)
 Write a Neko legacy checkpoint.
 
subroutine chkp_file_read (this, data)
 Load a Neko legacy checkpoint.
 
subroutine chkp_read_field (this, fh, byte_offset, x, nel)
 Read and optionally interpolate one legacy checkpoint field.
 
subroutine chkp_build_legacy_view (chkp, view)
 Build the fixed legacy view from format-independent payloads.
 
type(checkpoint_payload_t) function, pointer chkp_find_payload (chkp, name)
 Find a payload without making its absence an error.
 
subroutine chkp_file_set_overwrite (this, overwrite)
 Set whether checkpoint files may be overwritten.
 

Detailed Description

This module defines the interface for reading and writing .chkp files.

Function/Subroutine Documentation

◆ chkp_build_legacy_view()

subroutine chkp_file::chkp_build_legacy_view ( type(chkp_t), intent(in)  chkp,
type(legacy_checkpoint_view_t), intent(out)  view 
)
private
Parameters
chkpFormat-independent checkpoint registrations.
viewPositional view required by the .chkp implementation.

Definition at line 1030 of file chkp_file.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chkp_file_get_next_output_fname()

character(len=1024) function chkp_file::chkp_file_get_next_output_fname ( class(chkp_file_t), intent(in)  this)

Definition at line 122 of file chkp_file.f90.

Here is the call graph for this function:

◆ chkp_file_read()

subroutine chkp_file::chkp_file_read ( class(chkp_file_t)  this,
class(*), intent(inout), target  data 
)
private
Parameters
dataCheckpoint data to populate.

If checkpoint used another mesh

Definition at line 584 of file chkp_file.f90.

Here is the call graph for this function:

◆ chkp_file_set_overwrite()

subroutine chkp_file::chkp_file_set_overwrite ( class(chkp_file_t), intent(inout)  this,
logical, intent(in)  overwrite 
)
private
Parameters
overwriteWhether existing files may be overwritten.

Definition at line 1125 of file chkp_file.f90.

◆ chkp_file_write()

subroutine chkp_file::chkp_file_write ( class(chkp_file_t), intent(inout)  this,
class(*), intent(in), target  data,
real(kind=dp), intent(in), optional  t 
)
private
Parameters
dataCheckpoint data to write.
[optional]t Simulation time.

Definition at line 149 of file chkp_file.f90.

Here is the call graph for this function:

◆ chkp_find_payload()

type(checkpoint_payload_t) function, pointer chkp_file::chkp_find_payload ( type(chkp_t), intent(in)  chkp,
character(len=*), intent(in)  name 
)
private
Parameters
chkpCheckpoint to search.
namePayload path to find.
Returns
Pointer to the payload, or a disassociated pointer if absent.

Definition at line 1107 of file chkp_file.f90.

Here is the caller graph for this function:

◆ chkp_read_field()

subroutine chkp_file::chkp_read_field ( class(chkp_file_t)  this,
type(mpi_file)  fh,
integer(kind=mpi_offset_kind)  byte_offset,
real(kind=rp), dimension(this%sim_xh%lxyz, nel)  x,
integer, intent(in)  nel 
)
private
Parameters
fhOpen MPI file handle.
byte_offsetByte offset of the rank-local field data.
xSimulation-space field storage to populate.
nelNumber of local elements.

Definition at line 995 of file chkp_file.f90.