blastAMR gets stuck in an infinite loop in Foam::refinement::consistentRefinement() because nChanged never becomes zero. The edgeConsistentRefinement() always returns 1 for the same cell in an infinite loop.
In the case of the tested mesh it was due to cellJLevel > (cellILevel +1)
Note: this was tested with labelsize=64. However tested that the conversion to int for the const cellJLevel worked correctly.
Not sure what edgeConsistentRefinement() does and how to fix this issue.
Also an interesting fact is that the problem can be avoided for some time if shortly before the time step is written. Then it runs a bit longer before it gets stuck again.
blastAMR gets stuck in an infinite loop in
Foam::refinement::consistentRefinement()because nChanged never becomes zero. TheedgeConsistentRefinement()always returns 1 for the same cell in an infinite loop.In the case of the tested mesh it was due to
cellJLevel > (cellILevel +1)Note: this was tested with labelsize=64. However tested that the conversion to int for the
const cellJLevelworked correctly.Not sure what
edgeConsistentRefinement()does and how to fix this issue.Also an interesting fact is that the problem can be avoided for some time if shortly before the time step is written. Then it runs a bit longer before it gets stuck again.