LCOV - code coverage report
Current view: top level - src/postprocessors - VolumePostprocessor.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 13 14 92.9 %
Date: 2025-07-17 01:28:37 Functions: 4 4 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 "VolumePostprocessor.h"
      11             : 
      12             : registerMooseObject("MooseApp", VolumePostprocessor);
      13             : 
      14             : InputParameters
      15       14944 : VolumePostprocessor::validParams()
      16             : {
      17       14944 :   InputParameters params = ElementIntegralPostprocessor::validParams();
      18       14944 :   params.addClassDescription("Computes the volume of a specified block");
      19       14944 :   return params;
      20           0 : }
      21             : 
      22         342 : VolumePostprocessor::VolumePostprocessor(const InputParameters & parameters)
      23         342 :   : ElementIntegralPostprocessor(parameters)
      24             : {
      25         342 : }
      26             : 
      27             : void
      28          60 : VolumePostprocessor::threadJoin(const UserObject & y)
      29             : {
      30          60 :   const auto & pps = static_cast<const VolumePostprocessor &>(y);
      31          60 :   _integral_value += pps._integral_value;
      32          60 : }
      33             : 
      34             : Real
      35      182739 : VolumePostprocessor::computeQpIntegral()
      36             : {
      37      182739 :   return 1.0;
      38             : }

Generated by: LCOV version 1.14