LCOV - code coverage report
Current view: top level - src/postprocessors - VolumePostprocessor.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 13 14 92.9 %
Date: 2025-08-08 20:01:16 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       14998 : VolumePostprocessor::validParams()
      16             : {
      17       14998 :   InputParameters params = ElementIntegralPostprocessor::validParams();
      18       14998 :   params.addClassDescription("Computes the volume of a specified block");
      19       14998 :   return params;
      20           0 : }
      21             : 
      22         369 : VolumePostprocessor::VolumePostprocessor(const InputParameters & parameters)
      23         369 :   : ElementIntegralPostprocessor(parameters)
      24             : {
      25         369 : }
      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      210172 : VolumePostprocessor::computeQpIntegral()
      36             : {
      37      210172 :   return 1.0;
      38             : }

Generated by: LCOV version 1.14