LCOV - code coverage report
Current view: top level - src/kokkos/bcs - KokkosDirichletBC.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:35:17 Functions: 8 8 100.0 %
Legend: Lines: hit not hit

          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>;

Generated by: LCOV version 1.14