vtk-m/vtkm/worklet
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
..
internal Perform less unnecessary copies when deducing a worklets parameters. 2016-01-19 09:20:49 -05:00
splatkernels Rename kernels directory to splatkernels to avoid confusion 2015-09-15 19:46:53 +02:00
testing Fix issues with Field constructor overloads 2016-01-21 13:54:05 -07:00
AverageByKey.h Add ArrayHandleIndex class. 2015-09-14 22:11:09 -06:00
CellAverage.h Add convenience tags like FieldInPoint, FieldInCell, to WorkletMapPointToCell 2015-10-23 09:50:48 -04:00
Clip.h Update Clip worklets to work with more types 2015-11-12 10:28:22 -05:00
CMakeLists.txt Merge topic 'marching-cubes' 2015-12-03 14:54:02 -05:00
DispatcherMapField.h Perform less unnecessary copies when deducing a worklets parameters. 2016-01-19 09:20:49 -05:00
DispatcherMapTopology.h Perform less unnecessary copies when deducing a worklets parameters. 2016-01-19 09:20:49 -05:00
ExternalFaces.h Turn off the benchmarking ExternalsFaces. 2016-01-14 15:56:10 -05:00
FieldHistogram.h Attempt to fix compiler errors and warnings. 2015-10-01 15:08:36 -06:00
FieldStatistics.h Attempt to fix compiler errors and warnings. 2015-10-01 15:08:36 -06:00
KernelSplatter.h Rename kernels directory to splatkernels to avoid confusion 2015-09-15 19:46:53 +02:00
Magnitude.h Restrict the Magnitude worklet signature to vectors of 3 components. 2015-08-31 22:49:53 -04:00
MarchingCubes.h Generalize MarchingCubes input with additional template parameters. 2016-01-08 14:56:10 -05:00
MarchingCubesDataTables.h Move marching cubes edge table out of the worklet. 2015-12-02 15:33:52 -05:00
PointElevation.h Have CoordinateSystem inherit from Field 2015-08-25 14:38:41 -06:00
ScatterCounting.h MarchingCubes is now able to not generate normals. 2016-01-08 10:42:49 -05:00
ScatterIdentity.h Adding ScatterCounting 2015-11-06 18:05:20 -07:00
ScatterUniform.h Change tetrahedralize filters to use new Scatter mechanism 2015-11-07 04:57:16 -07:00
StreamLineUniformGrid.h Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
TetrahedralizeExplicitGrid.h Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
TetrahedralizeUniformGrid.h Simplify and unify cast interface. 2016-01-18 15:58:04 -07:00
Threshold.h Threshold worklet is not templated on device adapter. 2016-01-14 15:55:22 -05:00
VertexClustering.h VertexClustering worklet is not templated on device adapter. 2016-01-14 15:42:27 -05:00
WorkletMapField.h Add in-place (in-out) arrays to worklets. 2015-08-12 14:41:56 -06:00
WorkletMapTopology.h Add WorkletMapCellToPoint class 2016-01-20 16:16:58 -07:00