BUG: sampledSurfaces: cleared out volPointInterpolation & pointMesh.

This commit is contained in:
mattijs 2011-03-24 21:18:56 +00:00
parent cd45f3c9c3
commit 7c34b443e0

View File

@ -277,6 +277,8 @@ void Foam::sampledSurfaces::read(const dictionary& dict)
void Foam::sampledSurfaces::updateMesh(const mapPolyMesh&)
{
expire();
// pointMesh and interpolation will have been reset in mesh.update
}
@ -327,10 +329,6 @@ bool Foam::sampledSurfaces::expire()
}
}
// reset interpolation
pointMesh::Delete(mesh_);
volPointInterpolation::Delete(mesh_);
// true if any surfaces just expired
return justExpired;
}