31 template<
class GeoField>
34 PtrList<GeoField>& fieldList,
37 const typename GeoField::Mesh& mesh
40 if (obj.headerClassName() == GeoField::typeName)
45 new GeoField(obj, mesh)
47 Info<<
" " << GeoField::typeName <<
tab << obj.name() <<
endl;
52 template<
class GeoField>
55 const PtrList<GeoField>& fieldList,
61 if (fieldList.set(fieldi))
63 Info<<
" " << pTraits<typename GeoField::value_type>::typeName
65 << fieldList[fieldi].name() <<
tab <<
tab 66 << fieldList[fieldi].boundaryField()[
patchi].type() <<
nl;
72 template<
class GeoField>
75 const PtrList<GeoField>& fieldList,
77 HashTable<word>& fieldToType
82 if (fieldList.set(fieldi))
86 fieldList[fieldi].
name(),
87 fieldList[fieldi].boundaryField()[patchi].
type()
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)
Istream and Ostream manipulators taking arguments.
word name(const complex &)
Return a string representation of a complex.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
void outputFieldList(const PtrList< GeoField > &fieldList, const label patchi)