diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C index 8f540d82ba..330b912fb9 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C @@ -624,7 +624,18 @@ void Foam::cyclicPolyPatch::transformPosition(pointField& l) const } else if (separated()) { - l -= separation(); + const vectorField& s = separation(); + if (s.size() == 1) + { + forAll(l, i) + { + l[i] -= s[0]; + } + } + else + { + l -= s; + } } }