Go to the documentation of this file.
44 #ifndef fileOperations_collatedFileOperation_H
45 #define fileOperations_collatedFileOperation_H
55 namespace fileOperations
126 const word& typeName,
152 const bool valid =
true
158 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.
static labelList ioRanks()
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 processors/ 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)
Set number of processor directories/results. Only used in.
The IOstreamOption is a simple container for options an IOstream can normally have.
bool isMasterRank(const label proci) const
Is proci master of communicator (in parallel) or master of.
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...
virtual bool needsThreading() const
Needs threading.
collatedFileOperation(bool verbose)
Construct null.
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.