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 "KokkosVectorDirichletBC.h" 11 : 12 455576 : registerKokkosResidualObject("MooseApp", KokkosVectorDirichletBC); 13 : 14 : InputParameters 15 2266 : KokkosVectorDirichletBC::validParams() 16 : { 17 2266 : InputParameters params = Moose::Kokkos::VectorNodalBC::validParams(); 18 6798 : params.addRequiredParam<RealVectorValue>("values", 19 : "The values the components must take on the boundary"); 20 6798 : params.declareControllable("values"); 21 2266 : params.addClassDescription( 22 : "Imposes the essential boundary condition $\\vec{u}=\\vec{g}$, where $\\vec{g}$ " 23 : "are constant, controllable values."); 24 2266 : return params; 25 0 : } 26 : 27 132 : KokkosVectorDirichletBC::KokkosVectorDirichletBC(const InputParameters & parameters) 28 : : Moose::Kokkos::VectorNodalBC(parameters), 29 36 : _values_host(getParam<RealVectorValue>("values")), 30 72 : _values(_values_host) 31 : { 32 68 : } 33 : 34 1056 : KokkosVectorDirichletBC::KokkosVectorDirichletBC(const KokkosVectorDirichletBC & object) 35 572 : : Moose::Kokkos::VectorNodalBC(object), _values_host(object._values_host), _values(_values_host) 36 : { 37 1056 : }