Skip to content

Commit

Permalink
Use internal APIs for old/older values in AuxKernels
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Jan 6, 2021
1 parent b00cf90 commit c55b073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/auxkernels/Sigma.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Sigma : public AuxKernel
virtual Real computeValue() override;

protected:
const VariableValue & _u_old;
const VariableValue & _n;
const VariableGradient & _grad_potential;
};
Expand Down
2 changes: 1 addition & 1 deletion src/auxkernels/Sigma.C
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ validParams<Sigma>()

Sigma::Sigma(const InputParameters & parameters)
: AuxKernel(parameters),

_u_old(_nodal ? _var.nodalValueOldArray() : _var.slnOld()),
_n(coupledValue("n")),
_grad_potential(coupledGradient("potential"))
{
Expand Down

0 comments on commit c55b073

Please sign in to comment.