Function to get the face neighbor of a certain element in the level descriptor. Even non-existing face neighbors can be handled by this routine.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_levelDesc_type), | intent(in) | :: | levelDesc | The level descriptor the element is located in. |
||
integer, | intent(in) | :: | elemPos | The element position in the level descriptor. |
||
integer, | intent(in) | :: | dir | The spatial direction of the face.
|
||
integer, | intent(in) | :: | leftOrRight | Find left or right face neighbor of the element. Use \ref tem_face_module::tem_left or \ref tem_face_module::tem_right. |
||
integer(kind=long_k), | intent(out) | :: | neighId | The treeid of the face neighbor element. |
||
integer, | intent(out) | :: | neighPos | Position of the neighbor in the total list, or 0 if element does not exist. |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=long_k), | private | :: | elemId | ||||
integer, | private | :: | elemCoord(4) | ||||
integer, | private | :: | dirOffset |