public subroutine proto2Treelm(node_pos, treeID, leVal, proto, geometry, check_bnd, temData, nodeprops, nodecolors, meshUniverse)
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.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.