Remove warning. Add BoundsMap methods.

This commit is contained in:
Dave Pugmire 2023-04-18 15:55:38 -04:00
parent d79b2cb5be
commit b8e9ca4ca5
2 changed files with 12 additions and 4 deletions

@ -61,6 +61,14 @@ public:
this->Init(pds.GetPartitions(), blockIds);
}
vtkm::Bounds GetGlobalBounds() const { return this->GlobalBounds; }
vtkm::Bounds GetBlockBounds(std::size_t idx) const
{
VTKM_ASSERT(idx < this->BlockBounds.size());
return this->BlockBounds[idx];
}
vtkm::Id GetLocalBlockId(vtkm::Id idx) const
{
VTKM_ASSERT(idx >= 0 && idx < this->LocalNumBlocks);

@ -115,10 +115,10 @@ void SetFilter(FilterType& filter,
filter.SetSeeds(seedArray);
filter.SetActiveField(fieldName);
filter.SetUseThreadedAlgorithm(useThreaded);
// if (useAsyncComm)
// filter.SetUseAsynchronousCommunication();
// else
// filter.SetUseSynchronousCommunication();
if (useAsyncComm)
filter.SetUseAsynchronousCommunication();
else
filter.SetUseSynchronousCommunication();
if (useBlockIds)
filter.SetBlockIDs(blockIds);