Commit Graph

11139 Commits

Author SHA1 Message Date
Kenneth Moreland
a87adb479f Merge topic 'safe-cuda-runtime-config' into release-2.1
f42f59d68 Fix crash when CUDA device is disabled

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Gunther Weber <ghweber@lbl.gov>
Merge-request: !3216
2024-05-17 08:20:38 -04:00
Kenneth Moreland
ff618152b3 Merge branch 'release-2.0' into release-2.1 2024-05-15 15:42:51 -04:00
Kenneth Moreland
af3ab951c4 Merge topic 'fix-old-cuda-atomics' into release-2.1
78e06d5dc Fix old cuda atomics

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3209
2024-05-15 15:42:51 -04:00
Kenneth Moreland
92b08967a2 Merge topic 'fix-old-cuda-atomics' into release-2.0
78e06d5dc Fix old cuda atomics

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3209
2024-05-15 15:42:51 -04:00
Kenneth Moreland
d26ac66dcb Merge topic 'intel-finites' into release-2.1
b93ee30ab Enable non-finite values with Intel compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Sujin Philip <sujin.philip@kitware.com>
Merge-request: !3213
2024-05-07 13:08:00 -04:00
Kenneth Moreland
f42f59d685 Fix crash when CUDA device is disabled
There was an issue where if VTK-m was compiled with CUDA support but then
run on a computer where no CUDA device was available, an inappropriate
exception was thrown (instead of just disabling the device). The
initialization code should now properly check for the existance of a CUDA
device.
2024-05-03 17:03:20 -04:00
Kenneth Moreland
5634a09b95 Merge topic 'extract-geometry-permutation' into release-2.1
49518e505 Fix bug with ExtractGeometry filter

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3215
2024-05-03 13:06:31 -04:00
Kenneth Moreland
49518e5054 Fix bug with ExtractGeometry filter
The `ExtractGeometry` filter was outputing datasets containing
`CellSetPermutation` as the representation for the cells. Although this is
technically correct and a very fast implementation, it is essentially
useless. The problem is that any downstream processing will have to know
that the data has a `CellSetPermutation`. None do (because the permutation
can be on any other cell set type, which creates an explosion of possible
cell types).

Like was done with `Threshold` a while ago, this problem is fixed by deep
copying the result into a `CellSetExplicit`. This behavior is consistent
with VTK.
2024-05-03 09:22:56 -04:00
Kenneth Moreland
b93ee30ab5 Enable non-finite values with Intel compiler
The Intel compiler by default turns on an optimization that assumes that
all floating point values are finite. This breaks any ligitimate uses of
non-finite values including checking values with functions like `isnan`
and `isinf`. Turn off this feature for the intel compiler.
2024-04-25 09:38:15 -04:00
Kenneth Moreland
78e06d5dcd Fix old cuda atomics
There are some overloads for atomic adds of floating point numbers for
older versions of cuda that do not include them directly. These were
misnamed and thus not properly overloading the generic implementation.
This caused compile errors with older versions of cuda.
2024-04-02 13:45:15 -04:00
Kenneth Moreland
3c9249871a Merge topic 'contour-int-isovalue' into release-2.1
8fc341e71 Allow floating-point isovalues for contours of integer fields

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3169
2024-01-02 11:28:56 -05:00
Kenneth Moreland
361fe5fe32 Merge topic 'type-order' into release-2.1
23fbedf54 Order the VTK scalar types to favor used types
053237e90 Favor base types used by VTK-m when making new basic array

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Merge-request: !3171
2023-12-18 13:57:31 -05:00
Kenneth Moreland
23fbedf54d Order the VTK scalar types to favor used types
Reorder the `VTKScalarTypes` to put the repeated types at the bottom.
This will avoid using types like `long` that are essentially the same as
other types (e.g. `long long`) but will still be considered different.
This causes problems when checking against some VTK types (such as
`vtkIdType`).
2023-12-17 22:56:09 -07:00
Kenneth Moreland
053237e900 Favor base types used by VTK-m when making new basic array
When calling `NewInstanceBasic` on an `UnknownArrayHandle`, all C base
types will be tried. In some cases, multiple type will match the same
array. When this happens, favor types used by VTK-m (e.g. `long long`
over `long`).
2023-12-17 22:49:54 -07:00
Kenneth Moreland
8fc341e716 Allow floating-point isovalues for contours of integer fields
The flying edges version of the contouring filter converted the isovalues
provided into the same type as the field. This is fine for a floating point
field, but for an integer field the isovalue was truncated to the nearest
integer.

This is problematic because it is common to provide a fractional isovalue
(usually N + 0.5) for integer fields to avoid degenerate cases of the
contour intersecting vertices. It also means the behavior changes between
an integer type that is directly supported (like a `signed char`) or an
integer type that is not directly supported and converted to a floating
point field (like potentially a `char`).

This change updates the worklets to allow the isovalue to have a different
type than the field and to always use a floating point type for the
isovalue.
2023-12-15 16:26:17 -07:00
Ben Boeckel
fb96349004 Merge topic 'loguru-install-interface' into release-2.1
14a276401 loguru: do not declare an install interface

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Vicente Bolea <vicente.bolea@kitware.com>
Merge-request: !3163
2023-12-04 12:44:14 -05:00
Ben Boeckel
14a276401b loguru: do not declare an install interface
The headers are not installed, so there's nothing to refer to.
2023-12-04 11:34:19 -05:00
Vicente Bolea
763293a97e Merge topic 'fix-rocthrust-dep' into release-2.1
c9ec6ae6a kokkos: let link vtkm_cont to roc::rocthrust

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3160
2023-11-30 22:08:36 -05:00
Vicente Adolfo Bolea Sanchez
c9ec6ae6a6 kokkos: let link vtkm_cont to roc::rocthrust
Also reorder the declarion of the option VTKm_ENABLE_KOKKOS_THRUST
to be set before calling VTKmDeviceAdapters.
2023-11-30 18:18:03 -05:00
Vicente Adolfo Bolea Sanchez
a057f62e75 2.1.0 is our 16th official release of VTK-m.
The major changes to VTK-m from (previous release) can be found in:
  docs/changelog/2.1/release-notes.md
v2.1.0
2023-11-29 12:51:18 -05:00
Vicente Adolfo Bolea Sanchez
3563d97460 release: update version and License 2023-11-29 12:47:23 -05:00
Sujin Philip
709961393f Merge topic 'fix-threshold-all-comps' into release-2.1
d825d2450 Add a regression test for issue #804
e0c5500a2 Simplify threshold worklet
6e1de4fa8 Fix threshold for any-point-all-components case

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !3143
2023-10-30 12:32:59 -04:00
Sujin Philip
d825d2450e Add a regression test for issue #804 2023-10-26 10:09:03 -04:00
Sujin Philip
e0c5500a22 Simplify threshold worklet
Removes code that is no longer used.
2023-10-24 08:43:53 -04:00
Sujin Philip
6e1de4fa8f Fix threshold for any-point-all-components case
Threshold was producing wrong results with options `SetAllInRange(false)` and
`SetComponentToTestToAll` because the logic of running
`worklet::Threshold::RunIncremental` on individual components of the input
field and combining the results is incorrect for this case.

With this fix, component modes 'Any' and 'All' are handled by applying
the threshold criteria to each component of each value of the field,
combining the results, and running the threshold worklet on the result
array.
2023-10-23 11:23:30 -04:00
Vicente Adolfo Bolea Sanchez
adf146a96e 2.1.0-rc2 is our 16th official release of VTK-m.
The major changes to VTK-m from 2.0.0 can be found in:
  docs/changelog/2.1/release-notes.md
v2.1.0-rc2
2023-10-18 18:27:15 -04:00
Vicente Adolfo Bolea Sanchez
599d8ff384 release: 2.1.0-rc2 release notes 2023-10-18 18:24:12 -04:00
Vicente Adolfo Bolea Sanchez
05e850fa85 release: update version and License 2023-10-18 18:18:57 -04:00
Vicente Bolea
4571db1249 Merge topic 'backport-3128' into release-2.1
2aa04d7c2 ci: fix ctest_memcheck args
2d47ba22b cmake: Add makefile against install test
1b0ea8af8 cmake: update vtkm.pc and vtkm_config.mk file

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3134
2023-09-11 21:52:46 -04:00
Vicente Adolfo Bolea Sanchez
2aa04d7c23 ci: fix ctest_memcheck args
(cherry picked from commit 1cd6be01c2586a2d567937c03a25ec23d1cda3c0)
2023-09-11 21:01:58 -04:00
Vicente Adolfo Bolea Sanchez
2d47ba22b7 cmake: Add makefile against install test
(cherry picked from commit 5612d26892f172d7e0285fb46f2bd4da2ae76dda)
2023-09-11 19:55:11 -04:00
Vicente Adolfo Bolea Sanchez
1b0ea8af8f cmake: update vtkm.pc and vtkm_config.mk file
(cherry picked from commit 0eb9b68c1e680ee0095341d97c16782b1d65cb08)
2023-09-11 19:55:05 -04:00
Sujin Philip
1e3cd818fb Merge topic 'fix-clip-centroid-points' into release-2.1
bda2d3d8e Clip: remap centroid interpolation points to used-only point

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Abhishek Yenpure <abhi.yenpure@kitware.com>
Merge-request: !3133
2023-09-07 10:15:41 -04:00
Sujin Philip
bda2d3d8e1 Clip: remap centroid interpolation points to used-only point
Previously, Clip was updated to remove unused points from the input.
This requires a re-mapping of point ids after compaction. This
re-mapping was missed for the points used for interpolation of centorid
points.
2023-09-04 10:51:47 -04:00
Kenneth Moreland
5652c9ad3a Merge topic 'flying-edges-cell-fields' into release-2.1
8a9887023 Add regression test for flying edges interpolating cell fields
4f19ac608 Fix interpolation of cell fields with flying edges

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3129
2023-08-31 10:28:32 -04:00
Kenneth Moreland
1be389b123 Merge topic 'fix-degenerates' into release-2.1
6e674ddea Fix degenerate polygon removal

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3126
2023-08-31 10:25:59 -04:00
Kenneth Moreland
8a98870231 Add regression test for flying edges interpolating cell fields 2023-08-30 13:12:55 -05:00
Kenneth Moreland
4f19ac6082 Fix interpolation of cell fields with flying edges
The flying edges algorithm (used when contouring uniform structured cell
sets) was not interpolating cell fields correctly. There was an indexing
issue where a shortcut in the stepping was not incrementing the cell index.
2023-08-30 09:25:55 -05:00
Vicente Bolea
7b53fdfa2d Merge topic 'correct-pkgconfig-include' into release-2.0
f4aa4de0f pkgconfig: fix include flags

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3127
2023-08-29 16:37:14 -04:00
Vicente Bolea
8c226675d8 Merge branch 'release-2.0' into release-2.1 2023-08-29 16:37:14 -04:00
Vicente Bolea
426625d901 Merge topic 'correct-pkgconfig-include' into release-2.1
f4aa4de0f pkgconfig: fix include flags

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3127
2023-08-29 16:37:13 -04:00
Vicente Adolfo Bolea Sanchez
f4aa4de0f2 pkgconfig: fix include flags 2023-08-29 12:42:18 -04:00
Kenneth Moreland
6e674ddea6 Fix degenerate polygon removal
There was a bug in `CleanGrid` when removing degenerate polygons where it
would not detect if the first and last point were the same. This has been
fixed.

There was also an error with function overloading that was causing 0D and
3D cells to enter the wrong computation for degenerate cells. This has also
been fixed.

Fixes #796
2023-08-24 16:46:12 -04:00
Sujin Philip
7fa44ff4a8 Merge topic 'lookupTable-add-one-bp' into release-2.1
e734f14b8 LookupTable: Shift computed idx by 1

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Vicente Bolea <vicente.bolea@kitware.com>
Merge-request: !3125
2023-08-24 08:10:19 -04:00
Sujin Philip
e734f14b88 LookupTable: Shift computed idx by 1
The below range value is at index 0 and the actual table begins fron
index 1.
2023-08-23 12:55:13 -04:00
Vicente Adolfo Bolea Sanchez
c79bb5b07b 2.1.0-rc1 is our 16th official release of VTK-m.
The major changes to VTK-m from (previous release) can be found in:
  docs/changelog/2.1/release-notes.md
v2.1.0-rc1
2023-08-22 11:03:25 -04:00
Vicente Adolfo Bolea Sanchez
ef0ae020ed release: 2.1.0-rc1 release notes 2023-08-22 11:03:25 -04:00
Vicente Adolfo Bolea Sanchez
93ac01b189 release: update version and License 2023-08-18 16:17:19 -04:00
Vicente Adolfo Bolea Sanchez
5cd85b3593 Merge remote-tracking branch 'origin/master' into update-to-2.1.0
* origin/master: (259 commits)
  Adding documentation for flow filter restructure
  Changes to address feedback from MR
  Correct export in class declaration
  Support any cell type in MIR filter
  Fixing linking issues for flow Analysis class
  Removing unnecessary file
  Fixing linking issues for flow Analysis class
  Fixing linking issues for flow Analysis class
  Adding test dependency of filter_flow on tests
  Separating Analysis into header and source
  Moving base class flow filters into CXX
  Fixing streamline output for no step
  Removing particle property num punctures
  Removing XGC Filter
  Fixing WarpXStreamlines compile problems
  Fixing issues after rebasing
  Removing cout from device code
  Changing solver type for WarpX to Euler
  Adding specialization for Particle/Field for XGC
  ci: disable UnitTestWorkletParticleAdvection in hip build
  ...
2023-08-18 16:16:28 -04:00
Abhishek Yenpure
969e55048b Merge topic 'flow_restrucutre'
67b7543a3 Adding documentation for flow filter restructure
dbc873efa Changes to address feedback from MR
67716402b Correct export in class declaration
6d1d4f90a Fixing linking issues for flow Analysis class
adcb42455 Removing unnecessary file
78ca3f301 Fixing linking issues for flow Analysis class
0e1ade83a Fixing linking issues for flow Analysis class
12a3bc94e Adding test dependency of filter_flow on tests
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3087
2023-08-17 22:17:42 -04:00