Temporary change in refinement.C regarding edge consistency

Removed FatalError and instead issuing a warning (if debug) for runs with
Parallel Load Balancing. Still need to test thoroughly
This commit is contained in:
Vuko Vukcevic 2019-02-20 13:54:16 +01:00
parent cea60ab8ab
commit d1116b86a9

View file

@ -1014,7 +1014,9 @@ Foam::label Foam::refinement::edgeConsistentUnrefinement
// unrefinement
if (!cellsToUnrefine[cellI])
{
FatalErrorIn
if (debug)
{
WarningIn
(
"label refinement::"
"edgeConsistentUnrefinement"
@ -1029,12 +1031,15 @@ Foam::label Foam::refinement::edgeConsistentUnrefinement
<< "This is probably because the refinement and "
<< "unrefinement regions are very close." << nl
<< "Try increasing nUnrefinementBufferLayers. "
<< abort(FatalError);
<< endl;
}
}
else
{
cellsToUnrefine[cellI] = false;
++nRemCells;
}
}
else if (cellJLevel < cellILevel - 1)
{
// Level of cellJ is smaller than level of cellI - 1, cellJ
@ -1044,7 +1049,9 @@ Foam::label Foam::refinement::edgeConsistentUnrefinement
// unrefinement
if (!cellsToUnrefine[cellJ])
{
FatalErrorIn
if (debug)
{
WarningIn
(
"label refinement::"
"edgeConsistentUnrefinement"
@ -1059,15 +1066,18 @@ Foam::label Foam::refinement::edgeConsistentUnrefinement
<< "This is probably because the refinement and "
<< "unrefinement regions are very close." << nl
<< "Try increasing nUnrefinementBufferLayers. "
<< abort(FatalError);
<< endl;
}
}
else
{
cellsToUnrefine[cellJ] = false;
++nRemCells;
}
}
}
}
}
// Note: in order to avoid very difficult and time-consuming parallelisation
// of edge cell connectivity and edge cell values, we enforce a more