From 7f9b54a31a92d8f4df7c752f47970ce074c459c3 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Tue, 7 Aug 2018 17:50:41 -0400 Subject: [PATCH] Misc. typos Found via `codespell -q 3` --- vtkm/ListTag.h | 2 +- vtkm/cont/BoundingIntervalHierarchy.hxx | 6 +++--- vtkm/cont/testing/UnitTestAlgorithm.cxx | 2 +- vtkm/filter/NDHistogram.h | 2 +- vtkm/rendering/Camera.h | 2 +- vtkm/rendering/raytracing/Worklets.h | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/vtkm/ListTag.h b/vtkm/ListTag.h index b78691280..b916844c1 100644 --- a/vtkm/ListTag.h +++ b/vtkm/ListTag.h @@ -82,7 +82,7 @@ struct ListTagAppend : detail::ListRoot }; /// Append \c Type to \c ListTag only if \c ListTag does not already contain \c Type. -/// No checks are performed to see if \c ListTag itself has only unqiue elements. +/// No checks are performed to see if \c ListTag itself has only unique elements. template struct ListTagAppendUnique : detail::ListRoot { diff --git a/vtkm/cont/BoundingIntervalHierarchy.hxx b/vtkm/cont/BoundingIntervalHierarchy.hxx index feb191627..7fe50df45 100644 --- a/vtkm/cont/BoundingIntervalHierarchy.hxx +++ b/vtkm/cont/BoundingIntervalHierarchy.hxx @@ -223,7 +223,7 @@ BoundingIntervalHierarchy::CalculateSplitScatterIndices(const IdArrayHandle& cel // if point is to the left, // index = total number in previous segments + total number of false flags in this segment + total number of trues in previous segment // else - // index = total number in previous segments + number of falses preceeding it in the segment. + // index = total number in previous segments + number of falses preceding it in the segment. IdArrayHandle scatterIndices; vtkm::worklet::DispatcherMapField() .Invoke(leqFlags, @@ -251,7 +251,7 @@ public: VTKM_CONT bool operator()(DeviceAdapter) { VTKM_IS_DEVICE_ADAPTER_TAG(DeviceAdapter); - // Accomodate into a Functor, so that this could be used with TryExecute + // Accommodate into a Functor, so that this could be used with TryExecute using Algorithms = typename vtkm::cont::DeviceAdapterAlgorithm; vtkm::cont::DynamicCellSet cellSet = Self->GetCellSet(); @@ -412,7 +412,7 @@ public: //PRINT_TIMER("4.2", s42); //START_TIMER(s43); - // Make a new nodes with enough nodes for the currnt level, copying over the old one + // Make a new nodes with enough nodes for the current level, copying over the old one vtkm::Id nodesSize = Self->Nodes.GetNumberOfValues() + numSegments; vtkm::cont::ArrayHandle newTree; newTree.Allocate(nodesSize); diff --git a/vtkm/cont/testing/UnitTestAlgorithm.cxx b/vtkm/cont/testing/UnitTestAlgorithm.cxx index 0174b7c83..fe3eb6263 100644 --- a/vtkm/cont/testing/UnitTestAlgorithm.cxx +++ b/vtkm/cont/testing/UnitTestAlgorithm.cxx @@ -28,7 +28,7 @@ namespace { // The goal of this unit test is not to verify the correctness // of the various algorithms. Since Algorithm is a header, we -// need to ensure we instatiate each algorithm in a source +// need to ensure we instantiate each algorithm in a source // file to verify compilation. // static constexpr vtkm::Id ARRAY_SIZE = 10; diff --git a/vtkm/filter/NDHistogram.h b/vtkm/filter/NDHistogram.h index 3a328a0bd..77683ee00 100644 --- a/vtkm/filter/NDHistogram.h +++ b/vtkm/filter/NDHistogram.h @@ -32,7 +32,7 @@ namespace filter /// it would generate a N-Dims histogram from input fields. The result is stored /// in a field named as "Frequency". This filed contains all the frequencies of /// the N-Dims histogram in sparse representation. That being said, the result -/// field does not store 0 frequency bins. Meanwhile all input fileds now +/// field does not store 0 frequency bins. Meanwhile all input fields now /// would have the same length and store bin ids instead. /// E.g. (FieldA[i], FieldB[i], FieldC[i], Frequency[i]) is a bin in the histogram. /// The first three numbers are binIDs for FieldA, FieldB and FieldC. Frequency[i] stores diff --git a/vtkm/rendering/Camera.h b/vtkm/rendering/Camera.h index aea6b524d..2ce17ebbd 100644 --- a/vtkm/rendering/Camera.h +++ b/vtkm/rendering/Camera.h @@ -472,7 +472,7 @@ public: /// \brief Move the camera toward or away from the focal point. /// - /// Specifically, this divides the camera's distnace from the focal point + /// Specifically, this divides the camera's distance from the focal point /// (LookAt) by the given value. Use a value greater than one to dolly in /// toward the focal point, and use a value less than one to dolly-out away /// from the focal point. diff --git a/vtkm/rendering/raytracing/Worklets.h b/vtkm/rendering/raytracing/Worklets.h index 48aa3534d..b4158600a 100644 --- a/vtkm/rendering/raytracing/Worklets.h +++ b/vtkm/rendering/raytracing/Worklets.h @@ -144,7 +144,7 @@ public: else outValue = static_cast(0); } -}; //class doube mask +}; //class double mask struct MaxValue {