File grid object class.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(error_object), | public | :: | error | Errors handler. |
|||
character(len=:), | public, | allocatable | :: | file_name | File name. |
||
integer(kind=I4P), | public | :: | file_unit | = | 0 | File unit. |
|
logical, | public | :: | is_connected | = | .false. | Sentinel to check if file is connected. |
|
logical, | public | :: | is_initialized | = | .false. | Sentinel to check if file is initialized. |
Overload =
.
Operator =
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | lhs | Left hand side. |
||
type(file_object), | intent(in) | :: | rhs | Right hand side. |
Close file.
Close file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | self | File object. |
Return a pretty-formatted description of the file.
Return a pretty-formatted description of the file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(in) | :: | self | Files collection. |
||
character(len=*), | intent(in), | optional | :: | prefix | Prefixing string. |
Description.
Destroy file.
Destroy file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | self | File object. |
Operator =
.
Operator =
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | lhs | Left hand side. |
||
type(file_object), | intent(in) | :: | rhs | Right hand side. |
Initialize file.
Initialize File.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | self | File object. |
||
character(len=*), | intent(in), | optional | :: | file_name | File name. |
Load file name from file.
Load file name from file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | self | File object. |
||
type(file_ini), | intent(in) | :: | fini | Simulation parameters ini file handler. |
||
character(len=*), | intent(in) | :: | section_name | Option name into the ini file. |
||
character(len=*), | intent(in) | :: | option_name | Option name into the ini file. |
||
logical, | intent(in), | optional | :: | go_on_fail | Go on if load fails. |
Load the grid dimensions of all blocks from file.
Load the grid dimensions of all blocks from file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_grid_object), | intent(inout) | :: | self | File object. |
||
type(grid_dimensions_object), | intent(inout) | :: | grid_dimensions | Grid dimensions off all blocks into file. |
||
character(len=*), | intent(in), | optional | :: | file_name | File name. |
Load nodes coordinates from file.
Load nodes coordinates from file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_grid_object), | intent(inout) | :: | self | File object. |
||
type(grid_dimensions_object), | intent(in) | :: | grid_dimensions | Grid dimensions off all blocks into file. |
||
type(block_object), | intent(inout) | :: | blocks(1:) | Blocks storage. |
||
character(len=*), | intent(in), | optional | :: | file_name | File name. |
Open file.
Open file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | self | File object. |
||
character(len=*), | intent(in), | optional | :: | file_name | File name. |
|
character(len=*), | intent(in), | optional | :: | format | File format. |
|
character(len=*), | intent(in), | optional | :: | action | File action. |
|
character(len=*), | intent(in), | optional | :: | access | File access. |
Save file name into file.
Save file name into file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_object), | intent(inout) | :: | self | File object. |
||
type(file_ini), | intent(inout) | :: | fini | Simulation parameters ini file handler. |
||
character(len=*), | intent(in) | :: | section_name | Option name into the ini file. |
||
character(len=*), | intent(in) | :: | option_name | Option name into the ini file. |
Save the grid dimensions of all blocks into file.
Load the grid dimensions of all blocks into file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_grid_object), | intent(inout) | :: | self | File object. |
||
type(grid_dimensions_object), | intent(in) | :: | grid_dimensions | Grid dimensions off all blocks into file. |
Save nodes coordinates into file.
Save nodes coordinates into file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(file_grid_object), | intent(inout) | :: | self | File object. |
||
type(grid_dimensions_object), | intent(in) | :: | grid_dimensions | Grid dimensions off all blocks into file. |
||
type(block_object), | intent(inout) | :: | blocks(1:) | Blocks storage. |
type, extends(file_object) :: file_grid_object
!< File grid object class.
contains
! public methods
procedure, pass(self) :: load_grid_dimensions_from_file !< Load the grid dimensions of all blocks from file.
procedure, pass(self) :: load_nodes_from_file !< Load nodes coordinates from file.
procedure, pass(self) :: save_grid_dimensions_into_file !< Save the grid dimensions of all blocks into file.
procedure, pass(self) :: save_nodes_into_file !< Save nodes coordinates into file.
endtype file_grid_object