Module for file I/O operations.
|
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...
|
|
|
type(file_t) function, target | file_init (fname, header, precision) |
| File reader/writer constructor. More...
|
|
subroutine | file_free (this) |
| File operation destructor. More...
|
|
subroutine | file_write (this, data, t) |
| Writes data to a file. More...
|
|
subroutine | file_read (this, data) |
| Read data from a file. More...
|
|
subroutine | file_set_counter (this, n) |
| Set a file's counter. More...
|
|
subroutine | file_set_start_counter (this, n) |
| Set a file's start counter. More...
|
|
subroutine | file_set_header (this, hd) |
| Set a file's header. More...
|
|
subroutine | file_set_precision (this, precision) |
| Set a file's output precision. More...
|
|
◆ file_free()
subroutine file::file_free |
( |
type(file_t), intent(inout) |
this | ) |
|
◆ file_init()
type(file_t) function, target file::file_init |
( |
character(len=*) |
fname, |
|
|
character(len=*), optional |
header, |
|
|
integer, optional |
precision |
|
) |
| |
- Parameters
-
Definition at line 81 of file file.f90.
◆ file_read()
subroutine file::file_read |
( |
class(file_t), intent(in) |
this, |
|
|
class(*), intent(inout) |
data |
|
) |
| |
◆ file_set_counter()
subroutine file::file_set_counter |
( |
class(file_t), intent(inout) |
this, |
|
|
integer, intent(in) |
n |
|
) |
| |
◆ file_set_header()
subroutine file::file_set_header |
( |
class(file_t), intent(inout) |
this, |
|
|
character(len=*), intent(in) |
hd |
|
) |
| |
◆ file_set_precision()
subroutine file::file_set_precision |
( |
class(file_t), intent(inout) |
this, |
|
|
integer, intent(in) |
precision |
|
) |
| |
◆ file_set_start_counter()
subroutine file::file_set_start_counter |
( |
class(file_t), intent(inout) |
this, |
|
|
integer, intent(in) |
n |
|
) |
| |
◆ file_write()
subroutine file::file_write |
( |
class(file_t), intent(inout) |
this, |
|
|
class(*), intent(inout) |
data, |
|
|
real(kind=rp), intent(in), optional |
t |
|
) |
| |