All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
NonlinearSolverTestScaleMinMax Class Reference

#include <nonlin.h>

Inheritance diagram for NonlinearSolverTestScaleMinMax:
Collaboration diagram for NonlinearSolverTestScaleMinMax:

Public Member Functions

virtual void TestOne (doublereal &dRes, const VectorHandler &Vec, const integer &iIndex, doublereal dCoef) const
virtual void TestMerge (doublereal &dResCurr, const doublereal &dResNew) const
virtual const doublerealdScaleCoef (const integer &iIndex) const
- Public Member Functions inherited from NonlinearSolverTestScale
 NonlinearSolverTestScale (const VectorHandler *pScl=0)
virtual ~NonlinearSolverTestScale (void)
virtual void SetScale (const VectorHandler *pScl)
- Public Member Functions inherited from NonlinearSolverTest
virtual ~NonlinearSolverTest (void)
virtual doublereal MakeTest (Solver *pS, const integer &Size, const VectorHandler &Vec, bool bResidual=false, doublereal dScaleAlgEqu=1., doublereal *pTestDiff=0)
virtual doublereal TestPost (const doublereal &dRes) const

Additional Inherited Members

- Public Types inherited from NonlinearSolverTest
- Protected Attributes inherited from NonlinearSolverTestScale
const VectorHandlerpScale

Detailed Description

Definition at line 156 of file nonlin.h.

Member Function Documentation

const doublereal & NonlinearSolverTestScaleMinMax::dScaleCoef ( const integer iIndex) const

Reimplemented from NonlinearSolverTestScale.

Definition at line 338 of file nonlin.cc.

References NonlinearSolverTestScale::dScaleCoef().

339 {
341 }
virtual const doublereal & dScaleCoef(const integer &iIndex) const
Definition: nonlin.cc:284

Here is the call graph for this function:

void NonlinearSolverTestScaleMinMax::TestMerge ( doublereal dResCurr,
const doublereal dResNew 
) const

Reimplemented from NonlinearSolverTestMinMax.

Definition at line 331 of file nonlin.cc.

References NonlinearSolverTestMinMax::TestMerge().

333 {
334  NonlinearSolverTestMinMax::TestMerge(dResCurr, dResNew);
335 }
virtual void TestMerge(doublereal &dResCurr, const doublereal &dResNew) const
Definition: nonlin.cc:251

Here is the call graph for this function:

void NonlinearSolverTestScaleMinMax::TestOne ( doublereal dRes,
const VectorHandler Vec,
const integer iIndex,
doublereal  dCoef 
) const

Reimplemented from NonlinearSolverTestMinMax.

Definition at line 320 of file nonlin.cc.

References grad::fabs(), and NonlinearSolverTestScale::pScale.

322 {
323  doublereal d = fabs(Vec(iIndex) * (*pScale)(iIndex)) * dCoef;
325  if (d > dRes) {
326  dRes = d;
327  }
328 }
GradientExpression< UnaryExpr< FuncFabs, Expr > > fabs(const GradientExpression< Expr > &u)
Definition: gradient.h:2973
double doublereal
Definition: colamd.c:52
const VectorHandler * pScale
Definition: nonlin.h:137

Here is the call graph for this function:

The documentation for this class was generated from the following files: