LCOV - code coverage report
Current view: top level - src/kokkos/functions - KokkosPiecewiseConstant.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31782 (615931) with base 7edd10 Lines: 11 11 100.0 %
Date: 2025-11-11 23:21:15 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 "KokkosPiecewiseConstant.h"
      11             : 
      12             : registerKokkosFunction("MooseApp", KokkosPiecewiseConstant);
      13             : 
      14             : InputParameters
      15        8948 : KokkosPiecewiseConstant::validParams()
      16             : {
      17        8948 :   InputParameters params = KokkosPiecewiseTabularBase::validParams();
      18       26844 :   MooseEnum direction("LEFT RIGHT LEFT_INCLUSIVE RIGHT_INCLUSIVE", "LEFT");
      19        8964 :   params.addParam<MooseEnum>(
      20       17880 :       "direction", direction, "Direction to look to find value: " + direction.getRawNames());
      21        8948 :   params.addClassDescription("Defines piece-wise constant data using a set of x-y data pairs");
      22       17896 :   return params;
      23        8948 : }
      24             : 
      25         161 : KokkosPiecewiseConstant::KokkosPiecewiseConstant(const InputParameters & parameters)
      26             :   : KokkosPiecewiseTabularBase(parameters),
      27         310 :     _direction(getParam<MooseEnum>("direction").getEnum<Direction>())
      28             : {
      29         158 : }

Generated by: LCOV version 1.14