LCOV - code coverage report
Current view: top level - src/raybcs - KillRayBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose ray_tracing: #31405 (292dce) with base fef103 Lines: 7 8 87.5 %
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 "KillRayBC.h"
      11             : 
      12             : registerMooseObject("RayTracingApp", KillRayBC);
      13             : 
      14             : InputParameters
      15        7073 : KillRayBC::validParams()
      16             : {
      17        7073 :   auto params = GeneralRayBC::validParams();
      18        7073 :   params.addClassDescription("A RayBC that kills a Ray on a boundary.");
      19        7073 :   return params;
      20           0 : }
      21             : 
      22        3808 : KillRayBC::KillRayBC(const InputParameters & params) : GeneralRayBC(params) {}
      23             : 
      24             : void
      25     1500576 : KillRayBC::onBoundary(const unsigned int /* num_applying */)
      26             : {
      27             :   // After RayBCs are completed, ray->shouldContinue() is checked and this will kill the Ray
      28             :   currentRay()->setShouldContinue(false);
      29     1500576 : }

Generated by: LCOV version 1.14