MeshZones: Corrected zone swap function

This commit is contained in:
Henry Weller
2024-02-19 13:52:03 +00:00
parent 5824e63ad8
commit a06d150fbe

View File

@ -569,7 +569,10 @@ void Foam::MeshZones<ZoneType, MeshType>::swap(MeshZones& otherZones)
forAll(toOtherZone, i)
{
otherZones.append(zones[toOtherZone[i]].clone(otherZones));
otherZones.PtrList<ZoneType>::append
(
zones[toOtherZone[i]].clone(otherZones)
);
zones.set(toOtherZone[i], nullptr);
}