LCOV - code coverage report
Current view: top level - src/auxkernels - OpenMCAuxKernel.C (source / functions) Hit Total Coverage
Test: neams-th-coe/cardinal: be601f Lines: 10 13 76.9 %
Date: 2025-07-15 20:50:38 Functions: 4 9 44.4 %
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 "OpenMCAuxKernel.h"
      22             : 
      23             : template <typename ComputeValueType>
      24             : InputParameters
      25        9179 : OpenMCAuxKernelTempl<ComputeValueType>::validParams()
      26             : {
      27        9179 :   InputParameters params = AuxKernelTempl<ComputeValueType>::validParams();
      28        9179 :   params += OpenMCBase::validParams();
      29        9179 :   return params;
      30           0 : }
      31             : 
      32             : template <typename ComputeValueType>
      33        4599 : OpenMCAuxKernelTempl<ComputeValueType>::OpenMCAuxKernelTempl(const InputParameters & parameters)
      34        4599 :   : AuxKernelTempl<ComputeValueType>(parameters), OpenMCBase(this, parameters)
      35             : {
      36        4599 :   if (this->isNodal())
      37           2 :     mooseError("This auxkernel can only be used with elemental variables!");
      38        4597 : }
      39             : 
      40             : template <typename ComputeValueType>
      41             : bool
      42           0 : OpenMCAuxKernelTempl<ComputeValueType>::mappedElement()
      43             : {
      44             :   OpenMCCellAverageProblem::cellInfo cell_info =
      45    55164160 :       _openmc_problem->elemToCellInfo(this->_current_elem->id());
      46           0 :   return !(cell_info.first == OpenMCCellAverageProblem::UNMAPPED);
      47             : }
      48             : 
      49             : // Explicitly instantiates the three versions of the OpenMCAuxKernelTempl class
      50             : template class OpenMCAuxKernelTempl<Real>;
      51             : template class OpenMCAuxKernelTempl<RealVectorValue>;
      52             : template class OpenMCAuxKernelTempl<RealEigenVector>;
      53             : 
      54             : #endif

Generated by: LCOV version 1.14