{Compute time step for each point in the narrow band} |
for all ββdo |
ββ{1. Compute the updated value} |
ββ |
ββ{2. Check if there is a sign change} |
ββif βββthen |
βββ{3.1 No sign change} |
βββ{apply the update} |
ββelse if then {Check if is in the barrier} |
βββ{3.2 Is in the barrier, do not allow sign change} |
βββ{set to a small positive value} |
ββelse {3.3 Is clear; check for topology change} |
βββif IsSimple ββthen |
ββββ{3.3.1 No change in topology} |
ββββapply the update} |
βββelse {3.3.2 Do not allow topology change} |
ββββ{set to a small value of the same sign} |
βββend if |
ββend if |
end for |