snappyHexMesh::meshRefinement: clear the mesh before mapping to avoid issues with mapping the mesh flux field

This commit is contained in:
Henry Weller
2019-06-08 14:37:43 +01:00
parent 926b6a25db
commit 6eb05f8b3d
2 changed files with 6 additions and 1 deletions

View File

@ -1625,6 +1625,9 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::meshRefinement::balance
}
Pout<< endl;
}
mesh_.clearOut();
// Do actual sending/receiving of mesh
map = distributor.distribute(distribution);