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