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

#include <nonlin.h>

Inheritance diagram for NonlinearSolverTestScale:
Collaboration diagram for NonlinearSolverTestScale:

Public Member Functions

 NonlinearSolverTestScale (const VectorHandler *pScl=0)
virtual ~NonlinearSolverTestScale (void)
virtual void SetScale (const VectorHandler *pScl)
virtual const doublerealdScaleCoef (const integer &iIndex) const
- 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 void TestOne (doublereal &dRes, const VectorHandler &Vec, const integer &iIndex, doublereal dCoef) const =0
virtual void TestMerge (doublereal &dResCurr, const doublereal &dResNew) const =0
virtual doublereal TestPost (const doublereal &dRes) const

Protected Attributes

const VectorHandlerpScale

Additional Inherited Members

- Public Types inherited from NonlinearSolverTest

Detailed Description

Definition at line 135 of file nonlin.h.

Constructor & Destructor Documentation

NonlinearSolverTestScale::NonlinearSolverTestScale ( const VectorHandler pScl = 0)

Definition at line 266 of file nonlin.cc.

References NO_OP.

267 : pScale(pScl)
268 {
269  NO_OP;
270 }
#define NO_OP
Definition: myassert.h:74
const VectorHandler * pScale
Definition: nonlin.h:137
NonlinearSolverTestScale::~NonlinearSolverTestScale ( void  )

Definition at line 272 of file nonlin.cc.

References NO_OP.

273 {
274  NO_OP;
275 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

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

Reimplemented from NonlinearSolverTest.

Reimplemented in NonlinearSolverTestScaleMinMax, and NonlinearSolverTestScaleNorm.

Definition at line 284 of file nonlin.cc.

References pScale.

Referenced by NonlinearSolverTestScaleNorm::dScaleCoef(), and NonlinearSolverTestScaleMinMax::dScaleCoef().

285 {
286  return pScale->operator()(iIndex);
287 }
const VectorHandler * pScale
Definition: nonlin.h:137
void NonlinearSolverTestScale::SetScale ( const VectorHandler pScl)

Definition at line 278 of file nonlin.cc.

References pScale.

Referenced by InverseSolver::Prepare(), and Solver::Prepare().

279 {
280  pScale = pScl;
281 }
const VectorHandler * pScale
Definition: nonlin.h:137

Member Data Documentation

const VectorHandler* NonlinearSolverTestScale::pScale

Definition at line 137 of file nonlin.h.

Referenced by dScaleCoef(), SetScale(), and NonlinearSolverTestScaleMinMax::TestOne().

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