mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: checkMesh: report on processor patch if non-parallel. Fixes #698
This commit is contained in:
@ -855,7 +855,7 @@ Foam::label Foam::checkTopology
|
||||
|
||||
for (const polyPatch& pp : patches)
|
||||
{
|
||||
if (!isA<processorPolyPatch>(pp))
|
||||
if (!UPstream::parRun() || !isA<processorPolyPatch>(pp))
|
||||
{
|
||||
checkPatch
|
||||
(
|
||||
@ -873,12 +873,19 @@ Foam::label Foam::checkTopology
|
||||
|
||||
// All non-processor boundary patches
|
||||
{
|
||||
const label nGlobalPatches
|
||||
(
|
||||
UPstream::parRun()
|
||||
? patches.nNonProcessor()
|
||||
: patches.size()
|
||||
);
|
||||
|
||||
labelList faceLabels
|
||||
(
|
||||
identity
|
||||
(
|
||||
(
|
||||
patches.range(patches.nNonProcessor()-1).end_value()
|
||||
patches.range(nGlobalPatches-1).end_value()
|
||||
- patches.start()
|
||||
),
|
||||
patches.start()
|
||||
|
||||
Reference in New Issue
Block a user