41 #ifndef fileOperations_collatedFileOperation_H 42 #define fileOperations_collatedFileOperation_H 52 namespace fileOperations
125 const word& typeName,
153 const bool write =
true 159 virtual void flush()
const;
200 virtual bool needsThreading()
const static labelList ioRanks()
const labelList ioRanks_
Ranks of IO handlers.
fileOperations that performs all file operations on the master processor. Requires the calls to be pa...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
TypeName("collated")
Runtime type information.
virtual bool writeObject(const regIOobject &, IOstream::streamFormat format=IOstream::ASCII, IOstream::versionNumber version=IOstream::currentVersion, IOstream::compressionType compression=IOstream::UNCOMPRESSED, const bool write=true) const
Writes a regIOobject (so header, contents and divider).
OFstreamCollator writer_
Threaded writer.
collatedFileOperation(const bool verbose)
Construct null.
word format(conversionProperties.lookup("format"))
virtual fileName objectPath(const IOobject &io, const word &typeName) const
Generate disk file name for object. Opposite of filePath.
A class for handling words, derived from string.
streamFormat
Enumeration for the format of data in the stream.
bool isMasterRank(const label proci) const
Is proci master of communicator (in parallel) or master of.
compressionType
Enumeration for the format of data in the stream.
bool appendObject(const regIOobject &io, const fileName &pathName, IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Append to processors/ file.
virtual void flush() const
Forcibly wait until all output done. Flush any cached data.
const label myComm_
Any communicator allocated by me.
static float maxThreadFileBufferSize
Max size of thread buffer size. This is the overall size of.
virtual ~collatedFileOperation()
Destructor.
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.
static const versionNumber currentVersion
Current version number.
Version of masterUncollatedFileOperation that collates regIOobjects into a container in the processor...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
label nProcs_
Number of processors (overall)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual word processorsDir(const IOobject &) const
Actual name of processors dir.