polyMesh: Use appropriate boundary meshes when swapping patches

This commit is contained in:
Will Bainbridge
2023-08-22 11:37:42 +01:00
parent af9afec754
commit bf8b8596f8

View File

@ -859,12 +859,12 @@ void Foam::polyMesh::swap(polyMesh& otherMesh)
const polyPatchList patches
(
boundary_,
boundary_
otherMesh.boundary_
);
const polyPatchList otherPatches
(
otherMesh.boundary_,
otherMesh.boundary_
boundary_
);
updatePatches(otherPatches, boundary_);