https://mooseframework.inl.gov
SamplerReceiver.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 "Control.h"
14 
15 // Forward declarations
16 class Function;
17 
21 class SamplerReceiver : public Control
22 {
23 public:
25 
27  virtual void execute() override;
28 
29 protected:
36  void transfer(const std::map<std::string, std::vector<Real>> & param_values);
37 
39  std::vector<std::string> _parameters;
40 
42  std::vector<std::vector<Real>> _values;
43 
47 };
std::vector< std::vector< Real > > _values
Values to use when modifying parameters.
SamplerReceiver(const InputParameters &parameters)
void transfer(const std::map< std::string, std::vector< Real >> &param_values)
Update the parameters and associated values via _parameters and _values.
static InputParameters validParams()
A Control object for receiving data from a master application Sampler object.
std::vector< std::string > _parameters
Parameter names to modify.
Copy each row from each DenseMatrix to the sub-applications SamplerReceiver object.
virtual void execute() override
const InputParameters & parameters() const