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:
parent
cea60ab8ab
commit
d1116b86a9
1 changed files with 48 additions and 38 deletions
|
@ -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
|
||||
|
|
Reference in a new issue