LCOV - code coverage report
Current view: top level - src/kokkos/kernels - KokkosBodyForce.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31730 (e8b711) with base e0c998 Lines: 13 14 92.9 %
Date: 2025-10-29 16:49:47 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 "KokkosBodyForce.h"
      11             : 
      12      412071 : registerKokkosResidualObject("MooseApp", KokkosBodyForce);
      13             : 
      14             : InputParameters
      15       18646 : KokkosBodyForce::validParams()
      16             : {
      17       18646 :   InputParameters params = Kernel::validParams();
      18       74584 :   params.addParam<Real>("value", 1.0, "Coefficient to multiply by the body force term");
      19       37336 :   params.addParam<PostprocessorName>(
      20       37204 :       "postprocessor", 1, "A postprocessor whose value is multiplied by the body force");
      21       55938 :   params.declareControllable("value");
      22       18646 :   params.addClassDescription("Demonstrates the two ways that scalar values can be introduced "
      23             :                              "into kernels, e.g. (controllable) constants and postprocessors. "
      24             :                              "Implements the weak form $(\\psi_i, -f)$.");
      25       18646 :   return params;
      26           0 : }
      27             : 
      28         156 : KokkosBodyForce::KokkosBodyForce(const InputParameters & parameters)
      29             :   : Kernel(parameters),
      30          72 :     _scale(getParam<Real>("value")),
      31         216 :     _postprocessor(getPostprocessorValue("postprocessor"))
      32             : {
      33          93 : }

Generated by: LCOV version 1.14