MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::GradientVectorHandler< Gradient< N_SIZE > > Class Template Reference

#include <matvecass.h>

Collaboration diagram for grad::GradientVectorHandler< Gradient< N_SIZE > >:

Public Member Functions

 GradientVectorHandler (const VectorHandler &vh)
 
void dGetCoef (integer iRow, Gradient< N_SIZE > &gVal, doublereal dCoef, LocalDofMap *pDofMap) const
 
template<index_type N_rows>
void GetVec (integer iRow, Vector< Gradient< N_SIZE >, N_rows > &v, doublereal dCoef, LocalDofMap *pDofMap) const
 

Private Attributes

const VectorHandlervh
 

Detailed Description

template<index_type N_SIZE>
class grad::GradientVectorHandler< Gradient< N_SIZE > >

Definition at line 81 of file matvecass.h.

Constructor & Destructor Documentation

template<index_type N_SIZE>
grad::GradientVectorHandler< Gradient< N_SIZE > >::GradientVectorHandler ( const VectorHandler vh)
inline

Definition at line 83 of file matvecass.h.

84  :vh(vh) {
85 
86  }

Member Function Documentation

template<index_type N_SIZE>
void grad::GradientVectorHandler< Gradient< N_SIZE > >::dGetCoef ( integer  iRow,
Gradient< N_SIZE > &  gVal,
doublereal  dCoef,
LocalDofMap pDofMap 
) const
inline

Definition at line 88 of file matvecass.h.

References grad::Gradient< N_SIZE >::DerivativeResizeReset(), grad::MapVectorBase::GLOBAL, and grad::Gradient< N_SIZE >::SetValuePreserve().

88  {
89  gVal.SetValuePreserve(vh.dGetCoef(iRow));
90  gVal.DerivativeResizeReset(pDofMap, iRow, MapVectorBase::GLOBAL, -dCoef);
91  }
virtual const doublereal & dGetCoef(integer iRow) const =0

Here is the call graph for this function:

template<index_type N_SIZE>
template<index_type N_rows>
void grad::GradientVectorHandler< Gradient< N_SIZE > >::GetVec ( integer  iRow,
Vector< Gradient< N_SIZE >, N_rows > &  v,
doublereal  dCoef,
LocalDofMap pDofMap 
) const
inline

Definition at line 94 of file matvecass.h.

References grad::Gradient< N_SIZE >::DerivativeResizeReset(), grad::MapVectorBase::GLOBAL, grad::Gradient< N_SIZE >::SetDerivativeGlobal(), and grad::Gradient< N_SIZE >::SetValuePreserve().

94  {
95  for (integer i = 0; i < v.iGetNumRows(); ++i) {
96  Gradient<N_SIZE>& v_i = v(i + 1);
97  v_i.SetValuePreserve(vh.dGetCoef(iRow + i));
98  v_i.DerivativeResizeReset(pDofMap, iRow, iRow + v.iGetNumRows(), MapVectorBase::GLOBAL, 0.);
99  v_i.SetDerivativeGlobal(iRow + i, -dCoef);
100  }
101  }
virtual const doublereal & dGetCoef(integer iRow) const =0
long int integer
Definition: colamd.c:51

Here is the call graph for this function:

Member Data Documentation

template<index_type N_SIZE>
const VectorHandler& grad::GradientVectorHandler< Gradient< N_SIZE > >::vh
private

Definition at line 103 of file matvecass.h.


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