28 virtual bool solveStep(
Real dt,
Real target_time,
bool auto_advance =
true)
override;
35 virtual void backup()
override;
49 static std::vector<std::string>
51 const std::vector<std::string> & full_args_name);
65 execBatchTransfers(
const std::vector<std::shared_ptr<StochasticToolsTransfer>> & transfers,
67 const std::vector<Real> & row_data,
86 virtual std::vector<std::string>
getCommandLineArgs(
const unsigned int local_app)
override;
92 bool solveStepBatch(Real dt, Real target_time,
bool auto_advance =
true);
103 std::vector<std::shared_ptr<StochasticToolsTransfer>>
const StochasticTools::MultiAppMode _mode
The Sup-application solve mode.
bool solveStepBatch(Real dt, Real target_time, bool auto_advance=true)
Helper method for running in mode='batch'.
std::vector< std::shared_ptr< StochasticToolsTransfer > > getActiveStochasticToolsTransfers(Transfer::DIRECTION direction)
Helper for getting StochasticToolsTransfer objects.
virtual void backup() override
This method is overridden so that we only store the initial state and not on any other timestep when ...
virtual bool solveStep(Real dt, Real target_time, bool auto_advance=true) override
const InputParameters & parameters() const
SamplerFullSolveMultiApp(const InputParameters ¶meters)
dof_id_type _local_batch_app_index
Counter for extracting command line arguments in batch mode.
static InputParameters validParams()
std::vector< Real > _row_data
Current row of data updated by updateRowData. Used by transfers and setting command line args...
dof_id_type _local_row_index
Current local index representing _row_data.
static std::vector< std::string > sampledCommandLineArgs(const std::vector< Real > &row, const std::vector< std::string > &full_args_name)
Helper for inserting row data into commandline arguments Used here and in SamplerTransientMultiApp.
virtual std::vector< std::string > getCommandLineArgs(const unsigned int local_app) override
Override to allow for batch mode to get correct cli_args.
Sampler & _sampler
Sampler to utilize for creating MultiApps.
virtual void showStatusMessage(unsigned int i) const override
Override to avoid 'solve converged' message and print when processors are finished.
dof_id_type _number_of_sampler_rows
const std::vector< bool > * _should_run
Reporter value determining whether the sub-app should be run for a certain sample.
static void execBatchTransfers(const std::vector< std::shared_ptr< StochasticToolsTransfer >> &transfers, dof_id_type global_row_index, const std::vector< Real > &row_data, Transfer::DIRECTION direction, bool verbose, const ConsoleStream &console)
Helper for executing transfers when doing batch stochastic simulations.
virtual void preTransfer(Real dt, Real target_time) override
void updateRowData(dof_id_type local_index)
Helper function for updating _row_data and _local_row_index.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real