36 #ifndef SolverPerformance_H 37 #define SolverPerformance_H 85 Type initialResidual_;
100 static const scalar
great_;
103 static const scalar
small_;
113 initialResidual_(
Zero),
114 finalResidual_(
Zero),
127 const label nIter = 0,
132 solverName_(solverName),
133 fieldName_(fieldName),
134 initialResidual_(iRes),
135 finalResidual_(fRes),
136 noIterations_(nIter),
167 return initialResidual_;
173 return initialResidual_;
180 return finalResidual_;
186 return finalResidual_;
193 return noIterations_;
199 return noIterations_;
215 const Type& tolerance,
216 const Type& relTolerance
223 void print(Ostream& os)
const;
248 const SolverPerformance<Type>&
254 friend Istream&
operator>> <Type>
257 SolverPerformance<Type>&
260 friend Ostream& operator<< <Type>
263 const SolverPerformance<Type>&
274 #define makeSolverPerformance(Type) \ 276 typedef Foam::SolverPerformance<Type> \ 277 solverPerformance##Type; \ 279 defineNamedTemplateTypeNameAndDebug(solverPerformance##Type, 0); \ 282 const scalar solverPerformance##Type::great_(1e20); \ 285 const scalar solverPerformance##Type::small_(1e-20); \ 288 const scalar solverPerformance##Type::vsmall_(VSMALL); \
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 vector of objects of type <T> with a fixed size <Size>.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Traits class for primitives.
A class for handling words, derived from string.