41 #ifndef fileOperations_collatedFileOperation_H 42 #define fileOperations_collatedFileOperation_H 51 namespace fileOperations
124 const word& typeName,
152 const bool write =
true 158 virtual void flush()
const;
199 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.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
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.
virtual fileName filePath(const bool checkGlobal, const IOobject &, const word &typeName) const
Search for an object. checkGlobal : also check undecomposed case.
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.
bool appendObject(const regIOobject &io, const fileName &filePath, IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Append to processors/ file.