Line data Source code
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 : #ifdef NEML2_ENABLED 13 : 14 : // MOOSE includes 15 : #include "NEML2Kernel.h" 16 : #include "MOOSEToNEML2.h" 17 : 18 : /// Base class for NEML2 kernels that operate _before_ the constitutive update 19 : class NEML2PreKernel : public NEML2Kernel, public MOOSEToNEML2 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : NEML2PreKernel(const InputParameters & parameters); 25 : 26 0 : neml2::Tensor gatheredData() const override { return _output; } 27 : }; 28 : 29 : #endif