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

Generated by: LCOV version 1.14