Skip to content
Snippets Groups Projects

BUG: possible infinteloop in plicRDF and isoAdvector - Fixes #2016

Merged Henning Scheufler requested to merge issue-2016-geoVoF-infiniteloop into develop
Compare and
3 files
+ 38
29
Preferences
Compare changes
Files
3
@@ -249,8 +249,13 @@ void Foam::isoAdvection::boundFlux
// First try to pass surplus fluid on to neighbour cells that are
// not filled and to which dVf < phi*dt
while (mag(alphaOvershoot) > aTol && nFacesToPassFluidThrough > 0)
for (label iter=0; iter<10; iter++)
{
if(mag(alphaOvershoot) < aTol || nFacesToPassFluidThrough == 0)
{
break;
}
DebugInfo
<< "\n\nBounding cell " << celli
<< " with alpha overshooting " << alphaOvershoot