extrudeToRegionMesh: moved setting the mesh instance to after the deletion of empty patches
This commit is contained in:
@ -1858,15 +1858,15 @@ int main(int argc, char *argv[])
|
|||||||
meshMod.changeMesh(regionMesh, false);
|
meshMod.changeMesh(regionMesh, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set region mesh instance and write options
|
|
||||||
regionMesh.setInstance(meshInstance);
|
|
||||||
|
|
||||||
// Remove any unused patches
|
// Remove any unused patches
|
||||||
deleteEmptyPatches(regionMesh);
|
deleteEmptyPatches(regionMesh);
|
||||||
|
|
||||||
|
// Set region mesh instance and write options
|
||||||
|
regionMesh.setInstance(meshInstance);
|
||||||
|
|
||||||
Info<< "Writing mesh " << regionMesh.name() << " to "
|
Info<< "Writing mesh " << regionMesh.name() << " to "
|
||||||
<< regionMesh.facesInstance() << nl << endl;
|
<< regionMesh.facesInstance() << nl << endl;
|
||||||
|
|
||||||
regionMesh.write();
|
regionMesh.write();
|
||||||
|
|
||||||
|
|
||||||
@ -1990,13 +1990,14 @@ int main(int argc, char *argv[])
|
|||||||
// Update fields
|
// Update fields
|
||||||
mesh.topoChange(addBafflesMap);
|
mesh.topoChange(addBafflesMap);
|
||||||
|
|
||||||
mesh.setInstance(meshInstance);
|
|
||||||
|
|
||||||
// Remove any unused patches
|
// Remove any unused patches
|
||||||
deleteEmptyPatches(mesh);
|
deleteEmptyPatches(mesh);
|
||||||
|
|
||||||
|
mesh.setInstance(meshInstance);
|
||||||
|
|
||||||
Info<< "Writing mesh " << mesh.name() << " to "
|
Info<< "Writing mesh " << mesh.name() << " to "
|
||||||
<< mesh.facesInstance() << nl << endl;
|
<< mesh.facesInstance() << nl << endl;
|
||||||
|
|
||||||
mesh.write();
|
mesh.write();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user