diff --git a/vtkm/filter/flow/internal/AdvectAlgorithm.h b/vtkm/filter/flow/internal/AdvectAlgorithm.h index fd4a9b2ec..678ae5da5 100644 --- a/vtkm/filter/flow/internal/AdvectAlgorithm.h +++ b/vtkm/filter/flow/internal/AdvectAlgorithm.h @@ -78,6 +78,7 @@ public: std::vector ids = this->BoundsMap.FindBlocks(p.GetPosition()); //DRP + //Note: For duplicate blocks, this will give the seeds to the rank that first in the list. if (!ids.empty()) { auto ranks = this->BoundsMap.FindRank(ids[0]); diff --git a/vtkm/filter/flow/internal/BoundsMap.h b/vtkm/filter/flow/internal/BoundsMap.h index da9f34c37..9857c06d7 100644 --- a/vtkm/filter/flow/internal/BoundsMap.h +++ b/vtkm/filter/flow/internal/BoundsMap.h @@ -310,7 +310,9 @@ private: idx += 3; } +#ifdef VTKM_ENABLE_MPI if (comm.rank() == 0) +#endif { std::cout << "BlockBounds: " << this->GlobalBounds << std::endl; for (const auto& block : this->BlockBounds) diff --git a/vtkm/filter/flow/testing/UnitTestStreamlineFilterMPI.cxx b/vtkm/filter/flow/testing/UnitTestStreamlineFilterMPI.cxx index 979f5ab9d..4551ec487 100644 --- a/vtkm/filter/flow/testing/UnitTestStreamlineFilterMPI.cxx +++ b/vtkm/filter/flow/testing/UnitTestStreamlineFilterMPI.cxx @@ -339,6 +339,7 @@ void TestDuplicatedBlocks(vtkm::Id nPerRank) vtkm::FloatDefault dx = x1 - x0; vtkm::FloatDefault y0 = 0, y1 = numDims - 1, z0 = 0, z1 = numDims - 1; + //Create all of the blocks. std::vector bounds; for (vtkm::Id i = 0; i < nPerRank * comm.size(); i++) {