33 template<
class GeoField>
36 PtrList<GeoField>& fieldList,
39 const typename GeoField::Mesh&
mesh 42 if (obj.isHeaderClass<GeoField>())
47 new GeoField(obj,
mesh)
49 Info<<
" " << GeoField::typeName <<
tab << obj.name() <<
endl;
54 template<
class GeoField>
57 const PtrList<GeoField>& fieldList,
63 if (fieldList.set(fieldi))
65 Info<<
" " << pTraits<typename GeoField::value_type>::typeName
67 << fieldList[fieldi].name() <<
tab <<
tab 68 << fieldList[fieldi].boundaryField()[patchi].type() <<
nl;
74 template<
class GeoField>
77 const PtrList<GeoField>& fieldList,
79 HashTable<word>& fieldToType
84 if (fieldList.set(fieldi))
88 fieldList[fieldi].
name(),
89 fieldList[fieldi].boundaryField()[patchi].
type()
void addToFieldList(PtrList< GeoField > &fieldList, const IOobject &obj, const label fieldi, const typename GeoField::Mesh &mesh)
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char tab
The tab '\t' character(0x09)
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void collectFieldList(const PtrList< GeoField > &fieldList, const label patchi, HashTable< word > &fieldToType)
Istream and Ostream manipulators taking arguments.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void outputFieldList(const PtrList< GeoField > &fieldList, const label patchi)