processorMeshes::read destruct before de-register

Patch contributed by Mattijs Janssens
Resolves bug-report http://bugs.openfoam.org/view.php?id=2368
This commit is contained in:
Henry Weller 2016-12-01 22:06:35 +00:00
parent 0b3c8e6fb4
commit daa4d54a49

View file

@ -35,11 +35,11 @@ void Foam::processorMeshes::read()
// and fields
forAll(databases_, proci)
{
meshes_.set(proci, NULL);
pointProcAddressing_.set(proci, NULL);
faceProcAddressing_.set(proci, NULL);
cellProcAddressing_.set(proci, NULL);
boundaryProcAddressing_.set(proci, NULL);
boundaryProcAddressing_.set(proci, nullptr);
cellProcAddressing_.set(proci, nullptr);
faceProcAddressing_.set(proci, nullptr);
pointProcAddressing_.set(proci, nullptr);
meshes_.set(proci, nullptr);
}
forAll(databases_, proci)