LCOV - code coverage report
Current view: top level - src/kokkos/functions - KokkosConstantFunction.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 9 10 90.0 %
Date: 2026-05-29 20:35:17 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        2172 : KokkosConstantFunction::validParams()
      16             : {
      17        2172 :   InputParameters params = FunctionBase::validParams();
      18        4344 :   params.addClassDescription(
      19             :       "A function that returns a constant value as defined by an input parameter.");
      20        6516 :   params.addParam<Real>("value", 0.0, "The constant value");
      21        6516 :   params.declareControllable("value");
      22        2172 :   return params;
      23           0 : }
      24             : 
      25          45 : KokkosConstantFunction::KokkosConstantFunction(const InputParameters & parameters)
      26          58 :   : FunctionBase(parameters), _value(getParam<Real>("value"))
      27             : {
      28          37 : }

Generated by: LCOV version 1.14