39#ifndef SolverPerformance_H
40#define SolverPerformance_H
53class SolverPerformance;
85 typedef typename pTraits<Type>::labelType labelType;
91 Type initialResidual_;
93 labelType nIterations_;
106 static const scalar
great_;
109 static const scalar
small_;
119 initialResidual_(
Zero),
120 finalResidual_(
Zero),
140 initialResidual_(iRes),
141 finalResidual_(fRes),
173 return initialResidual_;
179 return initialResidual_;
186 return finalResidual_;
192 return finalResidual_;
221 const Type& tolerance,
222 const Type& relTolerance,
223 const int logLevel = 0
261 friend Istream&
operator>> <Type>
267 friend Ostream& operator<< <Type>
281#define makeSolverPerformance(Type) \
283typedef Foam::SolverPerformance<Type> \
284 solverPerformance##Type; \
286defineNamedTemplateTypeNameAndDebug(solverPerformance##Type, 0); \
289const scalar solverPerformance##Type::great_(1e20); \
292const scalar solverPerformance##Type::small_(1e-20); \
295const scalar solverPerformance##Type::vsmall_(VSMALL); \
A 1D vector of objects of type <T> with a fixed length <N>.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A class for handling words, derived from Foam::string.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
OBJstream os(runTime.globalPath()/outputName)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0)
A non-counting (dummy) refCount.