Module for file I/O operations.
|
| type | 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...
|
|
| subroutine | file_init (this, fname, header, precision, layout, overwrite) |
| | 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.
|
| character(len=1024) function | file_get_fname (this) |
| | Get a file's name.
|
| character(len=1024) function | file_get_base_fname (this) |
| | Get a file's base name.
|
| integer function | file_get_counter (this) |
| | Get a file's counter.
|
| 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.
|
| subroutine | file_set_layout (this, layout) |
| | Set a file's output layout.
|
| subroutine | file_set_overwrite (this, overwrite) |
| | Sets the file's overwrite flag.
|
| subroutine | file_set_subdivide (this, subdivide) |
| | Enable or disable subdivision of spectral elements into linear sub-cells. Only has effect for VTKHDF files; warns for other formats.
|
◆ file_free()
| subroutine file::file_free |
( |
class(file_t), intent(inout) | this | ) |
|
◆ file_get_base_fname()
| character(len=1024) function file::file_get_base_fname |
( |
class(file_t), intent(in) | this | ) |
|
◆ file_get_counter()
| integer function file::file_get_counter |
( |
class(file_t), intent(inout) | this | ) |
|
◆ file_get_fname()
| character(len=1024) function file::file_get_fname |
( |
class(file_t), intent(in) | this | ) |
|
◆ file_init()
| subroutine file::file_init |
( |
class(file_t), intent(inout) | this, |
|
|
character(len=*), intent(in) | fname, |
|
|
character(len=*), intent(in), optional | header, |
|
|
integer, intent(in), optional | precision, |
|
|
integer, intent(in), optional | layout, |
|
|
logical, intent(in), optional | overwrite ) |
- Parameters
-
Definition at line 93 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_layout()
| subroutine file::file_set_layout |
( |
class(file_t), intent(inout) | this, |
|
|
integer, intent(in) | layout ) |
- Parameters
-
| layout | The data layout as defined in bp_file.f90 and src/io/buffer/. |
Definition at line 299 of file file.f90.
◆ file_set_overwrite()
| subroutine file::file_set_overwrite |
( |
class(file_t), intent(inout) | this, |
|
|
logical, intent(in) | overwrite ) |
◆ 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_set_subdivide()
| subroutine file::file_set_subdivide |
( |
class(file_t), intent(inout) | this, |
|
|
logical, intent(in) | subdivide ) |
- Parameters
-
| subdivide | Whether to subdivide into linear sub-cells. |
Definition at line 329 of file file.f90.
◆ file_write()
| subroutine file::file_write |
( |
class(file_t), intent(inout) | this, |
|
|
class(*), intent(inout) | data, |
|
|
real(kind=dp), intent(in), optional | t ) |