vtk-m/vtkm/worklet/testing
Kenneth Moreland f9750e83f7 Fix issues with Field constructor overloads
I ran into a few minor issues with the constructors to the Field class.

The big change I made was that I removed the Field constructors that
take an example type and create an empty field of that type. The problem
was that the example type was easily confused with some other type that
was supposed to describe an array. This lead to some odd behavior in the
compiler and resulted in errors in unexpected places.

The use case for this constructor is dubious. There were several tests
in the code that would create an empty field, add it to a data set, then
get it back out to pass to the worklet. The code is much simpler if you
just make an ArrayHandle of the right type and use that in the worklet
invoke directly. It is also faster to compile with smaller code because
the type is known statically (whereas it is lost the other way).

The other change was to declare references to ArrayHandle and
DynamicArrayHandle as const. There is nothing in the behavior that
invalidates the const, and it accepts arrays constructed in the
parameter.
2016-01-21 13:54:05 -07:00
..
CMakeLists.txt Change Regular to Uniform 2016-01-19 15:54:05 -07:00
UnitTestCellAverage.cxx Fix issues with Field constructor overloads 2016-01-21 13:54:05 -07:00
UnitTestClipping.cxx Change Regular to Uniform 2016-01-19 15:54:05 -07:00
UnitTestExternalFaces.cxx Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
UnitTestFieldHistogram.cxx Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
UnitTestFieldStatistics.cxx Change Regular to Uniform 2016-01-19 15:54:05 -07:00
UnitTestMarchingCubes.cxx Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
UnitTestPointElevation.cxx Fix issues with Field constructor overloads 2016-01-21 13:54:05 -07:00
UnitTestScatterCounting.cxx Adding ScatterCounting 2015-11-06 18:05:20 -07:00
UnitTestSplatKernels.cxx Rename kernels directory to splatkernels to avoid confusion 2015-09-15 19:46:53 +02:00
UnitTestStreamLineUniformGrid.cxx Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
UnitTestTetrahedralizeExplicitGrid.cxx Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
UnitTestTetrahedralizeUniformGrid.cxx Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
UnitTestThreshold.cxx Change Regular to Uniform 2016-01-19 15:54:05 -07:00
UnitTestVertexClustering.cxx Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
UnitTestWorkletMapField.cxx Extend vtkm::DeviceAdapterTraits to include a unique numeric identifier. 2015-12-16 11:18:52 -05:00
UnitTestWorkletMapFieldExecArg.cxx Extend vtkm::DeviceAdapterTraits to include a unique numeric identifier. 2015-12-16 11:18:52 -05:00
UnitTestWorkletMapFieldWholeArray.cxx Extend vtkm::DeviceAdapterTraits to include a unique numeric identifier. 2015-12-16 11:18:52 -05:00
UnitTestWorkletMapTopologyExplicit.cxx Fix issues with Field constructor overloads 2016-01-21 13:54:05 -07:00
UnitTestWorkletMapTopologyUniform.cxx Fix issues with Field constructor overloads 2016-01-21 13:54:05 -07:00