www.mooseframework.org
Functions
BndsCalculator Namespace Reference

Functions

template<typename T >
Real computeBndsVariable (const std::vector< T * > &var, unsigned int qp)
 

Function Documentation

◆ computeBndsVariable()

template<typename T >
Real BndsCalculator::computeBndsVariable ( const std::vector< T * > &  var,
unsigned int  qp 
)

Definition at line 17 of file BndsCalculator.h.

18 {
19  Real value = 0.0;
20 
21  for (unsigned int i = 0; i < var.size(); ++i)
22  value += (*var[i])[qp] * (*var[i])[qp];
23 
24  return value;
25 }

Referenced by BndsCalcAux::computeValue(), and BndsCalcIC::value().