Determine if the target element (local) targetID is fluid or ghost in the local process If fluid: do nothing, as it will be added later on anyway (or already is) ghostFromFiner (coarser than requested): add all virtual children, i.e. all levels between requested treeID and found one. ghostFromCoarser (finer than requested): not existing( localPos=0): add to halo
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(in) | :: | targetID | neighboring treeID |
||
type(tem_levelDesc_type), | intent(inout) | :: | levelDesc(minLevel:) | the level descriptor to be filled |
||
type(treelmesh_type), | intent(in) | :: | tree | tree information |
||
integer, | intent(in) | :: | minLevel | minimum level fluid element in the tree |
||
integer, | intent(out) | :: | elemPos | targetID element position in the levelDesc % elem list |
||
integer, | intent(in) | :: | nesting | nesting level |
||
logical, | intent(out) | :: | updated | was the element updated in this call? |
||
type(tem_stencilHeader_type), | intent(in) | :: | stencil | current stencil definition |
||
logical, | intent(in), | optional | :: | skip_add_additionalGhost | logical, optional, if true no ghosts are added |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | localPos | ||||
integer, | private | :: | targetLevel | ||||
integer, | private | :: | dPos | ||||
integer, | private | :: | fluidLevel | ||||
integer(kind=long_k), | private | :: | fluidID | ||||
type(tem_path_type), | private | :: | targetPath | ||||
logical, | private | :: | l_skip_add_additionalGhost |