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 "KokkosMatchedValueBC.h" 11 : 12 443905 : registerKokkosResidualObject("MooseApp", KokkosMatchedValueBC); 13 : 14 : InputParameters 15 2132 : KokkosMatchedValueBC::validParams() 16 : { 17 2132 : InputParameters params = NodalBC::validParams(); 18 8528 : params.addRequiredCoupledVar("v", "The variable whose value we are to match."); 19 8528 : params.addParam<Real>("u_coeff", 1.0, " A coefficient for primary variable u"); 20 8528 : params.addParam<Real>("v_coeff", 1.0, " A coefficient for coupled variable v"); 21 2132 : params.addClassDescription("Implements a NodalBC which equates two different Variables' values " 22 : "on a specified boundary."); 23 2132 : return params; 24 0 : } 25 : 26 73 : KokkosMatchedValueBC::KokkosMatchedValueBC(const InputParameters & parameters) 27 : : NodalBC(parameters), 28 9 : _v(kokkosCoupledNodalValue("v")), 29 18 : _v_num(coupled("v")), 30 18 : _u_coeff(getParam<Real>("u_coeff")), 31 27 : _v_coeff(getParam<Real>("v_coeff")) 32 : { 33 17 : }