Skip to content

Commit

Permalink
Address PR comments and fix non-unity build failure for ForcingFuncti…
Browse files Browse the repository at this point in the history
…onAux #20065
  • Loading branch information
laagesen committed Jan 25, 2022
1 parent 328a9db commit 0348d81
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions framework/src/auxkernels/ForcingFunctionAux.C
Expand Up @@ -8,7 +8,7 @@
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "ForcingFunctionAux.h"
// #include "Function.h" //don't think this is needed but check
#include "Function.h"

registerMooseObject("MooseApp", ForcingFunctionAux);

Expand All @@ -26,13 +26,12 @@ ForcingFunctionAux::validParams()
ForcingFunctionAux::ForcingFunctionAux(const InputParameters & parameters)
: FunctionAux(parameters), _u_old(uOld())
{
if (isNodal())
paramError("variable", "The variable must be elemental");
}

Real
ForcingFunctionAux::computeValue()
{
if (isNodal())
mooseError("Must use an elemental AuxVariable for ForcingFunctionAux.");
else
return _u_old[_qp] + _dt * _func.value(_t, _q_point[_qp]);
return _u_old[_qp] + _dt * _func.value(_t, _q_point[_qp]);
}

0 comments on commit 0348d81

Please sign in to comment.