LCOV - code coverage report
Current view: top level - src/postprocessors - OpenMCCoupledCells.C (source / functions) Hit Total Coverage
Test: neams-th-coe/cardinal: be601f Lines: 10 11 90.9 %
Date: 2025-07-15 20:50:38 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /********************************************************************/
       2             : /*                  SOFTWARE COPYRIGHT NOTIFICATION                 */
       3             : /*                             Cardinal                             */
       4             : /*                                                                  */
       5             : /*                  (c) 2021 UChicago Argonne, LLC                  */
       6             : /*                        ALL RIGHTS RESERVED                       */
       7             : /*                                                                  */
       8             : /*                 Prepared by UChicago Argonne, LLC                */
       9             : /*               Under Contract No. DE-AC02-06CH11357               */
      10             : /*                With the U. S. Department of Energy               */
      11             : /*                                                                  */
      12             : /*             Prepared by Battelle Energy Alliance, LLC            */
      13             : /*               Under Contract No. DE-AC07-05ID14517               */
      14             : /*                With the U. S. Department of Energy               */
      15             : /*                                                                  */
      16             : /*                 See LICENSE for full restrictions                */
      17             : /********************************************************************/
      18             : 
      19             : #ifdef ENABLE_OPENMC_COUPLING
      20             : 
      21             : #include "OpenMCCoupledCells.h"
      22             : 
      23             : registerMooseObject("CardinalApp", OpenMCCoupledCells);
      24             : 
      25             : InputParameters
      26          24 : OpenMCCoupledCells::validParams()
      27             : {
      28          24 :   InputParameters params = GeneralPostprocessor::validParams();
      29          24 :   params += OpenMCBase::validParams();
      30          24 :   params.addClassDescription("Number of OpenMC cells receiving temperature/density feedback or "
      31             :                              "sending a cell tally to MOOSE");
      32          24 :   return params;
      33           0 : }
      34             : 
      35           8 : OpenMCCoupledCells::OpenMCCoupledCells(const InputParameters & parameters)
      36           8 :   : GeneralPostprocessor(parameters), OpenMCBase(this, parameters)
      37             : {
      38           8 : }
      39             : 
      40             : Real
      41           8 : OpenMCCoupledCells::getValue() const
      42             : {
      43           8 :   return _openmc_problem->cellToElem().size();
      44             : }
      45             : 
      46             : #endif

Generated by: LCOV version 1.14