Fixing issues after rebasing

This commit is contained in:
Abhishek Yenpure 2023-06-23 17:08:07 -07:00
parent 0b76f44c8d
commit e6545f0ca4
6 changed files with 9 additions and 9 deletions

@ -83,7 +83,7 @@ private:
}
vtkm::filter::flow::internal::ParticleAdvector<DSIType> pav(
boundsMap, dsi, this->UseThreadedAlgorithm);
boundsMap, dsi, this->UseThreadedAlgorithm, this->UseAsynchronousCommunication);
vtkm::cont::ArrayHandle<ParticleType> particles;
this->Seeds.AsArrayHandle(particles);

@ -102,7 +102,7 @@ private:
analysis);
}
vtkm::filter::flow::internal::ParticleAdvector<DSIType> pav(
boundsMap, dsi, this->UseThreadedAlgorithm);
boundsMap, dsi, this->UseThreadedAlgorithm, this->UseAsynchronousCommunication);
vtkm::cont::ArrayHandle<ParticleType> particles;
this->Seeds.AsArrayHandle(particles);

@ -37,7 +37,7 @@ public:
AdvectAlgorithmThreaded(const vtkm::filter::flow::internal::BoundsMap& bm,
std::vector<DSIType>& blocks,
bool useAsyncComm)
: AdvectAlgorithm<DSIType>(bm, blocks)
: AdvectAlgorithm<DSIType>(bm, blocks, useAsyncComm)
, Done(false)
, WorkerActivate(false)
{

@ -111,7 +111,7 @@ public:
vtkm::FloatDefault stepSize)
{
auto copyFlag = (this->CopySeedArray ? vtkm::CopyFlag::On : vtkm::CopyFlag::Off);
auto seedArray = vtkm::cont::make_ArrayHandle(block.V, copyFlag);
auto seedArray = vtkm::cont::make_ArrayHandle(block.Particles, copyFlag);
using AdvectionHelper =
detail::AdvectHelperSteadyState<ParticleType, FieldType, TerminationType, AnalysisType>;

@ -128,7 +128,7 @@ public:
vtkm::FloatDefault stepSize)
{
auto copyFlag = (this->CopySeedArray ? vtkm::CopyFlag::On : vtkm::CopyFlag::Off);
auto seedArray = vtkm::cont::make_ArrayHandle(block.V, copyFlag);
auto seedArray = vtkm::cont::make_ArrayHandle(block.Particles, copyFlag);
using AdvectionHelper =
detail::AdvectHelperUnsteadyState<ParticleType, FieldType, TerminationType, AnalysisType>;

@ -37,8 +37,8 @@ public:
const bool& useAsyncComm)
: Blocks(blocks)
, BoundsMap(bm)
, UseAsynchronousCommunication(useAsyncComm)
, UseThreadedAlgorithm(useThreaded)
, UseAsynchronousCommunication(useAsyncComm)
{
}
@ -62,15 +62,15 @@ private:
vtkm::cont::PartitionedDataSet RunAlgo(const vtkm::cont::ArrayHandle<ParticleType>& seeds,
vtkm::FloatDefault stepSize)
{
AlgorithmType algo(this->BoundsMap, this->Blocks);
AlgorithmType algo(this->BoundsMap, this->Blocks, this->UseAsynchronousCommunication);
algo.Execute(seeds, stepSize);
return algo.GetOutput();
}
vtkm::filter::flow::internal::BoundsMap BoundsMap;
bool UseAsynchronousCommunication = true;
std::vector<DSIType> Blocks;
vtkm::filter::flow::internal::BoundsMap BoundsMap;
bool UseThreadedAlgorithm;
bool UseAsynchronousCommunication = true;
};
}