LCOV - code coverage report
Current view: top level - src/raykernels - MaterialIntegralRayKernel.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 "MaterialIntegralRayKernel.h"
      11             : 
      12             : registerMooseObject("RayTracingApp", MaterialIntegralRayKernel);
      13             : 
      14             : InputParameters
      15          82 : MaterialIntegralRayKernel::validParams()
      16             : {
      17          82 :   InputParameters params = IntegralRayKernel::validParams();
      18             : 
      19          82 :   params.addClassDescription("Integrates a Material property along a Ray.");
      20             : 
      21         164 :   params.addRequiredParam<MaterialPropertyName>("mat_prop",
      22             :                                                 "The name of the material property to integrate");
      23             : 
      24          82 :   return params;
      25           0 : }
      26             : 
      27          44 : MaterialIntegralRayKernel::MaterialIntegralRayKernel(const InputParameters & params)
      28          88 :   : IntegralRayKernel(params), _mat(getMaterialProperty<Real>("mat_prop"))
      29             : {
      30          44 : }
      31             : 
      32             : Real
      33         360 : MaterialIntegralRayKernel::computeQpIntegral()
      34             : {
      35         360 :   return _mat[_qp];
      36             : }

Generated by: LCOV version 1.14