LCOV - code coverage report
Current view: top level - src/postprocessors - AreaPostprocessor.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 "AreaPostprocessor.h"
      11             : 
      12             : registerMooseObject("MooseApp", AreaPostprocessor);
      13             : 
      14             : InputParameters
      15       15151 : AreaPostprocessor::validParams()
      16             : {
      17       15151 :   InputParameters params = SideIntegralPostprocessor::validParams();
      18             : 
      19       15151 :   params.addClassDescription("Computes the \"area\" or dimension - 1 \"volume\" of a given "
      20             :                              "boundary or boundaries in your mesh.");
      21       15151 :   return params;
      22           0 : }
      23             : 
      24         446 : AreaPostprocessor::AreaPostprocessor(const InputParameters & parameters)
      25         446 :   : SideIntegralPostprocessor(parameters)
      26             : {
      27         446 : }
      28             : 
      29             : void
      30         222 : AreaPostprocessor::threadJoin(const UserObject & y)
      31             : {
      32         222 :   const auto & pps = static_cast<const AreaPostprocessor &>(y);
      33         222 :   _integral_value += pps._integral_value;
      34         222 : }
      35             : 
      36             : Real
      37       58420 : AreaPostprocessor::computeQpIntegral()
      38             : {
      39       58420 :   return 1.0;
      40             : }

Generated by: LCOV version 1.14