33 const word& fieldName,
46 <<
" for field " << fieldName <<
nl <<
endl 55 nValues +=
field.size();
63 this->beginDataArray<Type>(fieldName, nValues);
errorManipArg< error, int > exit(error &err, const int errNo=1)
vtk::formatter & format()
The VTK formatter in use. FatalError for off-processor.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
void endDataArray()
Flush formatter and end of DataArray output (non-legacy)
Ostream & endl(Ostream &os)
Add newline and flush stream.
label nPointData_
The number of PointData written for the Piece thus far.
bool isState(outputState test) const noexcept
True if output state corresponds to the test state.
Ostream & reportBadState(Ostream &, outputState expected) const
Generate message reporting bad writer state.
Generic templated field type.
A class for handling words, derived from Foam::string.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
void writePointData(const word &fieldName, const UPtrList< const Field< Type >> &fieldPtrs)
Write primitive field of PointData.