20 "declare_stochastic_results_vectors");
26 params.
addClassDescription(
"Action for performing initialization of StochasticResults vectors "
27 "based on SamplerPostprocessorTransfer.");
38 for (std::shared_ptr<Transfer> & transfer_ptr :
39 _problem->getTransfers(Transfer::DIRECTION::FROM_MULTIAPP))
41 auto ptr = std::dynamic_pointer_cast<SamplerPostprocessorTransfer>(transfer_ptr);
44 const auto & result_name =
45 ptr->getParam<VectorPostprocessorName>(
"to_vector_postprocessor");
46 const std::vector<VectorPostprocessorName> & vpp_names = ptr->vectorNames();
53 mooseError(
"The object prescribed by the 'to_vector_postprocessor' parameter in ",
55 " must be a 'StochasticResults' object.");
56 for (
const auto & vpp_name : vpp_names)
57 results->initVector(vpp_name);
registerMooseAction("StochasticToolsApp", StochasticResultsAction, "declare_stochastic_results_vectors")
static InputParameters validParams()
std::shared_ptr< FEProblemBase > & _problem
const std::string & _current_task
void mooseError(Args &&... args) const
This action is a crutch that gets around a construction and initialSetup execution order of operation...
virtual void act() override
StochasticResultsAction(const InputParameters ¶ms)
static InputParameters validParams()
A tool for output Sampler data.