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