MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / removeFiles

Function removeFiles

src/OpenFOAM/meshes/polyMesh/polyMesh.C:1212–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210
1211
1212void Foam::polyMesh::removeFiles(const fileName& instanceDir) const
1213{
1214 fileName meshFilesPath = thisDb().time().path()/instanceDir/meshDir();
1215
1216 rm(meshFilesPath/"points");
1217 rm(meshFilesPath/"faces");
1218 rm(meshFilesPath/"owner");
1219 rm(meshFilesPath/"neighbour");
1220 rm(meshFilesPath/"cells");
1221 rm(meshFilesPath/"boundary");
1222 rm(meshFilesPath/"pointZones");
1223 rm(meshFilesPath/"faceZones");
1224 rm(meshFilesPath/"cellZones");
1225 rm(meshFilesPath/"meshModifiers");
1226 rm(meshFilesPath/"parallelData");
1227
1228 // remove subdirectories
1229 if (isDir(meshFilesPath/"sets"))
1230 {
1231 rmDir(meshFilesPath/"sets");
1232 }
1233}
1234
1235
1236void Foam::polyMesh::removeFiles() const

Callers 1

Calls 6

findTetFacePtFunction · 0.85
timeMethod · 0.80
rmFunction · 0.50
isDirFunction · 0.50
rmDirFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected