Documentation for module tmc_tree_references

global tree references - BECAUSE acceptance check use global tree randon numbers and (in case of parallel tempering) several global tree node refer to a single sub tree node (which is the changed one in the global tree) - the references are used to update the global tree acceptance probability for every global tree element seperately Hence a list of all global tree nodes, using the related subtree node, is created.

source: tmc_tree_references.F
Loading...

public Subroutines/Functions:

adds global tree reference to the modified sub tree element(s)
removes the global tree references of this actual global tree element from all related sub tree elements
removes the pointers to a certain subtree element from every related global tree element
removes the global tree references of this actual global tree element from all related sub tree elements

SUBROUTINEadd_to_references(gt_elem)

adds global tree reference to the modified sub tree element(s)

Arguments:
POINTER
:: gt_elem actual global tree element

SUBROUTINEremove_gt_references(gt_ptr, tmc_env)

removes the global tree references of this actual global tree element from all related sub tree elements

Arguments:
POINTER
:: gt_ptr actual global tree element
POINTER
:: tmc_env ...

SUBROUTINEremove_subtree_element_of_all_references(ptr)

removes the pointers to a certain subtree element from every related global tree element

Arguments:
TYPE(tree_type),
POINTER
:: ptr sub tree element

SUBROUTINEsearch_and_remove_reference_in_list(gt_ptr, elem, tmc_env)

removes the global tree references of this actual global tree element from all related sub tree elements

Arguments:
POINTER
:: gt_ptr actual global tree element
TYPE(tree_type),
POINTER
:: elem ...
POINTER
:: tmc_env TMC environment