Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
96a3de7a
Commit
96a3de7a
authored
Jun 01, 2010
by
mattijs
Browse files
ENH: work with processors with 0 cells. polyMesh::directions, checkMesh.
parent
9c694034
Changes
3
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/checkMesh/checkTopology.C
View file @
96a3de7a
...
...
@@ -12,6 +12,7 @@ bool Foam::checkSync(const wordList& names)
List
<
wordList
>
allNames
(
Pstream
::
nProcs
());
allNames
[
Pstream
::
myProcNo
()]
=
names
;
Pstream
::
gatherList
(
allNames
);
Pstream
::
scatterList
(
allNames
);
bool
hasError
=
false
;
...
...
@@ -72,8 +73,8 @@ Foam::label Foam::checkTopology
Info
<<
" ***FaceZone "
<<
mesh
.
faceZones
()[
zoneI
].
name
()
<<
" is not correctly synchronised"
<<
" across coupled boundaries."
<<
" (coupled faces both"
<<
" present in set
but with opposit
e flipmap)"
<<
endl
;
<<
" (coupled faces
are either not
both
"
<<
" present in set
or have sam
e flipmap)"
<<
endl
;
noFailedChecks
++
;
}
}
...
...
src/OpenFOAM/meshes/polyMesh/polyMesh.C
View file @
96a3de7a
...
...
@@ -85,6 +85,9 @@ void Foam::polyMesh::calcDirections() const
}
}
reduce
(
nEmptyPatches
,
maxOp
<
label
>
());
reduce
(
nWedgePatches
,
maxOp
<
label
>
());
if
(
nEmptyPatches
)
{
reduce
(
emptyDirVec
,
sumOp
<
vector
>
());
...
...
src/OpenFOAM/meshes/polyMesh/zones/faceZone/faceZone.C
View file @
96a3de7a
...
...
@@ -498,10 +498,9 @@ bool Foam::faceZone::checkParallelSync(const bool report) const
break
;
}
}
// Flip state should be opposite.
if
(
myZoneFlip
[
bFaceI
]
==
neiZoneFlip
[
bFaceI
])
else
if
(
myZoneFlip
[
bFaceI
]
==
neiZoneFlip
[
bFaceI
])
{
// Flip state should be opposite.
hasError
=
true
;
if
(
report
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment