LCOV - code coverage report
Current view: top level - src/kokkos/linearfvkernels - KokkosLinearFVSource.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #33416 (b10b36) with base 9fbd27 Lines: 11 12 91.7 %
Date: 2026-07-23 16:15:30 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://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 "KokkosLinearFVSource.h"
      11             : 
      12      123312 : registerKokkosLinearFVKernel("MooseApp", KokkosLinearFVSource);
      13             : 
      14             : InputParameters
      15        2468 : KokkosLinearFVSource::validParams()
      16             : {
      17        2468 :   InputParameters params = Moose::Kokkos::LinearFVElementalKernel::validParams();
      18        9872 :   params.addRequiredParam<FunctionName>("source_density", "The volumetric source density.");
      19        9872 :   params.addParam<FunctionName>("scaling_factor", "1", "Scale factor for the source term.");
      20        2468 :   params.addClassDescription("Kokkos LinearFV source kernel.");
      21        2468 :   return params;
      22           0 : }
      23             : 
      24         426 : KokkosLinearFVSource::KokkosLinearFVSource(const InputParameters & parameters)
      25             :   : Moose::Kokkos::LinearFVElementalKernel(parameters),
      26          86 :     _source_density(getKokkosFunction<KokkosParsedFunction>("source_density")),
      27         258 :     _scale(getKokkosFunction<KokkosParsedFunction>("scaling_factor"))
      28             : {
      29         171 : }

Generated by: LCOV version 1.14