mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: renumberMesh: remove old files
This commit is contained in:
@ -659,6 +659,13 @@ void writeMesh
|
|||||||
meshRefiner.printMeshInfo(debugLevel, msg);
|
meshRefiner.printMeshInfo(debugLevel, msg);
|
||||||
Info<< "Writing mesh to time " << meshRefiner.timeName() << endl;
|
Info<< "Writing mesh to time " << meshRefiner.timeName() << endl;
|
||||||
|
|
||||||
|
processorMeshes::removeFiles(mesh);
|
||||||
|
if (!debugLevel)
|
||||||
|
{
|
||||||
|
topoSet::removeFiles(mesh);
|
||||||
|
}
|
||||||
|
refinementHistory::removeFiles(mesh);
|
||||||
|
|
||||||
//label flag = meshRefinement::MESH;
|
//label flag = meshRefinement::MESH;
|
||||||
//if (writeLevel)
|
//if (writeLevel)
|
||||||
//{
|
//{
|
||||||
@ -674,11 +681,6 @@ void writeMesh
|
|||||||
meshRefinement::writeType(writeLevel | meshRefinement::WRITEMESH),
|
meshRefinement::writeType(writeLevel | meshRefinement::WRITEMESH),
|
||||||
mesh.time().path()/meshRefiner.timeName()
|
mesh.time().path()/meshRefiner.timeName()
|
||||||
);
|
);
|
||||||
processorMeshes::removeFiles(mesh);
|
|
||||||
if (!debugLevel)
|
|
||||||
{
|
|
||||||
topoSet::removeFiles(mesh);
|
|
||||||
}
|
|
||||||
Info<< "Wrote mesh in = "
|
Info<< "Wrote mesh in = "
|
||||||
<< mesh.time().cpuTimeIncrement() << " s." << endl;
|
<< mesh.time().cpuTimeIncrement() << " s." << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,8 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/renumber/renumberMethods/lnInclude \
|
-I$(LIB_SRC)/renumber/renumberMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/renumber/zoltanRenumber/lnInclude \
|
-I$(LIB_SRC)/renumber/zoltanRenumber/lnInclude \
|
||||||
-I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude
|
-I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude \
|
||||||
|
-I$(LIB_SRC)/parallel/reconstruct/reconstruct/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
@ -14,5 +15,6 @@ EXE_LIBS = \
|
|||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lgenericPatchFields \
|
-lgenericPatchFields \
|
||||||
-lrenumberMethods \
|
-lrenumberMethods \
|
||||||
|
-lreconstruct \
|
||||||
$(LINK_FLAGS) \
|
$(LINK_FLAGS) \
|
||||||
-ldecompositionMethods -L$(FOAM_LIBBIN)/dummy -lmetisDecomp -lscotchDecomp
|
-ldecompositionMethods -L$(FOAM_LIBBIN)/dummy -lmetisDecomp -lscotchDecomp
|
||||||
|
|||||||
@ -52,6 +52,8 @@ Description
|
|||||||
#include "cellSet.H"
|
#include "cellSet.H"
|
||||||
#include "faceSet.H"
|
#include "faceSet.H"
|
||||||
#include "pointSet.H"
|
#include "pointSet.H"
|
||||||
|
#include "processorMeshes.H"
|
||||||
|
#include "hexRef8.H"
|
||||||
|
|
||||||
#ifdef FOAM_USE_ZOLTAN
|
#ifdef FOAM_USE_ZOLTAN
|
||||||
#include "zoltanRenumber.H"
|
#include "zoltanRenumber.H"
|
||||||
@ -1146,6 +1148,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Move mesh (since morphing might not do this)
|
// Move mesh (since morphing might not do this)
|
||||||
if (map().hasMotionPoints())
|
if (map().hasMotionPoints())
|
||||||
{
|
{
|
||||||
@ -1259,6 +1262,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
Info<< "Writing mesh to " << mesh.facesInstance() << endl;
|
Info<< "Writing mesh to " << mesh.facesInstance() << endl;
|
||||||
|
|
||||||
|
processorMeshes::removeFiles(mesh);
|
||||||
|
hexRef8::removeFiles(mesh);
|
||||||
topoSet::updateMesh(mesh.facesInstance(), map(), cellSets);
|
topoSet::updateMesh(mesh.facesInstance(), map(), cellSets);
|
||||||
topoSet::updateMesh(mesh.facesInstance(), map(), faceSets);
|
topoSet::updateMesh(mesh.facesInstance(), map(), faceSets);
|
||||||
topoSet::updateMesh(mesh.facesInstance(), map(), pointSets);
|
topoSet::updateMesh(mesh.facesInstance(), map(), pointSets);
|
||||||
|
|||||||
@ -313,6 +313,16 @@ void Foam::processorMeshes::removeFiles(const polyMesh& mesh)
|
|||||||
mesh
|
mesh
|
||||||
).objectPath()
|
).objectPath()
|
||||||
);
|
);
|
||||||
|
rm
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"procAddressing",
|
||||||
|
mesh.facesInstance(),
|
||||||
|
mesh.meshSubDir,
|
||||||
|
mesh
|
||||||
|
).objectPath()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user