Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
csv_file::csv_file_t Type Referenceabstract
Inheritance diagram for csv_file::csv_file_t:
Collaboration diagram for csv_file::csv_file_t:

Public Member Functions

procedure write (this, data, t)
 Writes data to an output file.
 
procedure read (this, data)
 Reads data from an input file.
 
procedure set_header (this, hd)
 Sets the header for a csv file.
 
procedure count_lines (this)
 Count the number of lines in a file.
 
procedure init (this, fname)
 Generic file constructor.
 
procedure(generic_file_write), deferred write (this, data, t)
 Read method.
 
procedure(generic_file_read), deferred read (this, data)
 
procedure set_counter (this, n)
 Set the file counter to n.
 
procedure set_start_counter (this, n)
 Set the file start counter to n.
 
procedure check_exists (this)
 Ensure the file exists.
 

Public Attributes

character(len=1024) header = ""
 Contains header of file.
 
logical header_is_written = .false.
 Has header already been written?
 
character(len=1024) fname
 
integer counter
 
integer start_counter = 0
 
logical serial = .false.
 File format is serial.
 

Detailed Description

Definition at line 45 of file csv_file.f90.

Member Function/Subroutine Documentation

◆ check_exists()

procedure generic_file::generic_file_t::check_exists ( class(generic_file_t), intent(in this)
inherited

Definition at line 56 of file generic_file.f90.

◆ count_lines()

procedure csv_file::csv_file_t::count_lines ( class(csv_file_t), intent(in this)

Definition at line 56 of file csv_file.f90.

◆ init()

procedure generic_file::generic_file_t::init ( class(generic_file_t this,
character(len=*)  fname 
)
inherited

Write method.

Definition at line 46 of file generic_file.f90.

◆ read() [1/2]

procedure csv_file::csv_file_t::read ( class(csv_file_t this,
class(*), intent(inout), target  data 
)
Parameters
thiscsv file in which to read.
datamatrix_t or vector_t, will contain the read data.

Definition at line 52 of file csv_file.f90.

◆ read() [2/2]

procedure(generic_file_read), deferred generic_file::generic_file_t::read ( class(generic_file_t this,
class(*), intent(inout), target  data 
)
pure virtualinherited

Definition at line 50 of file generic_file.f90.

◆ set_counter()

procedure generic_file::generic_file_t::set_counter ( class(generic_file_t), intent(inout this,
integer, intent(in n 
)
inherited

Definition at line 52 of file generic_file.f90.

◆ set_header()

procedure csv_file::csv_file_t::set_header ( class(csv_file_t), intent(inout this,
character(len=*), intent(in hd 
)
Parameters
hdHeader.
Note
The header will be written "as is", meaning there will be no checks performed on the header separators, number of columns, etc.

Definition at line 54 of file csv_file.f90.

◆ set_start_counter()

procedure generic_file::generic_file_t::set_start_counter ( class(generic_file_t), intent(inout this,
integer, intent(in n 
)
inherited

Definition at line 54 of file generic_file.f90.

◆ write() [1/2]

procedure csv_file::csv_file_t::write ( class (csv_file_t), intent(inout this,
class(*), intent(in), target  data,
real(kind=rp), intent(in), optional  t 
)
Parameters
thiscsv file to write in.
dataData to write, can be vector_t or matrix_t.
tTime.

Definition at line 50 of file csv_file.f90.

◆ write() [2/2]

procedure(generic_file_write), deferred generic_file::generic_file_t::write ( class(generic_file_t), intent(inout this,
class(*), intent(in), target  data,
real(kind=rp), intent(in), optional  t 
)
pure virtualinherited

Definition at line 48 of file generic_file.f90.

Member Data Documentation

◆ counter

integer generic_file::generic_file_t::counter
inherited

Definition at line 40 of file generic_file.f90.

◆ fname

character(len=1024) generic_file::generic_file_t::fname
inherited

Definition at line 39 of file generic_file.f90.

◆ header

character(len=1024) csv_file::csv_file_t::header = ""

Definition at line 46 of file csv_file.f90.

◆ header_is_written

logical csv_file::csv_file_t::header_is_written = .false.

Definition at line 47 of file csv_file.f90.

◆ serial

logical generic_file::generic_file_t::serial = .false.
inherited

Definition at line 43 of file generic_file.f90.

◆ start_counter

integer generic_file::generic_file_t::start_counter = 0
inherited

Definition at line 41 of file generic_file.f90.


The documentation for this type was generated from the following file: