LCOV - code coverage report
Current view: top level - include/reporters - ParsedVectorRealReductionReporter.h (source / functions) Hit Total Coverage
Test: idaholab/moose optimization: #31405 (292dce) with base fef103 Lines: 2 2 100.0 %
Date: 2025-09-04 07:54: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://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             : #pragma once
      11             : 
      12             : #include "ParsedReporterBase.h"
      13             : 
      14             : /**
      15             :  * Reporter performing a reduction on a vector using a parsed function
      16             :  */
      17             : class ParsedVectorRealReductionReporter : public ParsedReporterBase
      18             : {
      19             : public:
      20             :   static InputParameters validParams();
      21             : 
      22             :   ParsedVectorRealReductionReporter(const InputParameters & parameters);
      23             : 
      24         722 :   virtual void initialize() override {}
      25         722 :   virtual void execute() override {}
      26             :   virtual void finalize() override;
      27             : 
      28             : private:
      29             :   // initial value of element-wise reduction
      30             :   const Real _initial_value;
      31             : 
      32             :   /// Vector being operated on
      33             :   const std::vector<Real> & _reporter_data;
      34             : 
      35             :   /// output containing reduction of vector into a scalar
      36             :   Real & _output_reporter;
      37             : };

Generated by: LCOV version 1.14