https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PorousFlowLumpedKernelBase.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "GenericKernel.h"
13
23template <bool is_ad>
25{
26public:
28
29protected:
30 virtual void computeJacobian() override;
31 virtual void computeOffDiagJacobian(unsigned int jvar) override;
32 virtual void jacobianSetup() override;
33
35
36private:
37 // Cache to avoid recomputing AD residuals for each off-diagonal jvar on the same element,
38 // mirroring the _my_elem guard in ADKernel::computeOffDiagJacobian.
39 const Elem * _my_elem_lma = nullptr;
40};
41
PorousFlowLumpedKernelBaseTempl< true > ADPorousFlowLumpedKernelBase
PorousFlowLumpedKernelBaseTempl< false > PorousFlowLumpedKernelBase
const InputParameters & parameters() const
Base class for PorousFlow kernels that use mass-lumped (nodal) material properties.
virtual void computeOffDiagJacobian(unsigned int jvar) override