mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: edge sync fails with cyclic baffles (fixes #1397)
- synchronization, reduction only makes sense on processor-coupled patches. Since cyclic baffles are within a single processor domain, they are not reduced. So need to skip the sanity test for these.
This commit is contained in:
@ -1185,6 +1185,12 @@ void Foam::globalMeshData::calcGlobalEdgeOrientation() const
|
|||||||
|
|
||||||
forAll(coupledPatch().edges(), edgeI)
|
forAll(coupledPatch().edges(), edgeI)
|
||||||
{
|
{
|
||||||
|
if (masterEdgeVerts[edgeI] == labelPair(labelMax, labelMax))
|
||||||
|
{
|
||||||
|
// Skip single edge on cyclic baffle
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const edge& e = coupledPatch().edges()[edgeI];
|
const edge& e = coupledPatch().edges()[edgeI];
|
||||||
const labelPair masterE
|
const labelPair masterE
|
||||||
(
|
(
|
||||||
@ -1192,7 +1198,7 @@ void Foam::globalMeshData::calcGlobalEdgeOrientation() const
|
|||||||
masterPoint[e[1]]
|
masterPoint[e[1]]
|
||||||
);
|
);
|
||||||
|
|
||||||
label stat = labelPair::compare
|
const int stat = labelPair::compare
|
||||||
(
|
(
|
||||||
masterE,
|
masterE,
|
||||||
masterEdgeVerts[edgeI]
|
masterEdgeVerts[edgeI]
|
||||||
|
|||||||
Reference in New Issue
Block a user