Skip to content

Commit

Permalink
Merge pull request #19085 from lindsayad/fixups-18395
Browse files Browse the repository at this point in the history
Fixup #18395
  • Loading branch information
moosebuild authored Oct 13, 2021
2 parents ff12946 + d3a6b3e commit 429cf7e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/include/variables/MooseVariableField.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ class MooseVariableField : public MooseVariableFieldBase,
virtual const DoFValue & nodalVectorTagValue(TagID tag) const = 0;

void meshChanged() override;
void residualSetup() override;
void jacobianSetup() override;

protected:
using FunctorArg = typename Moose::ADType<OutputType>::type;
Expand Down
20 changes: 20 additions & 0 deletions framework/src/variables/MooseVariableField.C
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,26 @@ MooseVariableField<OutputType>::meshChanged()
_current_elem_side_qp_functor_elem_side = std::make_pair(nullptr, libMesh::invalid_uint);
}

template <typename OutputType>
void
MooseVariableField<OutputType>::residualSetup()
{
_current_elem_qp_functor_elem = nullptr;
_current_elem_side_qp_functor_elem_side = std::make_pair(nullptr, libMesh::invalid_uint);
MooseVariableFieldBase::residualSetup();
Moose::Functor<typename Moose::ADType<OutputType>::type>::residualSetup();
}

template <typename OutputType>
void
MooseVariableField<OutputType>::jacobianSetup()
{
_current_elem_qp_functor_elem = nullptr;
_current_elem_side_qp_functor_elem_side = std::make_pair(nullptr, libMesh::invalid_uint);
MooseVariableFieldBase::jacobianSetup();
Moose::Functor<typename Moose::ADType<OutputType>::type>::jacobianSetup();
}

template class MooseVariableField<Real>;
template class MooseVariableField<RealVectorValue>;
template class MooseVariableField<RealEigenVector>;
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
requirement = 'The system shall be able to model natural convection using a weakly compressible implementation.'
ad_indexing_type = 'global'
method = '!dbg'
valgrind = 'none'
[]
[]

0 comments on commit 429cf7e

Please sign in to comment.