vtk-m2/vtkm
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
..
cont Fix potential warning in AverageByKey 2018-11-27 09:31:23 -07:00
exec Add better queries to vtkm::exec::arg::BoundaryState 2018-11-13 22:45:06 -06:00
filter Add tests for rectilinear and explicit datasets. Remove a commented-out line. 2018-11-06 16:39:56 -05:00
internal Initial implementation of general logging. 2018-10-02 11:37:55 -04:00
interop At runtime TryExecute supports a specific deviceId to execute on. 2018-08-07 17:22:18 -04:00
io Add std::string constructor to VTKDataSetReader. 2018-08-23 11:50:55 -04:00
rendering Correct rendering warning of a 64bit to 32bit conversion 2018-11-19 14:20:45 -05:00
testing Merge worklet testing executables into a device dependent shared library 2018-11-23 10:13:56 -05:00
thirdparty Misc. typos 2018-10-04 10:30:33 -04:00
worklet Fix potential warning in AverageByKey 2018-11-27 09:31:23 -07:00
.gitattributes taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
Assert.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
BaseComponent.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
BinaryOperators.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
BinaryPredicates.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
Bitset.h Add a split sharp edge worklet and filter 2018-10-09 15:33:47 -04:00
Bounds.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
CellShape.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
CellTraits.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
CMakeLists.txt Add a split sharp edge worklet and filter 2018-10-09 15:33:47 -04:00
Flags.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
Geometry.h Add vtkm/Geometry.h and test it. 2018-06-20 11:58:14 -04:00
Geometry.hxx Add vtkm/Geometry.h and test it. 2018-06-20 11:58:14 -04:00
GhostCell.h Add new files for ghost cells 2018-09-06 11:39:04 -04:00
Hash.h vtkm::Hash now doesn't warn when compiling with 32bit ids. 2018-09-13 13:15:29 -04:00
ImplicitFunction.h Mark classes that should not be derived from as final. 2018-06-15 10:49:59 -04:00
ListTag.h Misc. typos 2018-08-07 17:50:41 -04:00
Math.h Add vtkm/Geometry.h and test it. 2018-06-20 11:58:14 -04:00
Math.h.in Add vtkm/Geometry.h and test it. 2018-06-20 11:58:14 -04:00
Matrix.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
NewtonsMethod.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
Pair.h Make pair construction rvalue-friendly. 2018-07-02 14:48:06 -04:00
Range.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
RangeId3.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
RangeId.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
StaticAssert.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
Swap.h Use thrust::swap for vtkm::Swap in CUDA device code. 2018-06-11 12:27:54 -04:00
TopologyElementTag.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
Transform3D.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
TypeListTag.h Fix vtk-m warnings on static osx builds. 2018-09-13 09:15:25 -04:00
Types.h constexpr construction for Vec classes 2018-06-20 14:15:29 -04:00
TypeTraits.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
UnaryPredicates.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
VecAxisAlignedPointCoordinates.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
VecFromPortal.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
VecFromPortalPermute.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
VectorAnalysis.h Add vtkm/Geometry.h and test it. 2018-06-20 11:58:14 -04:00
VecTraits.h Add bool to supported types for VecTraits 2018-08-06 13:10:05 -04:00
VecVariable.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
Version.h.in taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00
VirtualObjectBase.h taotuple 2018-06-05 (ae493658) 2018-06-05 12:24:07 -04:00