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 : #include "KokkosAuxKernel.h" 13 : #include "KokkosFunction.h" 14 : 15 : class KokkosFunctionAux : public Moose::Kokkos::AuxKernel 16 : { 17 : public: 18 : static InputParameters validParams(); 19 : 20 : KokkosFunctionAux(const InputParameters & parameters); 21 : 22 413336 : KOKKOS_FUNCTION Real computeValue(const unsigned int qp, AssemblyDatum & datum) const 23 : { 24 413336 : return _func.value(_t, datum.q_point(qp)); 25 : } 26 : 27 : protected: 28 : const Moose::Kokkos::Function _func; 29 : };