mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: renumberMesh.C: update flip status for renumbered faces
This commit is contained in:
@ -1036,6 +1036,22 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
UIndirectList<label>(faceProcAddressing, map().faceMap())
|
UIndirectList<label>(faceProcAddressing, map().faceMap())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Detect any flips.
|
||||||
|
const labelHashSet& fff = map().flipFaceFlux();
|
||||||
|
forAllConstIter(labelHashSet, fff, iter)
|
||||||
|
{
|
||||||
|
label faceI = iter.key();
|
||||||
|
label masterFaceI = faceProcAddressing[faceI];
|
||||||
|
|
||||||
|
faceProcAddressing[faceI] = -masterFaceI;
|
||||||
|
|
||||||
|
if (masterFaceI == 0)
|
||||||
|
{
|
||||||
|
FatalErrorIn(args.executable()) << "problem faceI:" << faceI
|
||||||
|
<< " masterFaceI:" << masterFaceI << exit(FatalError);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (pointProcAddressing.headerOk())
|
if (pointProcAddressing.headerOk())
|
||||||
{
|
{
|
||||||
@ -1083,9 +1099,13 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
Info<< "After renumbering :" << nl
|
Info<< "After renumbering :" << nl
|
||||||
<< " band : " << band << nl
|
<< " band : " << band << nl
|
||||||
<< " profile : " << profile << nl
|
<< " profile : " << profile << nl;
|
||||||
<< " rms frontwidth : " << rmsFrontwidth << nl
|
if (doFrontWidth)
|
||||||
<< endl;
|
{
|
||||||
|
|
||||||
|
Info<< " rms frontwidth : " << rmsFrontwidth << nl;
|
||||||
|
}
|
||||||
|
Info<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (orderPoints)
|
if (orderPoints)
|
||||||
|
|||||||
Reference in New Issue
Block a user