LCOV - code coverage report
Current view: top level - include/reporters - EvaluateSurrogate.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 "StochasticReporter.h"
      14             : #include "SurrogateModelInterface.h"
      15             : #include "SurrogateModel.h"
      16             : 
      17             : /**
      18             :  * A tool for output Sampler data.
      19             :  */
      20             : class EvaluateSurrogate : public StochasticReporter, SurrogateModelInterface
      21             : {
      22             : public:
      23             :   static InputParameters validParams();
      24             : 
      25             :   EvaluateSurrogate(const InputParameters & parameters);
      26         720 :   virtual void initialize() override {}
      27             :   virtual void execute() override;
      28         720 :   virtual void finalize() override {}
      29             : 
      30             : protected:
      31             :   /// Sampler for evaluating surrogate model
      32             :   Sampler & _sampler;
      33             :   /// The data type for the response value
      34             :   const MultiMooseEnum _response_types;
      35             :   /// Whether or not to compute standard deviation
      36             :   std::vector<bool> _doing_std;
      37             :   /// Pointers to surrogate model
      38             :   std::vector<const SurrogateModel *> _model;
      39             :   ///@{
      40             :   /// Vectors containing results of sampling model
      41             :   std::vector<std::vector<Real> *> _real_values;
      42             :   std::vector<std::vector<std::vector<Real>> *> _vector_real_values;
      43             :   std::vector<std::vector<Real> *> _real_std;
      44             :   std::vector<std::vector<std::vector<Real>> *> _vector_real_std;
      45             :   ///@}
      46             : };

Generated by: LCOV version 1.14