Defines a 1D axis
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=wp), | public, | pointer, contiguous | :: | dxm(:) | => | null() |
Cell spacings |
| integer, | public | :: | hi |
Higher bound |
|||
| integer, | public | :: | lo |
Lower bound |
|||
| integer, | public | :: | ngc |
Number of ghostcells |
|||
| real(kind=wp), | public, | pointer, contiguous | :: | x(:) | => | null() |
Nodal points |
| real(kind=wp), | public, | pointer, contiguous | :: | xm(:) | => | null() |
Mid points |
Finalizes object and frees data.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(axis_obj), | intent(inout) | :: | this |
A axis object |
Initialize axis.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(axis_obj), | intent(inout) | :: | this |
A axis object |
||
| integer, | intent(in) | :: | lo |
Array lower bound |
||
| integer, | intent(in) | :: | hi |
Array higher bound |
||
| integer, | intent(in) | :: | ngc |
Number of ghost cells |
type :: axis_obj !> Defines a 1D axis integer :: lo !! Lower bound integer :: hi !! Higher bound integer :: ngc !! Number of ghostcells real(wp), pointer, contiguous :: x(:) =>null() !! Nodal points real(wp), pointer, contiguous :: xm(:) =>null() !! Mid points real(wp), pointer, contiguous :: dxm(:)=>null() !! Cell spacings contains procedure :: Initialize => axis_obj_Init procedure :: Finalize => axis_obj_Final end type axis_obj