for all     do
if     then
end if
if     then
if   then
     
end if
else if     then
if     then
     
end if
else if     then
end if
end for
Algorithm 2: Algorithm for the division of the computation domain.