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::StencilTensorValue ( int  a_dof = -1)
inline

References MayDay::Abort(), and STENCIL_MAX_DOF.

Member Function Documentation

◆ define() [1/2]

void StencilTensorValue::define ( int  a_dof)
inline

References MayDay::Abort(), and STENCIL_MAX_DOF.

◆ define() [2/2]

void StencilTensorValue::define ( StencilTensorValue a_sv)
inline

References IndexML::define(), and m_dof.

◆ isDefined()

bool StencilTensorValue::isDefined ( ) const
inline

◆ operator=()

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

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

◆ value()

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

References CHECK_DOF.

◆ getVals()

const Real* StencilTensorValue::getVals ( ) const
inline

References CHECK_DOF.

◆ addValue() [1/2]

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

References CHECK_DOF.

◆ setValue() [1/2]

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

References CHECK_DOF.

◆ apply()

void StencilTensorValue::apply ( StencilTensorValue a_scale,
StencilTensorValue a_node 
)

◆ addValue() [2/2]

void StencilTensorValue::addValue ( Real  a_val)
inline

References CHECK_DOF.

◆ setValue() [2/2]

void StencilTensorValue::setValue ( Real  a_val)
inline

References CHECK_DOF.

◆ scale()

void StencilTensorValue::scale ( Real  a_alpha)
inline

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ m_dof

int StencilTensorValue::m_dof
protected

Referenced by define(), and operator=().

◆ m_val

Real StencilTensorValue::m_val[STENCIL_MAX_DOF *STENCIL_MAX_DOF]
protected

Referenced by operator=().


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