Contains module procedures associated with the partition class
Getter for minX
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this |
Return minX at index ind
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | ind |
Getter for maxX
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this |
Return maxX at index ind
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | ind |
Getter for minH
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this |
Return minH at index ind
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | ind |
Getter for maxH
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this |
Return maxH at index ind
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | ind |
Getter for locX
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this |
Getter for locH
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this |
Return partition index which contains xInd and hInd
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | xInd | |||
integer(kind=ik), | intent(in) | :: | hInd |
Filters coordinate list of shape 1,: or 3,: based on partition data, leaving only those present at partition index ind. If normalize is true will shift all values in each dimension to so that the smallest value is 1
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | ind | |||
integer(kind=ik), | intent(in), | dimension(:,:) | :: | coords | ||
logical, | intent(in), | optional | :: | normalize |
Partition initialization routine - assuming even distributions in x and h directions
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in) | :: | numProcsX |
Number of processes in x direction |
||
integer(kind=ik), | intent(in) | :: | numProcsH |
Number of processes in h direction |
||
integer(kind=ik), | intent(in) | :: | numX |
Total number of x grid points |
||
integer(kind=ik), | intent(in) | :: | numH |
Total number of h grid points |
Partition initialization routine - general
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Partition), | intent(inout) | :: | this | |||
integer(kind=ik), | intent(in), | dimension(:) | :: | minX |
First x-index in each partition |
|
integer(kind=ik), | intent(in), | dimension(:) | :: | maxX |
Last x-index in each partition |
|
integer(kind=ik), | intent(in), | dimension(:) | :: | minH |
First h-index in each partition |
|
integer(kind=ik), | intent(in), | dimension(:) | :: | maxH |
Last x-index in each partition |