LCOV - code coverage report
Current view: top level - src/userobjects - VelocityInitializerBase.C (source / functions) Hit Total Coverage
Test: idaholab/salamander: d3fcc7 Lines: 9 10 90.0 %
Date: 2025-08-11 14:54:34 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of SALAMANDER: Software for Advanced Large-scale Analysis of MAgnetic
       2             : //* confinement for Numerical Design, Engineering & Research,
       3             : //* A multiphysics application for modeling plasma facing components *
       4             : //* https://github.com/idaholab/salamander
       5             : //* https://mooseframework.inl.gov/salamander
       6             : //*
       7             : //* SALAMANDER is powered by the MOOSE Framework
       8             : //* https://www.mooseframework.inl.gov
       9             : //*
      10             : //* Licensed under LGPL 2.1, please see LICENSE for details
      11             : //* https://www.gnu.org/licenses/lgpl-2.1.html
      12             : //*
      13             : //* Copyright 2025, Battelle Energy Alliance, LLC
      14             : //* ALL RIGHTS RESERVED
      15             : //*
      16             : 
      17             : #include "VelocityInitializerBase.h"
      18             : 
      19             : InputParameters
      20        1318 : VelocityInitializerBase::validParams()
      21             : {
      22        1318 :   auto params = GeneralUserObject::validParams();
      23        1318 :   params.addClassDescription(
      24             :       "Base class for defining how particles are given an initial velocity distribution.");
      25        2636 :   params.addParam<unsigned int>("seed",
      26        2636 :                                 0,
      27             :                                 "An additional seed for the random number generators that may be "
      28             :                                 "used when sampling initial particle velocities.");
      29        1318 :   return params;
      30           0 : }
      31             : 
      32         655 : VelocityInitializerBase::VelocityInitializerBase(const InputParameters & parameters)
      33        1310 :   : GeneralUserObject(parameters), _seed(getParam<unsigned int>("seed"))
      34             : {
      35         655 : }

Generated by: LCOV version 1.14