39 const fileName& meshPath,
46 UPstream::listGatherValues<bool>
52 runTime.path()/meshPath/meshFile
60 Info<<
"Per processor availability of \"" 61 << meshFile <<
"\" file in " << meshPath <<
nl 65 Pstream::broadcast(haveFileOnProc);
66 return haveFileOnProc;
80 for (
const auto prefix : {
"boundary",
"edge",
"face",
"point"})
82 io.rename(prefix + word(
"ProcAddressing"));
84 const fileName procFile(
io.objectPath());
100 for (
const auto prefix : {
"boundary",
"cell",
"face",
"point"})
102 io.rename(prefix + word(
"ProcAddressing"));
104 const fileName procFile(
io.objectPath());
120 fileName
path(meshPath);
135 for (
const auto& dir : dirs)
boolList haveMeshFile(const Time &runTime, const fileName &meshPath, const word &meshFile="faces", const bool verbose=true)
Check for availability of specified mesh file (default: "faces")
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
void removeEmptyDirs(const fileName &path)
Remove empty directories from bottom up.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Miscellaneous file handling for meshes.
void removeEmptyDir(const fileName &path)
Remove empty directory.
bool rmDir(const fileName &directory, const bool silent=false, const bool emptyOnly=false)
Remove a directory and its contents recursively,.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
bool isFile(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Does the name exist as a FILE in the file system?
messageStream Info
Information stream (stdout output on master, null elsewhere)
void removeProcAddressing(const faMesh &mesh)
Remove procAddressing.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
List< fileName > fileNameList
List of fileName.
fileNameList readDir(const fileName &directory, const fileName::Type type=fileName::Type::FILE, const bool filtergz=true, const bool followLink=true)
Read a directory and return the entries as a fileName List.
List< bool > boolList
A List of bools.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
bool rm(const fileName &file)
Remove a file (or its gz equivalent), returning true if successful.