https://mooseframework.inl.gov
StochasticMatrix.h
Go to the documentation of this file.
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 
16 {
17 public:
19 
21  virtual void execute() override;
22 
23 protected:
24  // Overriding this to make sure sampler matches
25  virtual ReporterName declareStochasticReporterClone(const Sampler & sampler,
26  const ReporterData & from_data,
27  const ReporterName & from_reporter,
28  std::string prefix = "") override;
29 
32 
33 private:
35  std::vector<std::vector<Real> *> _sample_vectors;
36 };
static InputParameters validParams()
Sampler & _sampler
The sampler to extract data.
virtual ReporterName declareStochasticReporterClone(const Sampler &sampler, const ReporterData &from_data, const ReporterName &from_reporter, std::string prefix="") override
StochasticMatrix(const InputParameters &parameters)
const InputParameters & parameters() const
std::vector< std::vector< Real > * > _sample_vectors
Storage for declared vectors, one for each column.
virtual void execute() override