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

Module for file I/O operations.

Data Types

interface  file_t
 A wrapper around a polymorphic generic_file_t that handles its init. This is essentially a factory for generic_file_t descendants additionally handling special CSV file parameters (header and precision). More...
 

Functions/Subroutines

type(file_t) function, target file_init (fname, header, precision)
 File reader/writer constructor.
 
subroutine file_free (this)
 File operation destructor.
 
subroutine file_write (this, data, t)
 Writes data to a file.
 
subroutine file_read (this, data)
 Read data from a file.
 
subroutine file_set_counter (this, n)
 Set a file's counter.
 
subroutine file_set_start_counter (this, n)
 Set a file's start counter.
 
subroutine file_set_header (this, hd)
 Set a file's header.
 
subroutine file_set_precision (this, precision)
 Set a file's output precision.
 

Function/Subroutine Documentation

◆ file_free()

subroutine file::file_free ( type(file_t), intent(inout this)

Definition at line 133 of file file.f90.

Here is the caller graph for this function:

◆ file_init()

type(file_t) function, target file::file_init ( character(len=*)  fname,
character(len=*), optional  header,
integer, optional  precision 
)
Parameters
fnameFilename.

Definition at line 81 of file file.f90.

Here is the caller graph for this function:

◆ file_read()

subroutine file::file_read ( class(file_t), intent(in this,
class(*), intent(inout data 
)
Parameters
dataRead data.

Definition at line 159 of file file.f90.

◆ file_set_counter()

subroutine file::file_set_counter ( class(file_t), intent(inout this,
integer, intent(in n 
)

Definition at line 168 of file file.f90.

◆ file_set_header()

subroutine file::file_set_header ( class(file_t), intent(inout this,
character(len=*), intent(in hd 
)

Definition at line 192 of file file.f90.

Here is the call graph for this function:

◆ file_set_precision()

subroutine file::file_set_precision ( class(file_t), intent(inout this,
integer, intent(in precision 
)
Parameters
precisionPrecision as defined in num_types.

Definition at line 210 of file file.f90.

Here is the call graph for this function:

◆ file_set_start_counter()

subroutine file::file_set_start_counter ( class(file_t), intent(inout this,
integer, intent(in n 
)

Definition at line 180 of file file.f90.

◆ file_write()

subroutine file::file_write ( class(file_t), intent(inout this,
class(*), intent(inout data,
real(kind=rp), intent(in), optional  t 
)
Parameters
dataData to be written.

Definition at line 144 of file file.f90.