41 if (this->size() && field.
size())
51 cmpt < pTraits<Type>::nComponents;
55 writeFieldList(os, field.
component(cmpt), labelUList::null());
60 forAll(elementTypes(), elemI)
71 cmpt < pTraits<Type>::nComponents;
75 writeFieldList(os, field.
component(cmpt), idList);
Ensight output with specialised write() for strings, integers and floats. Correctly handles binary wr...
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual Ostream & writeKeyword(const string &key)
Write element keyword with trailing newline, optionally with undef.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
Pre-declare SubField and related Field type.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void writeField(ensightFile &, const Field< Type > &, const bool perNode=false) const
Write generalised field components.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
label size() const
Return the number of elements in the UList.