28 virtual bool solveStep(
Real dt,
Real target_time,
bool auto_advance =
true)
override;
43 static std::vector<std::string>
45 const std::vector<std::string> & full_args_name);
59 execBatchTransfers(
const std::vector<std::shared_ptr<StochasticToolsTransfer>> & transfers,
61 const std::vector<Real> & row_data,
80 virtual std::vector<std::string>
getCommandLineArgs(
const unsigned int local_app)
override;
86 bool solveStepBatch(Real dt, Real target_time,
bool auto_advance =
true);
97 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 bool solveStep(Real dt, Real target_time, bool auto_advance=true) override
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
const InputParameters & parameters() const