LCOV - code coverage report
Current view: top level - src/raykernels - VariableIntegralRayKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose ray_tracing: #31405 (292dce) with base fef103 Lines: 10 11 90.9 %
Date: 2025-09-04 07:56:07 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 "VariableIntegralRayKernel.h"
      11             : 
      12             : registerMooseObject("RayTracingApp", VariableIntegralRayKernel);
      13             : 
      14             : InputParameters
      15         576 : VariableIntegralRayKernel::validParams()
      16             : {
      17         576 :   InputParameters params = IntegralRayKernel::validParams();
      18             : 
      19         576 :   params.addClassDescription("Integrates a Variable or AuxVariable along a Ray.");
      20             : 
      21        1152 :   params.addRequiredCoupledVar("variable", "The name of the variable to integrate");
      22             : 
      23         576 :   return params;
      24           0 : }
      25             : 
      26         311 : VariableIntegralRayKernel::VariableIntegralRayKernel(const InputParameters & params)
      27         311 :   : IntegralRayKernel(params), _u(coupledValue("variable"))
      28             : {
      29         311 : }
      30             : 
      31             : Real
      32        3784 : VariableIntegralRayKernel::computeQpIntegral()
      33             : {
      34        3784 :   return _u[_qp];
      35             : }

Generated by: LCOV version 1.14