28 template<
class Res
idualData>
31 const word& fieldName,
38 if (useRegEx && residualControl[i].
name.
match(fieldName))
42 else if (residualControl[i].
name == fieldName)
56 const word& fieldName,
68 r0 =
cmptMax(sp[0].initialResidual());
69 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.
bool match(const std::string &) const
True when strings match literally.
A class for handling words, derived from string.
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, ITstream &data, scalar &r0, scalar &r)
Get the initial residuals for the first and the i-th solves in this.