Go to the documentation of this file.
49 #ifndef fileOperations_collatedFileOperation_H
50 #define fileOperations_collatedFileOperation_H
59 namespace fileOperations
92 void printBanner(
const bool printRanks =
false)
const;
131 const word& typeName,
157 const bool valid =
true
163 virtual void flush()
const;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static float maxThreadFileBufferSize
Max size of thread buffer size. This is the overall size of.
A class for handling words, derived from Foam::string.
virtual ~collatedFileOperation()
Destructor.
A class for handling file names.
virtual word processorsDir(const IOobject &) const
Actual name of processors dir.
OFstreamCollator writer_
Threaded writer.
collatedFileOperationInitialise(int &argc, char **&argv)
Construct from components.
virtual ~collatedFileOperationInitialise()=default
Destructor.
const labelList ioRanks_
Ranks of IO handlers.
virtual fileName objectPath(const IOobject &io, const word &typeName) const
Generate disk file name for object. Opposite of filePath.
bool appendObject(const regIOobject &io, const fileName &pathName, IOstreamOption streamOpt) const
Append to processorsNN/ file.
virtual label nProcs(const fileName &dir, const fileName &local="") const
Get number of processor directories/results. Used for e.g.
virtual void setNProcs(const label nProcs)
The IOstreamOption is a simple container for options an IOstream can normally have.
bool isMasterRank(const label proci) const
virtual bool writeObject(const regIOobject &, IOstreamOption streamOpt=IOstreamOption(), const bool valid=true) const
Writes a regIOobject (so header, contents and divider).
Version of masterUncollatedFileOperation that collates regIOobjects into a container in the processor...
label nProcs_
Number of processors (overall)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
fileOperations that performs all file operations on the master processor. Requires the calls to be pa...
void printBanner(const bool printRanks=false) const
Print banner information, optionally with io ranks.
static labelList ioRanks()
Retrieve list of IO ranks from FOAM_IORANKS env variable.
virtual bool needsThreading() const
Requires threading for non-zero maxThreadFileBufferSize.
collatedFileOperation(bool verbose)
Default construct.
const label myComm_
Any communicator allocated by me.
virtual void flush() const
Forcibly wait until all output done. Flush any cached data.
TypeName("collated")
Runtime type information.