BUG: renumberMesh.C: update flip status for renumbered faces
This commit is contained in:
parent
08f30e2249
commit
01444d4b61
@ -1036,6 +1036,22 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
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())
|
||||
{
|
||||
@ -1083,9 +1099,13 @@ int main(int argc, char *argv[])
|
||||
);
|
||||
Info<< "After renumbering :" << nl
|
||||
<< " band : " << band << nl
|
||||
<< " profile : " << profile << nl
|
||||
<< " rms frontwidth : " << rmsFrontwidth << nl
|
||||
<< endl;
|
||||
<< " profile : " << profile << nl;
|
||||
if (doFrontWidth)
|
||||
{
|
||||
|
||||
Info<< " rms frontwidth : " << rmsFrontwidth << nl;
|
||||
}
|
||||
Info<< endl;
|
||||
}
|
||||
|
||||
if (orderPoints)
|
||||
|
Loading…
Reference in New Issue
Block a user