Contains module procedures associated with the stencil1d class
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 |
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 |
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 |