mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fix serial compile error.
This commit is contained in:
parent
6de278d8a4
commit
812b8f3930
@ -78,6 +78,7 @@ public:
|
||||
std::vector<vtkm::Id> 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]);
|
||||
|
@ -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)
|
||||
|
@ -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<vtkm::Bounds> bounds;
|
||||
for (vtkm::Id i = 0; i < nPerRank * comm.size(); i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user