Commit d2b42842 authored by Mark Olesen's avatar Mark Olesen
Browse files

BUG: all addressing not being cleared when transfer/resetting surfMesh

parent c56edc26
......@@ -1118,6 +1118,8 @@ void Foam::MeshedSurface<Face>::transfer
xferMove(surf.storedFaces()),
xferMove(surf.storedZones())
);
surf.clear();
}
......
......@@ -260,7 +260,7 @@ void Foam::surfMesh::resetPrimitives
)
{
// Clear addressing.
MeshReference::clearGeom();
clearOut();
Allocator::reset(points, faces, zones);
this->updateRefs();
......@@ -278,7 +278,7 @@ void Foam::surfMesh::transfer
)
{
// Clear addressing.
MeshReference::clearGeom();
clearOut();
this->storedIOPoints().transfer(surf.storedPoints());
this->storedIOFaces().transfer(surf.storedFaces());
......@@ -300,7 +300,7 @@ Foam::Xfer<Foam::MeshedSurface<Foam::face>> Foam::surfMesh::xfer()
this->updateRefs();
// Clear addressing.
MeshReference::clearGeom();
clearOut();
return xf;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment