subroutine to find neighbours of element with individual (for each element) stencil definitions. Unique stencil label for boundary stencils are created with boundary label and stencil%cxDir therefore each stencil is limited to one boundary type
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(glob_boundary_type), | intent(in) | :: | globBC | boundaries for the elements with bnd property set | ||
| type(boundary_type), | intent(inout) | :: | bc | field boundary with boundary neighbor info | ||
| real(kind=rk), | intent(in) | :: | prevailDir(:,:) | scheme layout | ||
| character(len=*), | intent(in) | :: | prefix | field label | ||
| integer, | intent(in) | :: | minLevel | min and max level | ||
| integer, | intent(in) | :: | maxLevel | min and max level | ||
| type(dyn_labelarray_type), | intent(inout) | :: | stencil_labels | dynamic array of stencil labels | ||
| type(grw_stencilheaderarray_type), | intent(inout) | :: | grwStencil | growing array of stencils | 
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private | :: | iElem | ||||
| integer, | private | :: | elemPos | ||||
| integer, | private | :: | iLevel | ||||
| integer, | private | :: | iNeigh | ||||
| integer, | private | :: | stencilPos | ||||
| integer, | private | :: | normal(3) | ||||
| type(tem_stencilHeader_type), | private | :: | stencil | ||||
| logical, | private | :: | wasAdded | ||||
| character(len=labelLen), | private | :: | stnLabel |