https://mooseframework.inl.gov
MultiAppSamplerControl.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 #include "SamplerInterface.h"
15 
16 // Forward declarations
17 
18 class Function;
19 class Sampler;
20 class MultiApp;
21 
26 {
27 public:
29 
31 
37  virtual void initialSetup() override final;
38 
39  virtual void execute() override;
40 
41 protected:
43  std::shared_ptr<MultiApp> _multi_app;
44 
47 
49  const std::vector<std::string> & _param_names;
50 
52  std::vector<CLIArgString> _orig_args;
53 };
static InputParameters validParams()
Sampler & _sampler
Sampler to utilize for creating MultiApps.
A Control object for receiving data from a parent application Sampler object.
virtual void initialSetup() override final
Do not allow the use of initialSetup, because this class is designed to operate on PRE_MULTIAPP_SETUP...
MultiAppSamplerControl(const InputParameters &parameters)
std::vector< CLIArgString > _orig_args
The original cli_args from input.
virtual void execute() override
std::shared_ptr< MultiApp > _multi_app
The MultiApp this Transfer is transferring data to or from.
const InputParameters & parameters() const
const std::vector< std::string > & _param_names
Storage for the parameter names to be applied.