Go to the documentation of this file.
51 #ifndef OFstreamCollator_H
52 #define OFstreamCollator_H
78 const word objectType_;
90 const word& objectType,
100 objectType_(objectType),
105 streamOpt_(streamOpt),
107 headerEntries_(headerEntries)
113 off_t totalSize = data_.size();
116 if (slaveData_.
set(i))
118 totalSize += slaveData_[i].size();
129 const off_t maxBufferSize_;
131 mutable std::mutex mutex_;
151 static bool writeFile
154 const word& objectType,
156 const string& masterData,
165 static void* writeAll(
void *threadarg);
169 void waitForBufferSpace(
const off_t wantedSize)
const;
199 const word& objectType,
204 const bool useThread =
true,
A class for handling words, derived from Foam::string.
A class for handling file names.
A List obtained as a section of another List.
OFstreamCollator(const off_t maxBufferSize)
const T * set(const label i) const
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
static const dictionary null
TypeName("OFstreamCollator")
The IOstreamOption is a simple container for options an IOstream can normally have.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
static void writeData(Ostream &os, const Type &val)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool write(const word &objectType, const fileName &, const string &data, IOstreamOption streamOpt, const bool append, const bool useThread=true, const dictionary &headerEntries=dictionary::null)
Database for solution data, solver performance and other reduced data.
virtual ~OFstreamCollator()