26 params.addClassDescription(
"Transfers data from Postprocessors on the sub-application to a "
27 "VectorPostprocessor on the master application.");
28 params.addParam<PostprocessorName>(
29 "from_postprocessor",
"The name of the Postprocessors on the sub-app to transfer from.");
30 params.addParam<VectorPostprocessorName>(
"to_vector_postprocessor",
31 "The name of the VectorPostprocessor in "
32 "the MultiApp to transfer values "
35 params.addDeprecatedParam<PostprocessorName>(
37 "The name of the Postprocessors on the sub-app to transfer from.",
38 "Replaced by from_postprocessor");
39 params.addDeprecatedParam<VectorPostprocessorName>(
"vector_postprocessor",
40 "The name of the VectorPostprocessor in "
41 "the MultiApp to transfer values "
43 "Replaced by to_vector_postprocessor");
45 params.set<MultiMooseEnum>(
"direction") =
"from_multiapp";
46 params.suppressParameter<MultiMooseEnum>(
"direction");
52 _sub_pp_name(isParamValid(
"postprocessor") ? getParam<PostprocessorName>(
"postprocessor")
53 : getParam<PostprocessorName>(
"from_postprocessor")),
54 _master_vpp_name(isParamValid(
"vector_postprocessor")
55 ? getParam<VectorPostprocessorName>(
"vector_postprocessor")
56 : getParam<VectorPostprocessorName>(
"to_vector_postprocessor"))
64 _results = dynamic_cast<StochasticResults *>(&uo);
67 mooseError(
"The 'results' object must be a 'StochasticResults' object.");
82 const dof_id_type n = _multi_app->numGlobalApps();
83 for (MooseIndex(n) i = 0; i < n; i++)
85 if (_multi_app->hasLocalApp(i))
87 FEProblemBase & app_problem = _multi_app->appProblemBase(i);
103 VectorPostprocessorValue current;
107 FEProblemBase & app_problem = _multi_app->appProblemBase(i);
108 current.emplace_back(app_problem.getPostprocessorValue(
_sub_pp_name));