LCOV - code coverage report
Current view: top level - src/kokkos/functions - KokkosConstantFunction.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: b79a48 Lines: 9 10 90.0 %
Date: 2025-11-12 20:01:28 Functions: 2 2 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             : #include "KokkosConstantFunction.h"
      11             : 
      12             : registerKokkosFunction("MooseApp", KokkosConstantFunction);
      13             : 
      14             : InputParameters
      15        8696 : KokkosConstantFunction::validParams()
      16             : {
      17        8696 :   InputParameters params = FunctionBase::validParams();
      18       17392 :   params.addClassDescription(
      19             :       "A function that returns a constant value as defined by an input parameter.");
      20       26088 :   params.addParam<Real>("value", 0.0, "The constant value");
      21       26088 :   params.declareControllable("value");
      22        8696 :   return params;
      23           0 : }
      24             : 
      25          35 : KokkosConstantFunction::KokkosConstantFunction(const InputParameters & parameters)
      26          58 :   : FunctionBase(parameters), _value(getParam<Real>("value"))
      27             : {
      28          32 : }

Generated by: LCOV version 1.14