Routine to convert protoTree to Treelm data format. append all leaves to the temData%treeID
Add this element to the list of elements in the final tree, by adding: * treeID * propertyBits If there is a boundary, also add the correct boundary data into the 26 direct neighbors (bc_ID), append to all 26 even if there is no boundary condition in the given direction, no boundaries are indicated by 0, boundary conditions are decided based on the trumping rule, that is the minimal bc_ID of all boundary objects in the corresponding neighbor are chosen. Treat periodic boundaries here if possible by putting the opposite treeID into the bc_ID.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | node_pos |
Position of leaf in the preliminary tree |
||
| integer(kind=long_k), | intent(in) | :: | treeID |
treeID of current node |
||
| type(levelValues_type), | intent(in) | :: | leVal |
level value of current node |
||
| type(sdr_protoTree_type), | intent(in) | :: | proto |
preliminary tree |
||
| type(sdr_geometry_type), | intent(in) | :: | geometry |
contains all geometrical objects |
||
| logical, | intent(in) | :: | check_bnd |
does this node has boundary neighbor |
||
| type(sdr_temData_type), | intent(inout) | :: | temData | |||
| integer, | intent(in) | :: | nodeprops |
propertyBits of current node |
||
| character(len=1), | intent(in) | :: | nodecolors(:) |
Color information of the cuurent node |
||
| type(treelmesh_type), | intent(inout) | :: | meshUniverse |
contains bounding cube information |