mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Remove warning. Add BoundsMap methods.
This commit is contained in:
parent
d79b2cb5be
commit
b8e9ca4ca5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user