LCOV - code coverage report
Current view: top level - src/userobjects - PKAGun.C (source / functions) Hit Total Coverage
Test: idaholab/magpie: 5710af Lines: 11 12 91.7 %
Date: 2025-07-21 23:34:39 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /**********************************************************************/
       2             : /*                     DO NOT MODIFY THIS HEADER                      */
       3             : /* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */
       4             : /*                                                                    */
       5             : /*            Copyright 2017 Battelle Energy Alliance, LLC            */
       6             : /*                        ALL RIGHTS RESERVED                         */
       7             : /**********************************************************************/
       8             : 
       9             : #include "PKAGun.h"
      10             : 
      11             : registerMooseObject("MagpieApp", PKAGun);
      12             : 
      13             : InputParameters
      14          51 : PKAGun::validParams()
      15             : {
      16          51 :   InputParameters params = PKAFixedPointGenerator::validParams();
      17          51 :   params.addClassDescription(
      18             :       "This PKAGenerator starts particle from a fixed point in a fixed direction.");
      19         102 :   params.addRequiredParam<Point>("direction", "The fixed direction the PKAs move along");
      20          51 :   return params;
      21           0 : }
      22             : 
      23          28 : PKAGun::PKAGun(const InputParameters & parameters)
      24          56 :   : PKAFixedPointGenerator(parameters), _direction(getParam<Point>("direction"))
      25             : {
      26          28 : }
      27             : 
      28             : void
      29        3903 : PKAGun::setDirection(MyTRIM_NS::IonBase & ion) const
      30             : {
      31        3903 :   ion._dir = _direction;
      32        3903 : }

Generated by: LCOV version 1.14