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,
82 r0 =
cmptMax(sp[0].initialResidual());
83 r =
cmptMax(sp[solvei].initialResidual());
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricField class.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void append(const T &)
Append an element at the end of the list.
DemandDrivenMeshObject to store the solver performance residuals of all the fields of the type it is ...
static void getFieldTypeNames(const fvMesh &mesh, DynamicList< word > &fieldNames)
Append the of names of the fields of this Type to the given list.
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.
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.
Mesh data needed to do the Finite Volume discretisation.
bool foundObject(const word &name) const
Is the named Type in registry.
bool match(const std::string &) const
True when strings match literally.
A class for handling words, derived from string.
static List< word > fieldNames
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)