Version 3 (modified by 12 years ago) ( diff ) | ,
---|
RECURSIVE FUNCTION TreeTraversal(Node aNode, FUNCTION f, FUNCTION cond, FuncParam fparam, LOGICAL !EvalNextBefore_f)
Click here to view v174 source.
Recursively traverses a tree starting from aNode
, applying the function f
to each node if the logical function cond()
is satisfied. This is a depth-first traversal, so all the younger, so aNode
's descendents will all be processed before TreeTraversal
moves on to its younger siblings.
INCLUDES:
None.
USES:
- nodeinfodef.f90 supplies the NodeInfo data structure and some functions that operate on it.
Note:
See TracWiki
for help on using the wiki.