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