LCOV - code coverage report
Current view: top level - src/auxkernels - ProcessorIDAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 9 10 90.0 %
Date: 2025-07-17 01:28:37 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #include "ProcessorIDAux.h"
      11             : 
      12             : registerMooseObject("MooseApp", ProcessorIDAux);
      13             : 
      14             : InputParameters
      15       20058 : ProcessorIDAux::validParams()
      16             : {
      17       20058 :   InputParameters params = AuxKernel::validParams();
      18       20058 :   params.addClassDescription("Creates a field showing the processors and partitioning.");
      19       20058 :   return params;
      20           0 : }
      21             : 
      22        2985 : ProcessorIDAux::ProcessorIDAux(const InputParameters & parameters) : AuxKernel(parameters) {}
      23             : 
      24             : Real
      25    17119504 : ProcessorIDAux::computeValue()
      26             : {
      27    17119504 :   if (isNodal())
      28      604152 :     return _current_node->processor_id();
      29             :   else
      30    16515352 :     return _current_elem->processor_id();
      31             : }

Generated by: LCOV version 1.14