From 9b0379722a5627c97f66464fef51f19351893f83 Mon Sep 17 00:00:00 2001 From: Dave Pugmire Date: Mon, 25 Jul 2022 10:01:13 -0400 Subject: [PATCH] Fix example code. --- examples/particle_advection/ParticleAdvection.cxx | 4 ++-- examples/streamline_mpi/StreamlineMPI.cxx | 9 ++++----- examples/temporal_advection/TemporalAdvection.cxx | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/examples/particle_advection/ParticleAdvection.cxx b/examples/particle_advection/ParticleAdvection.cxx index e2e4a1695..eff3b1224 100644 --- a/examples/particle_advection/ParticleAdvection.cxx +++ b/examples/particle_advection/ParticleAdvection.cxx @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include @@ -74,7 +74,7 @@ int main(int argc, char** argv) auto seedArray = vtkm::cont::make_ArrayHandle(seeds, vtkm::CopyFlag::Off); //compute streamlines - vtkm::filter::Streamline streamline; + vtkm::filter::flow::Streamline streamline; streamline.SetStepSize(stepSize); streamline.SetNumberOfSteps(numSteps); diff --git a/examples/streamline_mpi/StreamlineMPI.cxx b/examples/streamline_mpi/StreamlineMPI.cxx index 2cc2ffe8a..ac204800f 100644 --- a/examples/streamline_mpi/StreamlineMPI.cxx +++ b/examples/streamline_mpi/StreamlineMPI.cxx @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -24,9 +23,9 @@ #include -#include -#include -#include +#include +#include +#include void LoadData(std::string& fname, std::vector& dataSets, int rank, int nRanks) @@ -99,7 +98,7 @@ int main(int argc, char** argv) std::vector dataSets; LoadData(dataFile, dataSets, rank, size); - vtkm::filter::ParticleAdvection pa; + vtkm::filter::flow::ParticleAdvection pa; vtkm::cont::ArrayHandle seedArray; seedArray = vtkm::cont::make_ArrayHandle({ vtkm::Particle(vtkm::Vec3f(.1f, .1f, .9f), 0), diff --git a/examples/temporal_advection/TemporalAdvection.cxx b/examples/temporal_advection/TemporalAdvection.cxx index d4501f475..7f99698a3 100644 --- a/examples/temporal_advection/TemporalAdvection.cxx +++ b/examples/temporal_advection/TemporalAdvection.cxx @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include @@ -91,7 +91,7 @@ int main(int argc, char** argv) // Instantiate the filter by providing necessary parameters. // Necessary parameters are : - vtkm::filter::Pathline pathlineFilter; + vtkm::filter::flow::Pathline pathlineFilter; pathlineFilter.SetActiveField(fieldName); // 1. The current and next time slice. The current time slice is passed // through the parameter to the Execute method.