mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: loadOrCreateMesh: remove polyMesh directory
This commit is contained in:
@ -51,9 +51,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
|
|||||||
// Check who has a mesh
|
// Check who has a mesh
|
||||||
const bool haveMesh = isDir(io.time().path()/io.instance()/meshSubDir);
|
const bool haveMesh = isDir(io.time().path()/io.instance()/meshSubDir);
|
||||||
|
|
||||||
Pout<< "meshpath:" << io.time().path()/io.instance()/meshSubDir << endl;
|
|
||||||
Pout<< "haveMesh:" << haveMesh << endl;
|
|
||||||
|
|
||||||
if (!haveMesh)
|
if (!haveMesh)
|
||||||
{
|
{
|
||||||
// Create dummy mesh. Only used on procs that don't have mesh.
|
// Create dummy mesh. Only used on procs that don't have mesh.
|
||||||
@ -293,8 +290,10 @@ Pout<< "haveMesh:" << haveMesh << endl;
|
|||||||
if (!haveMesh)
|
if (!haveMesh)
|
||||||
{
|
{
|
||||||
// We created a dummy mesh file above. Delete it.
|
// We created a dummy mesh file above. Delete it.
|
||||||
//Pout<< "Removing dummy mesh " << io.objectPath() << endl;
|
const fileName meshFiles = io.time().path()/io.instance()/meshSubDir;
|
||||||
rmDir(io.objectPath());
|
//Pout<< "Removing dummy mesh " << meshFiles << endl;
|
||||||
|
mesh.removeFiles();
|
||||||
|
rmDir(meshFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Force recreation of globalMeshData.
|
// Force recreation of globalMeshData.
|
||||||
|
|||||||
Reference in New Issue
Block a user