Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://www.mooseframework.org 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 "KokkosDirichletBC.h" 11 : 12 564970 : registerKokkosDirichletBC("MooseApp", KokkosDirichletBC); 13 242130 : registerKokkosADDirichletBC("MooseApp", KokkosADDirichletBC); 14 : 15 : template <bool is_ad> 16 : InputParameters 17 13052 : KokkosDirichletBCTempl<is_ad>::validParams() 18 : { 19 13052 : InputParameters params = Moose::Kokkos::DirichletBCBaseTempl<is_ad>::validParams(); 20 39156 : params.addRequiredParam<Real>("value", "Value of the BC"); 21 39156 : params.declareControllable("value"); 22 13052 : params.addClassDescription("Imposes the essential boundary condition $u=g$, where $g$ " 23 : "is a constant, controllable value."); 24 13052 : return params; 25 0 : } 26 : 27 : template <bool is_ad> 28 4955 : KokkosDirichletBCTempl<is_ad>::KokkosDirichletBCTempl(const InputParameters & parameters) 29 : : Moose::Kokkos::DirichletBCBaseTempl<is_ad>(parameters), 30 3598 : _value(this->template getParam<Real>("value")) 31 : { 32 3377 : } 33 : 34 : template class KokkosDirichletBCTempl<false>; 35 : template class KokkosDirichletBCTempl<true>;