LCOV - code coverage report
Current view: top level - src/raykernels - RayDistanceAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose ray_tracing: #31405 (292dce) with base fef103 Lines: 8 9 88.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 "RayDistanceAux.h"
      11             : 
      12             : registerMooseObject("RayTracingApp", RayDistanceAux);
      13             : 
      14             : InputParameters
      15          43 : RayDistanceAux::validParams()
      16             : {
      17          43 :   auto params = AuxRayKernel::validParams();
      18          43 :   params.addClassDescription("Accumulates the distance traversed by each Ray segment into an aux "
      19             :                              "variable for the element that the segments are in.");
      20          43 :   return params;
      21           0 : }
      22             : 
      23          24 : RayDistanceAux::RayDistanceAux(const InputParameters & params) : AuxRayKernel(params) {}
      24             : 
      25             : void
      26       13680 : RayDistanceAux::onSegment()
      27             : {
      28       13680 :   addValue(_current_segment_length);
      29       13680 : }

Generated by: LCOV version 1.14