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 ioAddr.rename(prefix + word(
"ProcAddressing"));
84 const fileName procFile(ioAddr.objectPath());
100 for (
const auto prefix : {
"boundary",
"cell",
"face",
"point"})
102 ioAddr.rename(prefix + word(
"ProcAddressing"));
104 const fileName procFile(ioAddr.objectPath());
191 fileName
path(meshPath);
206 for (
const auto& dir : dirs)
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
Miscellaneous file handling for meshes.
bool rm(const fileName &file)
Remove a file (or its gz equivalent), returning true if successful.
const fileOperation & fileHandler()
Get current file handler.
List< fileName > fileNameList
A List of fileNames.
bool removeEmptyDir(const fileName &path)
Remove empty directory. Return true if removed.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void removeEmptyDirs(const fileName &path)
Remove empty directories from bottom up.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
void removeProcAddressing(const faMesh &mesh)
Remove procAddressing.
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")
List< bool > boolList
A List of bools.
fileNameList readDir(const fileName &directory, const fileName::Type type=fileName::FILE, const bool filtergz=true, const bool followLink=true)
Read a directory and return the entries as a fileName List.
constexpr char nl
The newline '\n' character (0x0a)