Appearance
adam_slices_object
ADAM, slices (of domain) class definition, CPU backend.
Source: src/lib/common/adam_slices_object.F90
Dependencies
Contents
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
INI_SECTION_NAME | character(len=6) | parameter | INI (config) file section name containing slices configs. |
Derived Types
slice_object
Single slice class definition, CPU backend.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
itype | character(len=99) | Slice interpolation type. | |
n_save | integer(kind=I4P) | Iteration interval between subsequent data-slice saves. | |
nijk | integer(kind=I4P) | Slice number of points. | |
emin | real(kind=R8P) | Slice minimum extents. | |
emax | real(kind=R8P) | Slice maximum extents. | |
points | real(kind=R8P) | allocatable | Slice points coordinates [3,ni,nj,nk]. |
slices_object
Slices (of domain) class definition, CPU backend.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
mpih | type(mpih_object) | MPI handler. | |
slices_number | integer(kind=I4P) | Number of slices to be saved. | |
slice | type(slice_object) | allocatable | Slices data. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
initialize | pass(self) | Initialize RK. |
is_to_save | pass(self) | Return true if slices are to save. |
load_from_file | pass(self) | Load config from file. |
save_mat | pass(self) | Save simulation data slices in mat format. |
Subroutines
initialize
Initialize the equation.
fortran
subroutine initialize(self, file_parameters)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(slices_object) | inout | Slices. | |
file_parameters | type(file_ini) | in | Simulation parameters ini file handler. |
Call graph
load_from_file
Load config from file.
fortran
subroutine load_from_file(self, file_parameters, go_on_fail)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(slices_object) | inout | Slices. | |
file_parameters | type(file_ini) | in | Simulation parameters ini file handler. | |
go_on_fail | logical | in | optional | Go on if load fails. |
Call graph
save_mat
Save simulation data slices in mat format.
fortran
subroutine save_mat(self, basename, it, it_max, time, time_max, adam, q, q_name)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(slices_object) | inout | Slices. | |
basename | character(len=*) | in | Output file basename. | |
it | integer(kind=I4P) | in | Time step iteration. | |
it_max | integer(kind=I4P) | in | Time step iteration max. | |
time | real(kind=R8P) | in | Time iteration. | |
time_max | real(kind=R8P) | in | Time iteration max. | |
adam | type(adam_object) | inout | Adam object. | |
q | real(kind=R8P) | in | Field variables. | |
q_name | character(len=*) | in | optional | Variables names. |
Call graph
Functions
is_to_save
Return true if slices are to save.
Attributes: pure
Returns: logical
fortran
function is_to_save(self, it, it_max, time, time_max)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(slices_object) | in | Slices. | |
it | integer(kind=I4P) | in | Time step iteration. | |
it_max | integer(kind=I4P) | in | Time step iteration max. | |
time | real(kind=R8P) | in | Time iteration. | |
time_max | real(kind=R8P) | in | Time iteration max. |
Call graph