Bug fix when pathline rank has 0 ds.

This commit is contained in:
dpugmire 2021-02-05 15:57:18 -05:00
parent 6608a38eef
commit 6367e46804
2 changed files with 1 additions and 7 deletions

@ -48,16 +48,11 @@ inline VTKM_CONT vtkm::cont::PartitionedDataSet Pathline::PrepareForExecution(
throw vtkm::cont::ErrorFilterExecution("Coordinate system as field not supported");
if (this->Seeds.GetNumberOfValues() == 0)
throw vtkm::cont::ErrorFilterExecution("No seeds provided.");
if (this->NextDataSet.GetNumberOfPartitions() != input.GetNumberOfPartitions())
throw vtkm::cont::ErrorFilterExecution("Number of partitions do not match");
if (!(this->PreviousTime < this->NextTime))
throw vtkm::cont::ErrorFilterExecution("Previous time must be less than Next time.");
if (this->NextDataSet.GetNumberOfPartitions() == 0)
return vtkm::cont::PartitionedDataSet();
std::string activeField = this->GetActiveFieldName();
vtkm::filter::particleadvection::BoundsMap boundsMap(input);
using DSIType = vtkm::filter::particleadvection::TemporalDataSetIntegrator;

@ -403,8 +403,7 @@ void TestPartitionedDataSet(vtkm::Id nPerRank, bool useGhost, FilterType fType,
void TestStreamlineFiltersMPI()
{
std::vector<bool> flags = { true, false };
//std::vector<FilterType> filterTypes = { PARTICLE_ADVECTION, STREAMLINE, PATHLINE };
std::vector<FilterType> filterTypes = { STREAMLINE, PATHLINE };
std::vector<FilterType> filterTypes = { PARTICLE_ADVECTION, STREAMLINE, PATHLINE };
for (int n = 1; n < 3; n++)
{