https://mooseframework.inl.gov
Loading...
Searching...
No Matches
BndsCalculator.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
13{
14
15template <typename T>
16Real
17computeBndsVariable(const std::vector<T *> & var, unsigned int qp)
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}
26
27}
Real computeBndsVariable(const std::vector< T * > &var, unsigned int qp)