mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: topoSet: clear sets upon writing modified mesh. Fixes #129.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -62,6 +62,8 @@ Description
|
||||
#include "meshTools.H"
|
||||
#include "Pair.H"
|
||||
#include "globalIndex.H"
|
||||
#include "topoSet.H"
|
||||
#include "processorMeshes.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
@ -567,6 +569,8 @@ int main(int argc, char *argv[])
|
||||
// Write resulting mesh
|
||||
Info<< "Writing modified mesh to time " << runTime.timeName() << endl;
|
||||
mesh.write();
|
||||
topoSet::removeFiles(mesh);
|
||||
processorMeshes::removeFiles(mesh);
|
||||
}
|
||||
else if (edgeToPos.size())
|
||||
{
|
||||
@ -641,6 +645,8 @@ int main(int argc, char *argv[])
|
||||
// Write resulting mesh
|
||||
Info<< "Writing modified mesh to time " << runTime.timeName() << endl;
|
||||
mesh.write();
|
||||
topoSet::removeFiles(mesh);
|
||||
processorMeshes::removeFiles(mesh);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -684,6 +690,8 @@ int main(int argc, char *argv[])
|
||||
// Write resulting mesh
|
||||
Info<< "Writing modified mesh to time " << runTime.timeName() << endl;
|
||||
mesh.write();
|
||||
topoSet::removeFiles(mesh);
|
||||
processorMeshes::removeFiles(mesh);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user