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 "KokkosConstantAux.h" 11 : 12 187655 : registerKokkosAuxKernel("MooseApp", KokkosConstantAux); 13 : 14 : InputParameters 15 9256 : KokkosConstantAux::validParams() 16 : { 17 9256 : InputParameters params = AuxKernel::validParams(); 18 18512 : params.addClassDescription("Creates a constant field in the domain."); 19 27768 : params.addParam<Real>("value", 0.0, "Some constant value that can be read from the input file"); 20 27768 : params.declareControllable("value"); 21 9256 : return params; 22 0 : } 23 : 24 15 : KokkosConstantAux::KokkosConstantAux(const InputParameters & parameters) 25 18 : : AuxKernel(parameters), _value(getParam<Real>("value")) 26 : { 27 12 : }