LCOV - code coverage report
Current view: top level - include/postprocessor - AverageExtensionRatio.h (source / functions) Hit Total Coverage
Test: idaholab/blackbear: 75f23c Lines: 2 2 100.0 %
Date: 2025-07-17 04:05:57 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://www.mooseframework.org
       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             : #pragma once
      11             : 
      12             : #include "GeneralPostprocessor.h"
      13             : 
      14             : class AverageExtensionRatio : public GeneralPostprocessor
      15             : {
      16             : public:
      17             :   static InputParameters validParams();
      18             : 
      19             :   AverageExtensionRatio(const InputParameters & parameters);
      20             : 
      21          10 :   virtual void initialize() override {}
      22             :   virtual void execute() override;
      23          10 :   virtual void finalize() override {}
      24             :   virtual Real getValue() const override;
      25             : 
      26             : protected:
      27             :   std::vector<VariableName> _displacements;
      28             : 
      29             :   /// The vector of displacements number we are operating on
      30             :   std::vector<int> _disp_num;
      31             : 
      32             :   /// A reference to the system containing the variable
      33             :   const System & _system;
      34             : 
      35             :   /// The vectors of start and end points
      36             :   const std::vector<Point> & _first_point;
      37             :   const std::vector<Point> & _last_point;
      38             : 
      39             :   /// The value of the average extension between the pairs of points
      40             :   Real _value;
      41             : };

Generated by: LCOV version 1.14