Neko  0.8.99
A portable framework for high-order spectral element flow simulations
fld_file Module Reference

NEKTON fld file format. More...

Data Types

type  fld_file_t
 Interface for NEKTON fld files. More...
 

Functions/Subroutines

subroutine fld_file_write (this, data, t)
 Write fields to a NEKTON fld file. More...
 
subroutine fld_file_write_metadata_vector (this, fh, byte_offset, x, y, z, gdim, lxyz, nelv)
 
subroutine fld_file_write_metadata_scalar (this, fh, byte_offset, x, lxyz, nelv)
 
subroutine fld_file_write_field (this, fh, byte_offset, p, n)
 
subroutine fld_file_write_vector_field (this, fh, byte_offset, x, y, z, n, gdim, lxyz, nelv)
 
subroutine fld_file_read (this, data)
 Load a field from a NEKTON fld file. More...
 
subroutine fld_file_read_field (this, fh, byte_offset, x, fld_data)
 
subroutine fld_file_read_vector_field (this, fh, byte_offset, x, y, z, fld_data)
 
subroutine fld_file_set_precision (this, precision)
 

Variables

real(kind=dp), dimension(:), allocatable, private tmp_dp
 
real(kind=sp), dimension(:), allocatable, private tmp_sp
 

Detailed Description

this module defines interface to write NEKTON's fld fields

Function/Subroutine Documentation

◆ fld_file_read()

subroutine fld_file::fld_file_read ( class(fld_file_t this,
class(*), intent(inout), target  data 
)
private

Definition at line 668 of file fld_file.f90.

Here is the call graph for this function:

◆ fld_file_read_field()

subroutine fld_file::fld_file_read_field ( class(fld_file_t), intent(inout)  this,
type(mpi_file)  fh,
integer(kind=mpi_offset_kind)  byte_offset,
type(vector_t), intent(inout)  x,
type(fld_file_data_t fld_data 
)
private

Definition at line 931 of file fld_file.f90.

Here is the caller graph for this function:

◆ fld_file_read_vector_field()

subroutine fld_file::fld_file_read_vector_field ( class(fld_file_t), intent(inout)  this,
type(mpi_file)  fh,
integer(kind=mpi_offset_kind)  byte_offset,
type(vector_t), intent(inout)  x,
type(vector_t), intent(inout)  y,
type(vector_t), intent(inout)  z,
type(fld_file_data_t fld_data 
)
private

Definition at line 965 of file fld_file.f90.

Here is the caller graph for this function:

◆ fld_file_set_precision()

subroutine fld_file::fld_file_set_precision ( class(fld_file_t this,
integer, intent(in)  precision 
)
private

Definition at line 1028 of file fld_file.f90.

◆ fld_file_write()

subroutine fld_file::fld_file_write ( class(fld_file_t), intent(inout)  this,
class(*), intent(in), target  data,
real(kind=rp), intent(in), optional  t 
)
Note
currently limited to double precision data
Todo:
fix support for single precision output?

Include metadata with bounding boxes (Just copying from nek5000)

Definition at line 77 of file fld_file.f90.

Here is the call graph for this function:

◆ fld_file_write_field()

subroutine fld_file::fld_file_write_field ( class(fld_file_t), intent(inout)  this,
type(mpi_file), intent(inout)  fh,
integer (kind=mpi_offset_kind), intent(in)  byte_offset,
real(kind=rp), dimension(n), intent(inout)  p,
integer, intent(inout)  n 
)
private

Definition at line 586 of file fld_file.f90.

Here is the caller graph for this function:

◆ fld_file_write_metadata_scalar()

subroutine fld_file::fld_file_write_metadata_scalar ( class(fld_file_t), intent(inout)  this,
type(mpi_file), intent(inout)  fh,
integer (kind=mpi_offset_kind), intent(in)  byte_offset,
real(kind=rp), dimension(lxyz, nelv), intent(in)  x,
integer, intent(in)  lxyz,
integer, intent(in)  nelv 
)
private

Definition at line 560 of file fld_file.f90.

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

◆ fld_file_write_metadata_vector()

subroutine fld_file::fld_file_write_metadata_vector ( class(fld_file_t), intent(inout)  this,
type(mpi_file), intent(inout)  fh,
integer (kind=mpi_offset_kind), intent(in)  byte_offset,
real(kind=rp), dimension(lxyz, nelv), intent(in)  x,
real(kind=rp), dimension(lxyz, nelv), intent(in)  y,
real(kind=rp), dimension(lxyz, nelv), intent(in)  z,
integer, intent(in)  gdim,
integer, intent(in)  lxyz,
integer, intent(in)  nelv 
)
private

Definition at line 527 of file fld_file.f90.

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

◆ fld_file_write_vector_field()

subroutine fld_file::fld_file_write_vector_field ( class(fld_file_t), intent(inout)  this,
type(mpi_file), intent(inout)  fh,
integer (kind=mpi_offset_kind), intent(in)  byte_offset,
real(kind=rp), dimension(lxyz, nelv), intent(in)  x,
real(kind=rp), dimension(lxyz, nelv), intent(in)  y,
real(kind=rp), dimension(lxyz, nelv), intent(in)  z,
integer, intent(in)  n,
integer, intent(in)  gdim,
integer, intent(in)  lxyz,
integer, intent(in)  nelv 
)
private

Definition at line 612 of file fld_file.f90.

Here is the caller graph for this function:

Variable Documentation

◆ tmp_dp

real(kind=dp), dimension(:), allocatable, private fld_file::tmp_dp
private

Definition at line 60 of file fld_file.f90.

◆ tmp_sp

real(kind=sp), dimension(:), allocatable, private fld_file::tmp_sp
private

Definition at line 61 of file fld_file.f90.