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 "KokkosLowerBoundNodalKernel.h" 11 : 12 : registerMooseObject("MooseApp", KokkosLowerBoundNodalKernel); 13 : 14 : InputParameters 15 9190 : KokkosLowerBoundNodalKernel::validParams() 16 : { 17 9190 : InputParameters params = KokkosBoundNodalKernel::validParams(); 18 18380 : params.addClassDescription("Used to prevent a coupled variable from going below a lower bound"); 19 27570 : params.addParam<Real>("lower_bound", 0, "The lower bound on the coupled variable"); 20 9190 : return params; 21 0 : } 22 : 23 48 : KokkosLowerBoundNodalKernel::KokkosLowerBoundNodalKernel(const InputParameters & parameters) 24 64 : : KokkosBoundNodalKernel(parameters), _lower_bound(getParam<Real>("lower_bound")) 25 : { 26 40 : }