OFF grid dimensions object definition and implementation.
Grid dimensions object class.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(block_signature_object), | public, | allocatable | :: | block_signature(:) | Signature of each block. |
||
integer(kind=I4P), | public | :: | blocks_number | = | 0 | Number of blocks, blobal (whole) number on all process/image. |
generic, public :: assignment(=) => grid_d_assign_grid_d | Overload |
procedure, public, pass(self) :: description | Return a pretty-formatted description of grid dimensions. |
procedure, public, pass(self) :: destroy | Destroy grid dimensions. |
procedure, public, pass(lhs) :: grid_d_assign_grid_d | Operator |
procedure, public, pass(self) :: initialize | Initialize grid dimensions. |
procedure, public, pass(self) :: iolength | Return the IO length storage. |
procedure, public, pass(self) :: iopos_block_nodes | Return the IO position where nodes of block b-th are stored. |
procedure, public, pass(self) :: load_from_file | Load grid dimensions from file. |
procedure, public, pass(self) :: save_into_file | Save grid dimensions into file. |
Return a pretty-formatted description of the grid dimensions.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(in) | :: | self | Grid dimensions object. |
||
character(len=*), | intent(in), | optional | :: | prefix | Prefixing string. |
Description.
Return the IO length storage.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(in) | :: | self | Grid dimensions object. |
IO length storage.
Return the IO position where nodes of block b-th are stored.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(in) | :: | self | Grid dimensions object. |
||
integer(kind=I4P), | intent(in) | :: | b | Block index. |
IO position where nodes of block b-th are stored.
Destroy grid dimensions.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(inout) | :: | self | Grid dimensions object. |
Operator =
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(inout) | :: | lhs | Left hand side. |
||
type(grid_dimensions_object), | intent(in) | :: | rhs | Right hand side. |
Initialize grid dimensions.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(inout) | :: | self | Grid dimensions object. |
||
type(block_signature_object), | intent(in), | optional | :: | block_signature(1:) | Dimensions of each block. |
Load grid dimensions from file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(inout) | :: | self | Grid dimensions object. |
||
integer(kind=I4P), | intent(in) | :: | file_unit | File unit. |
Load the grid dimensions of all blocks from file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(grid_dimensions_object), | intent(in) | :: | self | Grid dimensions object. |
||
integer(kind=I4P), | intent(in) | :: | file_unit | File unit. |