LCOV - code coverage report
Current view: top level - src/kokkos/bcs - KokkosCoupledVarNeumannBC.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31653 (1b668c) with base bb0a08 Lines: 15 16 93.8 %
Date: 2025-11-03 17:02:13 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          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 "KokkosCoupledVarNeumannBC.h"
      11             : 
      12      413567 : registerKokkosResidualObject("MooseApp", KokkosCoupledVarNeumannBC);
      13             : 
      14             : InputParameters
      15        9438 : KokkosCoupledVarNeumannBC::validParams()
      16             : {
      17        9438 :   InputParameters params = IntegratedBC::validParams();
      18       37752 :   params.addRequiredCoupledVar("v", "Coupled variable setting the gradient on the boundary.");
      19       37752 :   params.addCoupledVar("scale_factor", 1., "Scale factor to multiply the heat flux with");
      20       28336 :   params.addParam<Real>(
      21       18832 :       "coef", 1.0, "Coefficent ($\\sigma$) multiplier for the coupled force term.");
      22        9438 :   params.addClassDescription("Imposes the integrated boundary condition "
      23             :                              "$\\frac{\\partial u}{\\partial n}=v$, "
      24             :                              "where $v$ is a variable.");
      25        9438 :   return params;
      26           0 : }
      27         113 : KokkosCoupledVarNeumannBC::KokkosCoupledVarNeumannBC(const InputParameters & parameters)
      28             :   : IntegratedBC(parameters),
      29          33 :     _coupled_var(kokkosCoupledValue("v")),
      30          66 :     _coupled_num(coupled("v")),
      31          66 :     _coef(getParam<Real>("coef")),
      32          99 :     _scale_factor(kokkosCoupledValue("scale_factor"))
      33             : {
      34          43 : }

Generated by: LCOV version 1.14