Block decomposition: for “solve two-boundaries” blocks, move the iteration loop outside the dynamic file