Skip to content

Use for loops instead of while loops in iterator macros

Christoph Schwarzmeier requested to merge change_iteratorMacros into master

Some of waLBerla's iterator macros are currently implemented as while loops. The iterator is incremented after user code has been executed. Thus, user code containing continue statements will result in infinite loops, as the iterator is never incremented.

This merge request implements waLBerla's iterator macros using for loops. With this change, user code containing continue statements will work as expected.

Merge request reports