Skip to content
Permalink
Browse files

Merge pull request #13556 from jiangwen84/sampler_transfer

Remove redundant initialize() in StochasticResults
  • Loading branch information...
aeslaughter committed Jun 12, 2019
2 parents 7c679e7 + 78a1911 commit 5660185dfb4c29a4fbcd1997528166f9da5fc5d0
@@ -96,6 +96,7 @@ SamplerPostprocessorTransfer::finalizeFromMultiapp()
// Update VPP
if (processor_id() == 0)
{
_results->initialize();
const dof_id_type n = _sampler->getTotalNumberOfRows();
for (MooseIndex(n) i = 0; i < n; i++)
{
@@ -128,6 +129,9 @@ SamplerPostprocessorTransfer::execute()
// Sum the PP values from all ranks
_communicator.sum(_local_values);

// Initialize VPP
_results->initialize();

// Update VPP
for (unsigned int i = 0; i < n; i++)
{
@@ -46,7 +46,6 @@ StochasticResults::initialize()
VectorPostprocessorValue &
StochasticResults::getVectorPostprocessorValueByGroup(unsigned int group)
{
StochasticResults::initialize();
if (group >= _sample_vectors.size())
mooseError("The supplied sample index ", group, " does not exist.");
return *_sample_vectors[group];

0 comments on commit 5660185

Please sign in to comment.
You can’t perform that action at this time.