32 template<
class PatchField>
35 if (isA<genericPatchField>(pf))
37 return refCast<const genericPatchField>(pf).actualTypeName();
46 template<
class GeoField>
49 PtrList<GeoField>& fieldList,
52 const typename GeoField::Mesh& mesh
55 if (obj.headerClassName() == GeoField::typeName)
60 new GeoField(obj, mesh)
62 Info<<
" " << GeoField::typeName <<
tab << obj.name() <<
endl;
67 template<
class GeoField>
70 const PtrList<GeoField>& fieldList,
76 if (fieldList.set(fieldi))
78 Info<<
" " << pTraits<typename GeoField::value_type>::typeName
80 << fieldList[fieldi].name() <<
tab <<
tab 88 template<
class GeoField>
91 const PtrList<GeoField>& fieldList,
93 HashTable<word>& fieldToType
98 if (fieldList.set(fieldi))
102 fieldList[fieldi].
name(),
void addToFieldList(PtrList< GeoField > &fieldList, const IOobject &obj, const label fieldi, const typename GeoField::Mesh &mesh)
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void collectFieldList(const PtrList< GeoField > &fieldList, const label patchi, HashTable< word > &fieldToType)
A class for handling words, derived from string.
Istream and Ostream manipulators taking arguments.
word name(const complex &)
Return a string representation of a complex.
word patchFieldType(const PatchField &pf)
void outputFieldList(const PtrList< GeoField > &fieldList, const label patchi)