A subroutine which checks the proximity condition and generates a new treeID list of potential target elements which can then be checked against various thresholds as defined in the lua configuration file.
Proximity condition means that an element can be solidified only if it has at least one wall as a neighboring element. In biological clotting models it ensures that no isolated clot is produced in the fluid domain. Furthermore the noSolidification property is checked for every element. It is used to define spaces where solidification is not allowed.
Acc the proximity condition, as soon as its found that any of the neighbors of current element is solid, that element is stored in the new list of potential elements. Loop is terminated for this element and check is performed for other element.
number of potential elements found
level pointer of potential elements
position of potential elements in the treeID list