Commit Graph

1121 Commits

Author SHA1 Message Date
Li-Ta Lo
1b028ab612 delete unused worklet unit test 2022-01-26 13:51:21 -07:00
Li-Ta Lo
175f9010a5 Merge branch 'master' into new_contour 2022-01-26 13:43:46 -07:00
Li-Ta Lo
0270367004 use CastAndCallScalarField 2022-01-25 12:18:15 -07:00
Li-Ta Lo
2540fb1b27 Merge branch 'master' into new_connected_components 2022-01-25 10:15:57 -07:00
Kenneth Moreland
ab86763c74 Merge topic 'cast-and-call-field'
32507a510 Update CrossProduct filter to new filter base class
72065024a Add CastAndCallScalarField and CastAndCallVecField to NewFilterField

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Merge-request: !2681
2022-01-25 10:28:55 -05:00
Kenneth Moreland
ff43a2efa5 Merge topic 'universal-dot-product-filter'
0c47645ba Remove DotProduct from worklet directory
d76929a78 Allow dot product to work with any field type

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2682
2022-01-25 10:11:05 -05:00
Kenneth Moreland
32507a5109 Update CrossProduct filter to new filter base class
This also provides a good opportunity to demonstrate and test the
CastAndCallVecField method of the new filter classes.
2022-01-25 07:23:48 -07:00
Kenneth Moreland
d76929a788 Allow dot product to work with any field type
The previous implementation of the `DotProduct` filter only worked with
arrays containing "common" types. The filter has been updated to use the
extract component feature of `UnknownArrayHandle` to support computing
the dot product of arrays of almost any type.
2022-01-24 15:02:20 -07:00
Kenneth Moreland
72065024aa Add CastAndCallScalarField and CastAndCallVecField to NewFilterField
These methods somewhat simplify doing the `CastAndCall` from an
`UnknownArrayhandle` that comes from an input field.

The motivation for this change is for the User's guide, where I am
having a chicken-and-egg problem of wanting to describe how to make a
simple filter implementation without having to go into details about
`UnknownArrayHandle`.
2022-01-24 14:18:53 -07:00
Kenneth Moreland
170a10e4b4 Fix slow ArrayCopy calls
The `ArrayCopy` method has been changed to be precompiled. It handles
most standard array types. But there are some special `ArrayHandle`
types that are not correctly handled, and these go to a slow fallback.
Find places in the code that use that fallback and fix them.

There are also some instances of replacing an `ArrayHandleCounting` with
an `ArrayHandleIndex`. This change is probably not strictly necessary to
make the `ArrayCopy` faster, but when it can be used `ArrayHandleIndex`
is generally better.
2022-01-24 14:15:45 -07:00
Kenneth Moreland
63c45efc04 GenerateIds filter does not require device compiler 2022-01-24 14:05:58 -07:00
Kenneth Moreland
aefc753329 Implement permutation mapping in vtkm_cont
There was a precompiled version of mapping permutations in the
filter library. However, there are reasons to be able to copy
a permutation of an array outside of filters. So add the
capability to the more general filter library.
2022-01-24 12:17:23 -07:00
Li-Ta Lo
578f980ac4 Merge branch 'master' into new_connected_components
# Conflicts:
#	vtkm/filter/CMakeLists.txt
#	vtkm/filter/testing/CMakeLists.txt
2022-01-24 12:11:33 -07:00
Li-Ta Lo
af37ecd54d make fields associate with mesh 2022-01-24 09:19:24 -07:00
Li-Ta Lo
ee1b752e8e Merge branch 'master' into new_connected_components 2022-01-22 10:12:25 -07:00
Li-Ta Lo
71ec80a3bd Merge branch 'master' into density_estimate 2022-01-22 09:07:52 -07:00
Li-Ta Lo
ac6a93003d minor update based on code review 2022-01-22 08:39:10 -07:00
Li-Ta Lo
61e2a620a9 document why a .ResetCellSetList is necessary 2022-01-20 15:17:18 -07:00
Kenneth Moreland
ced89bb396 Move internal functions into top level anonymous namespace 2022-01-20 15:16:03 -07:00
Li-Ta Lo
e8278094f9 migrate Mask
tidy up language and library usage

update benchmark
2022-01-20 15:14:37 -07:00
Li-Ta Lo
679f1b00e9 migrate GhostCellRemove and Threshold 2022-01-20 15:10:22 -07:00
Li-Ta Lo
7e08f4fb1b Migrate ExtractStructured
DoMapField

add back deprecated ExtractStructured.h
2022-01-20 15:10:20 -07:00
Li-Ta Lo
e3703b09cf migrate ExtractGeometry 2022-01-20 15:02:59 -07:00
Li-Ta Lo
1d3c387936 add ALL_BACKENDS 2022-01-19 13:55:42 -07:00
Li-Ta Lo
5f9ee86f28 migrate particle density filters 2022-01-19 10:34:43 -07:00
Li-Ta Lo
271e023354 migrate Entropy and ND filters 2022-01-19 07:20:48 -07:00
Li-Ta Lo
c4a7444b02 migrate Histogram filter 2022-01-17 09:18:42 -07:00
Li-Ta Lo
de66d93d05 Add ALL_BACKENDS 2022-01-16 14:13:10 -07:00
Li-Ta Lo
77650a9ca0 migrate connected components filters 2022-01-16 12:15:03 -07:00
Li-Ta Lo
5e991e4bf4 Merge branch 'master' into new_contour
# Conflicts:
#	benchmarking/BenchmarkFilters.cxx
#	vtkm/filter/CMakeLists.txt
#	vtkm/filter/clean_grid/CMakeLists.txt
#	vtkm/filter/clean_grid/CleanGrid.cxx
#	vtkm/filter/clean_grid/testing/CMakeLists.txt
#	vtkm/filter/clean_grid/testing/UnitTestCleanGrid.cxx
#	vtkm/filter/contour/testing/RenderTestContourFilter.cxx
#	vtkm/filter/contour/testing/UnitTestContourFilter.cxx
#	vtkm/filter/entity_extraction/CMakeLists.txt
#	vtkm/filter/entity_extraction/ExternalFaces.cxx
#	vtkm/filter/entity_extraction/ExtractPoints.cxx
#	vtkm/filter/entity_extraction/MaskPoints.cxx
#	vtkm/filter/entity_extraction/ThresholdPoints.cxx
#	vtkm/filter/testing/CMakeLists.txt
#	vtkm/filter/testing/UnitTestMultiBlockFilter.cxx
#	vtkm/worklet/testing/UnitTestOrientNormals.cxx
2022-01-14 13:31:01 -07:00
Li-Ta Lo
36fbc019a6 prevent shadowing for older GCC 2022-01-13 13:30:35 -07:00
Li-Ta Lo
63b9b12755 MapperWireframer.cxx really should include Algorithm.h 2022-01-13 11:14:48 -07:00
Li-Ta Lo
fa0905e3e5 migrate clean_grid and extract_entity filters 2022-01-13 11:14:48 -07:00
Li-Ta Lo
0a04eab5fe remove bogus .template 2022-01-11 09:07:56 -07:00
Li-Ta Lo
4eefdb3325 migrate ClipWithImplicitFunction 2022-01-11 05:58:47 -07:00
Li-Ta Lo
3c700259a1 migrate Contour, ClipWithField and Slice 2022-01-10 20:39:43 -07:00
Li-Ta Lo
a8d664da28 link vtkm_filter_common against vtkm_filter_core 2022-01-07 11:45:48 -07:00
Li-Ta Lo
66158dcc59 link vtkm_filter_core against vtkm_worklet 2022-01-07 11:38:35 -07:00
Li-Ta Lo
621d637f4c add missing install .h 2022-01-07 11:17:45 -07:00
Li-Ta Lo
124b000b5a fixed segfault due to infinite loop 2022-01-07 11:02:30 -07:00
Li-Ta Lo
7b27727f4f CORE rather than COMMON EXPORT 2022-01-06 16:12:31 -07:00
Li-Ta Lo
27e85d50cb Map*.cxx need device compiler 2022-01-06 16:09:24 -07:00
Li-Ta Lo
0511f52061 add one layer of namepsace 2022-01-06 15:55:01 -07:00
Li-Ta Lo
bff92a7d88 reenable All_BACKENDS 2022-01-06 15:17:45 -07:00
Li-Ta Lo
f5bbc6fc83 migrate clean_grid and extract_entity filters 2022-01-06 14:52:27 -07:00
Li-Ta Lo
e5639b1f91 Merge topic 'NewFilter'
0801b2423 add newline
c9b8a31b5 add NewFilterField.cxx so EXPORT_CORE would work
548df8436 add CORE_EXPORT
9ff52a98c Set default ActiveCoordinateSystemIndex to 0.
90992406f Merge branch 'NewFilter' of gitlab.kitware.com:ollielo/vtk-m into NewFilter
4a63b745a uniform treatment of primary/secondary field/coordinate_system
6461857e4 Merge branch 'master' into NewFilter
3720006d0 change based on code review
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2648
2022-01-06 09:31:25 -05:00
Li-Ta Lo
0801b24233 add newline 2022-01-05 14:40:10 -07:00
Li-Ta Lo
c9b8a31b5d add NewFilterField.cxx so EXPORT_CORE would work 2022-01-05 14:39:18 -07:00
Li-Ta Lo
548df84369 add CORE_EXPORT 2022-01-05 13:20:19 -07:00
Li-Ta Lo
9ff52a98c7 Set default ActiveCoordinateSystemIndex to 0. 2022-01-05 11:52:23 -05:00