LCOV - code coverage report
Current view: top level - src/kokkos/bcs - KokkosADCoupledVarNeumannBC.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 14 15 93.3 %
Date: 2026-05-29 20:35:17 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 "KokkosADCoupledVarNeumannBC.h"
      11             : 
      12      121065 : registerKokkosADResidualObject("MooseApp", KokkosADCoupledVarNeumannBC);
      13             : 
      14             : InputParameters
      15        2190 : KokkosADCoupledVarNeumannBC::validParams()
      16             : {
      17        2190 :   InputParameters params = ADIntegratedBC::validParams();
      18        8760 :   params.addRequiredCoupledVar("v", "Coupled variable setting the gradient on the boundary.");
      19        8760 :   params.addCoupledVar("scale_factor", 1., "Scale factor to multiply the heat flux with");
      20        6616 :   params.addParam<Real>(
      21        4288 :       "coef", 1.0, "Coefficent ($\\sigma$) multiplier for the coupled force term.");
      22        2190 :   params.addClassDescription("Imposes the integrated boundary condition "
      23             :                              "$\\frac{\\partial u}{\\partial n}=v$, "
      24             :                              "where $v$ is a variable.");
      25        2190 :   return params;
      26           0 : }
      27             : 
      28         156 : KokkosADCoupledVarNeumannBC::KokkosADCoupledVarNeumannBC(const InputParameters & parameters)
      29             :   : ADIntegratedBC(parameters),
      30          24 :     _coupled_var(kokkosADCoupledValue("v")),
      31          48 :     _coef(getParam<Real>("coef")),
      32          72 :     _scale_factor(kokkosADCoupledValue("scale_factor"))
      33             : {
      34          46 : }

Generated by: LCOV version 1.14