31 const word& patchFieldType,
38 Info<<
"PointPatchField<Type>::"
39 "New(const word&, const pointPatch&, const Field<Type>&) : "
40 "constructing pointPatchField<Type>"
44 typename pointPatchConstructorTable::iterator cstrIter =
45 pointPatchConstructorTablePtr_->find(patchFieldType);
47 if (cstrIter == pointPatchConstructorTablePtr_->end())
51 "PointPatchField<Type>::New"
52 "(const word&, const pointPatch&, const Field<Type>&)"
53 ) <<
"Unknown patchTypefield type "
56 <<
"Valid patchField types are :" <<
endl
57 << pointPatchConstructorTablePtr_->sortedToc()
61 typename pointPatchConstructorTable::iterator patchTypeCstrIter =
62 pointPatchConstructorTablePtr_->find(p.type());
64 if (patchTypeCstrIter != pointPatchConstructorTablePtr_->end())
85 Info<<
"PointPatchField<Type>::"
86 "New(const pointPatch&, const Field<Type>&, const dictionary&)"
87 " : constructing pointPatchField<Type>"
93 typename dictionaryConstructorTable::iterator cstrIter
94 = dictionaryConstructorTablePtr_->find(patchFieldType);
96 if (cstrIter == dictionaryConstructorTablePtr_->end())
98 if (!disallowGenericPointPatchField)
100 cstrIter = dictionaryConstructorTablePtr_->find(
"generic");
103 if (cstrIter == dictionaryConstructorTablePtr_->end())
107 "PointPatchField<Type>::"
108 "New(const pointPatch&, const Field<Type>&, const dictionary&)",
110 ) <<
"Unknown patchField type " << patchFieldType
111 <<
" for patch type " << p.type() <<
endl <<
endl
112 <<
"Valid patchField types are :" <<
endl
113 << dictionaryConstructorTablePtr_->sortedToc()
120 !dict.
found(
"patchType")
124 typename dictionaryConstructorTable::iterator patchTypeCstrIter
125 = dictionaryConstructorTablePtr_->find(p.type());
129 patchTypeCstrIter != dictionaryConstructorTablePtr_->end()
130 && patchTypeCstrIter() != cstrIter()
135 "PointPatchField<Type>const pointPatch&, "
136 "const Field<Type>&, const dictionary&)",
138 ) <<
"inconsistent patch and patchField types for \n"
139 <<
" patch type " << p.type()
140 <<
" and patchField type " << patchFieldType
162 Info<<
"PointPatchField<Type>::"
163 "New(const pointPatchField<Type>&,"
164 " const pointPatch&, const Field<Type>&, "
165 "const pointPatchFieldMapper&) : "
166 "constructing pointPatchField<Type>"
170 typename patchMapperConstructorTable::iterator cstrIter =
171 patchMapperConstructorTablePtr_->find(ptf.type());
173 if (cstrIter == patchMapperConstructorTablePtr_->end())
177 "PointPatchField<Type>::"
178 "New(const pointPatchField<Type>&, "
179 "const pointPatch&, const Field<Type>&, "
180 "const pointPatchFieldMapper&)"
181 ) <<
"unknown patchTypefield type "
183 <<
"Valid patchField types are :" <<
endl
184 << patchMapperConstructorTablePtr_->sortedToc()