LCOV - code coverage report
Current view: top level - src/raybcs - KillRayBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose ray_tracing: #32971 (54bef8) with base c6cf66 Lines: 7 8 87.5 %
Date: 2026-05-29 20:39: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        3470 : KillRayBC::validParams()
      16             : {
      17        3470 :   auto params = GeneralRayBC::validParams();
      18        3470 :   params.addClassDescription("A RayBC that kills a Ray on a boundary.");
      19        3470 :   return params;
      20           0 : }
      21             : 
      22        1830 : KillRayBC::KillRayBC(const InputParameters & params) : GeneralRayBC(params) {}
      23             : 
      24             : void
      25     1001002 : 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     1001002 : }

Generated by: LCOV version 1.14