Stencil object for construction of matrix patterns by mapping row coordinates to sets of column coordinates
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | userDefined | = | .false. |
True only if user explicitly sets it to true |
|
type(Stencil1D), | private | :: | xStencil |
Stencil in x-direction |
|||
type(Stencil1D), | private, | allocatable | :: | vStencil |
Stencil in v-direction (used as absolute coordinates if mapping from just x-coordinate) |
||
type(Stencil1D), | private, | allocatable | :: | hStencil |
Stencil in total harmonics (used as absolute coordinates if mapping from just x-coordinate) |
||
logical, | private | :: | xPeriodic |
True if the x grid is periodic |
Getter for userDefined
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(in) | :: | this |
Set userDefined to .true.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Set userDefined to .false.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Stencil coordinate mapping routine
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stencil), | intent(in) | :: | this | |||
type(Grid), | intent(in) | :: | gridObj |
Grid used to construct the mapping |
||
integer(kind=ik), | intent(in), | dimension(:) | :: | inputArray |
Input array of coordinates (size 1 - [x], or size 3 [x,h,v]) |
Stencil object initialization routine
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Stencil), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in), | optional, | dimension(:) | :: | xStencil |
Stencil in x-direction |
integer(kind=ik), | intent(in), | optional, | dimension(:) | :: | vStencil |
Stencil in v-direction |
integer(kind=ik), | intent(in), | optional, | dimension(:) | :: | hStencil |
l harmonic stencil |
logical, | intent(in), | optional | :: | mapToDist |
Set to true if stencil maps to harmonic/velocity space |
|
logical, | intent(in), | optional | :: | xPeriodic |
Set to true if x-grid is periodic |
|
type(IntArray), | intent(in), | optional, | dimension(:) | :: | vStencilFixed |
Optional fixed vStencil |