vtk-m/vtkm/worklet
Kenneth Moreland 6ebc3ea761 Fix potential warning in AverageByKey
To get the average, we (of course) divide the sum by the amount of
values, which is returned from valuesIn.GetNumberOfComponents(). To do
this, we need to cast the number of components (returned as a
vtkm::IdComponent) to a FieldType. This is a little more complex than it
first seems because FieldType might be a Vec type. If you just try a
static_cast<FieldType>(), it will use the constructor to FieldType which
might be a Vec constructor expecting the type of the component. This in
turn could cause a warning because the vtkm::IdComponent is implicitly
converted to the Vec's component type.

Get around this problem by first casting to the component type of the
field and then constructing a field value from that.
2018-11-27 09:31:23 -07:00
..
colorconversion removing some entries from test build exclusion (colors) 2018-11-01 09:45:57 -07:00
connectivities Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
contour MarchingCubes now uses Gradient fast paths when possible. 2017-09-25 14:25:28 -04:00
contourtree Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
contourtree_augmented Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
cosmotools Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
gradient Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
histogram Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
internal Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
particleadvection particleadvection was missing ::template causing VS2015 failures 2018-10-17 10:53:19 -04:00
spatialstructure Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
splatkernels VTK-m device side math functions need to use the vtkm:: wrappers 2018-10-18 13:57:53 -04:00
testing Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
tetrahedralize Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
triangulate Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
wavelets Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
AverageByKey.h Fix potential warning in AverageByKey 2018-11-27 09:31:23 -07:00
CellAverage.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
CellDeepCopy.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
CellMeasure.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
Clip.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
CMakeLists.txt add subdirectory for colorconversion 2018-11-01 09:25:10 -07:00
ContourTreeUniform.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
ContourTreeUniformAugmented.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
CoordinateSystemTransform.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
CosmoTools.h Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
CrossProduct.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
DispatcherMapField.h Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
DispatcherMapTopology.h Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
DispatcherPointNeighborhood.h Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
DispatcherReduceByKey.h Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
DispatcherStreamingMapField.h Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
DotProduct.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
ExternalFaces.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
ExtractGeometry.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
ExtractPoints.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
ExtractStructured.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
FieldEntropy.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
FieldHistogram.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
FieldStatistics.h Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
Gradient.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
Invoker.h Add an easier way to launch vtkm worklets 2018-09-04 15:01:18 -04:00
KdTree3D.h Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
KernelSplatter.h Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
Keys.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
Magnitude.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
MarchingCubes.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
Mask.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
MaskPoints.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
NDimsEntropy.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
NDimsHistMarginalization.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
NDimsHistogram.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
Normalize.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
OscillatorSource.h Add a point-oscillator filter + example 2018-07-18 09:33:06 -04:00
ParticleAdvection.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
PointAverage.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
PointElevation.h Change function signatures to use 'using' aliases. 2018-05-25 17:18:41 -04:00
PointTransform.h Adding PointTransform filter and updating PointTranform worklet. 2018-06-14 12:23:22 -04:00
Probe.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
RemoveUnusedPoints.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
ScalarsToColors.h Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
ScalarsToColors.hxx Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
ScatterCounting.h Make DispatcherBase invoke using a TryExecute 2018-08-29 19:18:54 -07:00
ScatterIdentity.h vtkm prefers 'using' over typedef. 2018-02-23 10:47:20 -05:00
ScatterPermutation.h Update copyright for Sandia 2017-09-20 15:33:44 -06:00
ScatterUniform.h Move Scatter from Worklet to Dispatcher 2018-04-27 00:43:51 -04:00
SplitSharpEdges.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
StableSortIndices.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
StreamLineUniformGrid.h Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
SurfaceNormals.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
Tetrahedralize.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
Threshold.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
ThresholdPoints.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
Triangulate.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
VertexClustering.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
WarpScalar.h Add ability to customize filter policy to auxiliary input fields 2018-10-31 23:51:36 +01:00
WarpVector.h Remove TryExecute from filters 2018-10-16 15:59:53 -06:00
WaveletCompressor.h Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
WaveletGenerator.h Fix off-by-one error in WaveletGen extents. 2018-08-21 14:21:42 -04:00
WorkletMapField.h Add an easier way to launch vtkm worklets 2018-09-04 15:01:18 -04:00
WorkletMapTopology.h Add an easier way to launch vtkm worklets 2018-09-04 15:01:18 -04:00
WorkletPointNeighborhood.h Add an easier way to launch vtkm worklets 2018-09-04 15:01:18 -04:00
WorkletReduceByKey.h Add an easier way to launch vtkm worklets 2018-09-04 15:01:18 -04:00