LCOV - code coverage report
Current view: top level - src/kokkos/kernels - KokkosReaction.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 6f668f Lines: 10 11 90.9 %
Date: 2025-09-22 20:01:15 Functions: 2 2 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 "KokkosReaction.h"
      11             : 
      12             : registerMooseObject("MooseApp", KokkosReaction);
      13             : 
      14             : InputParameters
      15        9278 : KokkosReaction::validParams()
      16             : {
      17        9278 :   InputParameters params = Kernel::validParams();
      18       18556 :   params.addClassDescription(
      19             :       "Implements a simple consuming reaction term with weak form $(\\psi_i, \\lambda u_h)$.");
      20       18598 :   params.addParam<Real>(
      21       18472 :       "rate", 1.0, "The $(\\lambda)$ multiplier, the relative amount consumed per unit time.");
      22       27834 :   params.declareControllable("rate");
      23        9278 :   return params;
      24           0 : }
      25             : 
      26         105 : KokkosReaction::KokkosReaction(const InputParameters & parameters)
      27         126 :   : Kernel(parameters), _rate(getParam<Real>("rate"))
      28             : {
      29          84 : }

Generated by: LCOV version 1.14