1D stencil component for global stencil construction
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | userDefined | = | .false. |
True only if user explicitly sets it to true |
|
| integer(kind=ik), | private, | allocatable, dimension(:) | :: | rawStencil | |||
| type(IntArray), | private, | allocatable, dimension(:) | :: | fixedStencil |
Optional fixed vStencil |
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 |
Get logical mask for included stencil points for given coordinate and dimension size. If periodic, the stencil dimension is treated as being periodic with periodicity equal to dimSize.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Stencil1D), | intent(in) | :: | this | |||
| integer(kind=ik), | intent(in) | :: | coord | |||
| integer(kind=ik), | intent(in) | :: | dimSize | |||
| logical, | intent(in), | optional | :: | periodic |
Returns size of stencil
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Stencil1D), | intent(in) | :: | this |
Stencil1D coordinate mapping routine
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Stencil1D), | intent(in) | :: | this | |||
| integer(kind=ik), | intent(in) | :: | inputCoord |
Input coordinate value |
||
| integer(kind=ik), | intent(in) | :: | dimSize |
Size of dimension in which mapping is done |
||
| logical, | intent(in), | optional | :: | periodic |
True if dimension is periodic |
Check if stencil is fixed
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Stencil1D), | intent(in) | :: | this |
Stencil1D object initialization routine
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Stencil1D), | intent(inout) | :: | this | |||
| integer(kind=ik), | intent(in), | optional, | dimension(:) | :: | rawStencil |
Optional raw stencil, defaults to [0] - a diagonal stencil. |
| type(IntArray), | intent(in), | optional, | dimension(:) | :: | fixedStencil |
Optional fixed stencil |