LCOV - code coverage report
Current view: top level - src/postprocessors - NekNumRanks.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_NEK_COUPLING
      20             : 
      21             : #include "NekNumRanks.h"
      22             : 
      23             : registerMooseObject("CardinalApp", NekNumRanks);
      24             : 
      25             : InputParameters
      26          18 : NekNumRanks::validParams()
      27             : {
      28          18 :   InputParameters params = GeneralPostprocessor::validParams();
      29          18 :   params += NekBase::validParams();
      30          18 :   params.addClassDescription("Number of MPI ranks used to run NekRS");
      31          18 :   return params;
      32           0 : }
      33             : 
      34           6 : NekNumRanks::NekNumRanks(const InputParameters & parameters)
      35           6 :   : GeneralPostprocessor(parameters), NekBase(this, parameters)
      36             : {
      37           6 : }
      38             : 
      39             : Real
      40           6 : NekNumRanks::getValue() const
      41             : {
      42           6 :   return nekrs::commSize();
      43             : }
      44             : 
      45             : #endif

Generated by: LCOV version 1.14