Just for testing, creates far and near list using a double loop algorithm, it is basically just the application of the following definition: 1. Two nodes are near IF they are both leaves and if the distance is below [min_dist_thr] 2. Two nodes are far IF none of their discendent are near 3. Descendent of two far nodes are not present in any list
Now compress in yale sparse format and delete the uncompressed lists
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fmm_tree_type), | intent(inout) | :: | t |
Tree data structure to populate |
||
real(kind=rp), | intent(in), | optional | :: | min_dist_thr |
Minimum threshold for two nodes to be near, every nodes within this threshold are guaranteed to be near |