#include <SamplerTransientMultiApp.h>
Public Member Functions | |
SamplerTransientMultiApp (const InputParameters ¶meters) | |
virtual bool | solveStep (Real dt, Real target_time, bool auto_advance=true) override |
Override solveStep to allow for batch execution. More... | |
virtual void | initialSetup () override |
Override to initialize batch backups. More... | |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Attributes | |
Sampler & | _sampler |
Sampler to utilize for creating MultiApps. More... | |
const StochasticTools::MultiAppMode | _mode |
The Sup-application solve mode. More... | |
Private Member Functions | |
bool | solveStepBatch (Real dt, Real target_time, bool auto_advance=true) |
Helper method for running in mode='batch'. More... | |
std::vector< std::shared_ptr< StochasticToolsTransfer > > | getActiveStochasticToolsTransfers (Transfer::DIRECTION direction) |
Helper for getting StochasticToolsTransfer objects. More... | |
Private Attributes | |
std::vector< std::vector< std::shared_ptr< Backup > > > | _batch_backup |
Storage for batch-restore mode; the outer vector if for the local stochastic data and the inner vector is for the number of sub-apps. More... | |
Definition at line 25 of file SamplerTransientMultiApp.h.
SamplerTransientMultiApp::SamplerTransientMultiApp | ( | const InputParameters & | parameters | ) |
Definition at line 47 of file SamplerTransientMultiApp.C.
|
private |
Helper for getting StochasticToolsTransfer objects.
This is a copy from SamplerFullSolveMultiapp, but the alternative is to create an intermediate base. But, given the inheritance difference between these object that gets rather complex, so a few lines of copied code is better for now.
Definition at line 141 of file SamplerTransientMultiApp.C.
Referenced by solveStepBatch().
|
overridevirtual |
|
overridevirtual |
Override solveStep to allow for batch execution.
Definition at line 82 of file SamplerTransientMultiApp.C.
|
private |
Helper method for running in mode='batch'.
Definition at line 93 of file SamplerTransientMultiApp.C.
Referenced by solveStep().
|
static |
Definition at line 20 of file SamplerTransientMultiApp.C.
|
private |
Storage for batch-restore mode; the outer vector if for the local stochastic data and the inner vector is for the number of sub-apps.
The later is 1 for this object, but it is included in case that changes in the future or in child classes
Definition at line 68 of file SamplerTransientMultiApp.h.
Referenced by initialSetup(), and solveStepBatch().
|
protected |
The Sup-application solve mode.
Definition at line 47 of file SamplerTransientMultiApp.h.
Referenced by initialSetup(), SamplerTransientMultiApp(), solveStep(), and solveStepBatch().
|
protected |
Sampler to utilize for creating MultiApps.
Definition at line 44 of file SamplerTransientMultiApp.h.
Referenced by initialSetup(), SamplerTransientMultiApp(), and solveStepBatch().