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