Chombo + EB  3.2
Public Member Functions | Protected Attributes | Friends | List of all members
StencilTensorValue Class Reference

#include <Stencil.H>

Public Member Functions

 StencilTensorValue (int a_dof=-1)
 
void define (int a_dof)
 
void define (StencilTensorValue &a_sv)
 
bool isDefined () const
 
StencilTensorValueoperator= (const StencilTensorValue &p)
 
Real value (int a_idof, int a_jdof) const
 
const RealgetVals () const
 
void addValue (int a_idof, int a_jdof, Real a_val)
 
void setValue (int a_idof, int a_jdof, Real a_val)
 
void apply (StencilTensorValue &a_scale, StencilTensorValue &a_node)
 
void addValue (Real a_val)
 
void setValue (Real a_val)
 
void scale (Real a_alpha)
 

Protected Attributes

int m_dof
 
Real m_val [STENCIL_MAX_DOF *STENCIL_MAX_DOF]
 

Friends

std::ostream & operator<< (std::ostream &os, const StencilTensorValue &iv)
 

Detailed Description

a 2x2 array class

Constructor & Destructor Documentation

StencilTensorValue::StencilTensorValue ( int  a_dof = -1)
inline

Member Function Documentation

void StencilTensorValue::define ( int  a_dof)
inline

References MayDay::Abort(), m_dof, m_val, and STENCIL_MAX_DOF.

Referenced by define().

void StencilTensorValue::define ( StencilTensorValue a_sv)
inline

References define(), and m_dof.

bool StencilTensorValue::isDefined ( ) const
inline

References m_dof.

StencilTensorValue& StencilTensorValue::operator= ( const StencilTensorValue p)
inline

References MayDay::Abort(), m_dof, and m_val.

Real StencilTensorValue::value ( int  a_idof,
int  a_jdof 
) const
inline

References CHECK_DOF, m_dof, and m_val.

const Real* StencilTensorValue::getVals ( ) const
inline

References CHECK_DOF, and m_val.

void StencilTensorValue::addValue ( int  a_idof,
int  a_jdof,
Real  a_val 
)
inline

References CHECK_DOF, m_dof, and m_val.

void StencilTensorValue::setValue ( int  a_idof,
int  a_jdof,
Real  a_val 
)
inline

References CHECK_DOF, m_dof, and m_val.

void StencilTensorValue::apply ( StencilTensorValue a_scale,
StencilTensorValue a_node 
)
void StencilTensorValue::addValue ( Real  a_val)
inline

References CHECK_DOF, m_dof, and m_val.

void StencilTensorValue::setValue ( Real  a_val)
inline

References CHECK_DOF, m_dof, and m_val.

void StencilTensorValue::scale ( Real  a_alpha)
inline

References CHECK_DOF, m_dof, and m_val.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const StencilTensorValue iv 
)
friend

Member Data Documentation

int StencilTensorValue::m_dof
protected
Real StencilTensorValue::m_val[STENCIL_MAX_DOF *STENCIL_MAX_DOF]
protected

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