LCOV - code coverage report
Current view: top level - include/reporters - SingularTripletReporter.h (source / functions) Hit Total Coverage
Test: idaholab/moose stochastic_tools: f45d79 Lines: 2 2 100.0 %
Date: 2025-07-25 05:00:46 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             : // MOOSE includes
      13             : #include "GeneralReporter.h"
      14             : #include "PODMapping.h"
      15             : #include "MappingInterface.h"
      16             : 
      17             : /**
      18             :  * Reporter class which can print Singular Value Decompositions from PODMapping objects
      19             :  */
      20             : class SingularTripletReporter : public GeneralReporter, public MappingInterface
      21             : {
      22             : public:
      23             :   static InputParameters validParams();
      24             :   SingularTripletReporter(const InputParameters & parameters);
      25             : 
      26          50 :   void initialize() override {}
      27             :   void execute() override;
      28          50 :   void finalize() override {}
      29             : 
      30             :   void initialSetup() override;
      31             : 
      32             : protected:
      33             :   /// The names of the variables whose SVD should be printed
      34             :   const std::vector<VariableName> & _variable_names;
      35             : 
      36             :   /// Link to the PODMapping object which contains the SVDs
      37             :   PODMapping * _pod_mapping;
      38             : 
      39             :   ///@{
      40             :   /// Links to reporter data for left and right singular vectors together with the singular values
      41             :   std::map<VariableName, std::vector<DenseVector<Real>>> & _left_singular_vectors;
      42             :   std::map<VariableName, std::vector<DenseVector<Real>>> & _right_singular_vectors;
      43             :   std::map<VariableName, std::vector<Real>> & _singular_values;
      44             :   ///@}
      45             : };

Generated by: LCOV version 1.14