Skip to content

Commit

Permalink
fix a bug in MOOSE variable idaholab#9690
Browse files Browse the repository at this point in the history
  • Loading branch information
YaqiWang committed Aug 22, 2017
1 parent de5faf7 commit 424b004
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions framework/include/base/MooseVariable.h
Expand Up @@ -196,8 +196,16 @@ class MooseVariable : public MooseVariableBase
const Node *& node() { return _node; }
dof_id_type & nodalDofIndex() { return _nodal_dof_index; }
bool isNodalDefined() { return _is_defined; }
const VariableValue & nodalSln() { return _nodal_u; }
const VariableValue & nodalSlnOld() { return _nodal_u_old; }
const VariableValue & nodalSln()
{
_need_nodal_u = true;
return _nodal_u;
}
const VariableValue & nodalSlnOld()
{
_need_nodal_u_old = true;
return _nodal_u_old;
}
const VariableValue & nodalSlnOlder() { return _nodal_u_older; }
const VariableValue & nodalSlnPreviousNL()
{
Expand Down

0 comments on commit 424b004

Please sign in to comment.