1D PBE solution class.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | name |
object name |
||
character(len=:), | public, | allocatable | :: | msg |
error message |
||
integer, | public | :: | ierr | = | 0 |
error code |
|
logical, | public | :: | inited | = | .false. |
initialization flag |
|
real(kind=rk), | public, | allocatable | :: | t(:) |
vector(npoints) of time points |
||
real(kind=rk), | public, | allocatable | :: | u(:,:) |
array(ncells,npoints) of |
||
real(kind=rk), | public, | allocatable | :: | y(:,:) |
array(nenvs,npoints) of |
||
integer, | public | :: | nfev | = | 0 |
number of evaluations of |
|
logical, | public | :: | success | = | .false. |
flag indicating if integration was successfull |
Initialize pbesol
object.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | npoints |
number of time points, i.e. |
||
integer, | intent(in) | :: | ncells |
number of grid cells, i.e. |
||
integer, | intent(in) | :: | nenvs |
number of environment variables, i.e. |
Setter method for name.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base), | intent(inout) | :: | self |
object |
||
character(len=*), | intent(in), | optional | :: | name |
name |
|
character(len=*), | intent(in), | optional | :: | default |
default name |
Error method.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base), | intent(inout) | :: | self |
object |
||
character(len=*), | intent(in) | :: | msg |
message |
Check initialization method.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(base), | intent(inout) | :: | self |
object |
Write content of pbesol
to file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(pbesol), | intent(inout) | :: | self |
object |
||
character(len=*), | intent(in) | :: | basename |
base name |
type, extends(base) :: pbesol !! 1D PBE solution class. real(rk), allocatable :: t(:) !! vector(npoints) of time points real(rk), allocatable :: u(:, :) !! array(ncells,npoints) of \( \bar{u}_i(t_k) \) real(rk), allocatable :: y(:, :) !! array(nenvs,npoints) of \( {y}_j(t_k) \) integer :: nfev = 0 !! number of evaluations of \( d\bar{\textbf{u}}/dt \) logical :: success = .false. !! flag indicating if integration was successfull contains procedure, pass(self), public :: write => pbesol_write end type pbesol