This routine identify all the elements in inTree that has a certain property bit, save their positions in inTree into array: map2global, save the number of these elements into level wise array: countElems (e.g. for shape kind='property').
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=long_k), | intent(in) | :: | propBits | shape objects on which to work | ||
| type(treelmesh_type), | intent(in) | :: | inTree | Global mesh from which the elements are identified and then stored to | ||
| integer, | intent(out) | :: | countElems(globalMaxLevels) | How many elements there will be for each level in the track | ||
| type(dyn_intarray_type), | intent(inout) | :: | map2global | growing array. Elements positions in inTree%treeID | 
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=long_k), | private | :: | elemProp | ||||
| integer(kind=long_k), | private | :: | match | ||||
| integer, | private | :: | tLevel | ||||
| integer, | private | :: | dPos | ||||
| integer, | private | :: | iElem | ||||
| logical, | private | :: | wasAdded |