Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad committed Oct 13, 2021
1 parent ddd263b commit d3a6b3e
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
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
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>;
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 d3a6b3e

Please sign in to comment.