36 #ifndef SolverPerformance_H 37 #define SolverPerformance_H 88 Type initialResidual_;
90 labelType nIterations_;
103 static const scalar
great_;
106 static const scalar
small_;
116 initialResidual_(
Zero),
117 finalResidual_(
Zero),
135 solverName_(solverName),
136 fieldName_(fieldName),
137 initialResidual_(iRes),
138 finalResidual_(fRes),
170 return initialResidual_;
176 return initialResidual_;
183 return finalResidual_;
189 return finalResidual_;
218 const Type& tolerance,
219 const Type& relTolerance
226 void print(Ostream& os)
const;
251 const SolverPerformance<Type>&
257 friend Istream&
operator>> <Type>
260 SolverPerformance<Type>&
263 friend Ostream& operator<< <Type>
266 const SolverPerformance<Type>&
277 #define makeSolverPerformance(Type) \ 279 typedef Foam::SolverPerformance<Type> \ 280 solverPerformance##Type; \ 282 defineNamedTemplateTypeNameAndDebug(solverPerformance##Type, 0); \ 285 const scalar solverPerformance##Type::great_(1e20); \ 288 const scalar solverPerformance##Type::small_(1e-20); \ 291 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.