Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
4b5b9b80
Commit
4b5b9b80
authored
May 24, 2012
by
mattijs
Browse files
BUG: loadOrCreateMesh: remove polyMesh directory
parent
78b5630d
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/parallelProcessing/redistributePar/loadOrCreateMesh.C
View file @
4b5b9b80
...
...
@@ -51,9 +51,6 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
// Check who has a mesh
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
)
{
// Create dummy mesh. Only used on procs that don't have mesh.
...
...
@@ -293,8 +290,10 @@ Pout<< "haveMesh:" << haveMesh << endl;
if
(
!
haveMesh
)
{
// We created a dummy mesh file above. Delete it.
//Pout<< "Removing dummy mesh " << io.objectPath() << endl;
rmDir
(
io
.
objectPath
());
const
fileName
meshFiles
=
io
.
time
().
path
()
/
io
.
instance
()
/
meshSubDir
;
//Pout<< "Removing dummy mesh " << meshFiles << endl;
mesh
.
removeFiles
();
rmDir
(
meshFiles
);
}
// Force recreation of globalMeshData.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment