LCOV - code coverage report
Current view: top level - include/kokkos/auxkernels - KokkosFunctionAux.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31653 (2d163b) with base 0cc44f Lines: 2 2 100.0 %
Date: 2025-11-04 20:38:02 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          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             : };

Generated by: LCOV version 1.14