30 template<
class Res
idualData>
33 const word& fieldName,
40 if (useRegEx && residualControl[i].
name.
match(fieldName))
44 else if (residualControl[i].
name == fieldName)
69 const word& fieldName,
84 r0 =
cmptMax(sp[0].initialResidual());
85 r =
cmptMax(sp[solvei].initialResidual());
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
#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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool foundObject(const word &name) const
Is the named Type found?
Generic GeometricField class.
static void getFieldTypeNames(const fvMesh &mesh, DynamicList< word > &fieldNames)
Append the of names of the fields of this Type to the given list.
bool match(const std::string &) const
True when strings match literally.
A class for handling words, derived from string.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
word name(const complex &)
Return a string representation of a complex.
static label residualControlIndex(const word &fieldName, const List< ResidualData > &residualControl, const bool useRegEx=true)
Return the index of the named field in residual control data, or -1.
Mesh data needed to do the Finite Volume discretisation.
static void getInitialTypeResiduals(const fvMesh &mesh, const word &fieldName, const label solvei, scalar &r0, scalar &r)
Get the initial residuals for the first and the i-th solves in this.
MeshObject to store the solver performance residuals of all the fields of the type it is instantiated...