Update zones before boundaries on syncUpdate

This commit is contained in:
Hrvoje Jasak 2014-05-20 12:02:19 +01:00
parent 4998fde3e6
commit a875b3f982

View file

@ -36,7 +36,8 @@ Description
void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm)
{
// Update zones
// Update zones. Since boundary depends on zones, they need to be
// updated first. HJ, 20/May/2014
pointZones_.updateMesh();
faceZones_.updateMesh();
cellZones_.updateMesh();
@ -83,14 +84,15 @@ void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm)
// Sync mesh update with changes on other processors
void Foam::polyMesh::syncUpdateMesh()
{
// Update boundaryMesh (note that patches themselves already ok)
boundary_.updateMesh();
// Update zones
// Update zones. Since boundary depends on zones, they need to be
// updated first. HJ, 20/May/2014
pointZones_.updateMesh();
faceZones_.updateMesh();
cellZones_.updateMesh();
// Update boundaryMesh (note that patches themselves already ok)
boundary_.updateMesh();
// Clear out parallel data. HJ, 27/Nov/2009
deleteDemandDrivenData(globalMeshDataPtr_);