From 2ab1594ad1cf1b271cca15162e3c6826e0bcf84b Mon Sep 17 00:00:00 2001 From: Manish Mathai Date: Sun, 15 Aug 2021 01:37:04 -0400 Subject: [PATCH] Fix typo --- benchmarking/BenchmarkInSitu.cxx | 21 +-------------------- vtkm/source/PerlinNoise.h | 2 +- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/benchmarking/BenchmarkInSitu.cxx b/benchmarking/BenchmarkInSitu.cxx index cd7d1fa30..b198de949 100644 --- a/benchmarking/BenchmarkInSitu.cxx +++ b/benchmarking/BenchmarkInSitu.cxx @@ -15,7 +15,6 @@ #include -#include #include #include #include @@ -267,7 +266,7 @@ DataSetType RunContourHelper(vtkm::filter::Contour& filter, // Set up some equally spaced contours, with the min/max slightly inside the // scalar range: const vtkm::Range scalarRange = - vtkm::cont::ArrayGetValue(0, vtkm::cont::FieldRangeCompute(input, PointScalarsName)); + vtkm::cont::FieldRangeCompute(input, PointScalarsName).ReadPortal().Get(0); const auto step = scalarRange.Length() / static_cast(numIsoVals + 1); const auto minIsoVal = scalarRange.Min + (step * 0.5f); filter.SetNumberOfIsoValues(numIsoVals); @@ -809,24 +808,6 @@ struct Arg : vtkm::cont::internal::option::Arg return vtkm::cont::internal::option::ARG_ILLEGAL; } } - - static vtkm::cont::internal::option::ArgStatus Required( - const vtkm::cont::internal::option::Option& option, - bool msg) - { - if ((option.arg != nullptr) && (option.arg[0] != '\0')) - { - return vtkm::cont::internal::option::ARG_OK; - } - else - { - if (msg) - { - std::cerr << "Option " << option.name << " requires an argument." << std::endl; - } - return vtkm::cont::internal::option::ARG_ILLEGAL; - } - } }; enum OptionIndex diff --git a/vtkm/source/PerlinNoise.h b/vtkm/source/PerlinNoise.h index 5a53dd046..3f54503a9 100644 --- a/vtkm/source/PerlinNoise.h +++ b/vtkm/source/PerlinNoise.h @@ -58,4 +58,4 @@ private: } //namespace source } //namespace vtkm -#endif //vtk_m_source_Tangle_h +#endif //vtk_m_source_PerlinNoise_h