Commit Graph

8122 Commits

Author SHA1 Message Date
Kenneth Moreland
8ac9f6a5c0 Deprecate boundary condition in neighborhood worklets
This feature was introduced but is never used anywhere. It is up to the
worklet subclass to determine what to do with the boundaries with the
`BoundaryState` object.

In the future we may have a neighborhood worklet of compile-fixed sized
for better memory access efficiency. If that is the case, we can
reintroduce this idea. We can decide on the right implementation if that
design ever comes to pass.
2024-01-19 08:43:50 -05:00
Roxana Bujack
982c5bbb93 Merge topic 'partitionedRendering'
e243e51c1 revert superfluous corners distance
53ab4d41e next round of changes
d9875a41d fix typos
60fdcbaf7 add this->
4fabc168e add this->
7c61aaca0 add this->
cec1091b0 remove compiler warning
ac152d25d ensure presen ghost array if extractor is called from other than vtkm actor
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !3149
2024-01-05 11:37:23 -05:00
Roxana Bujack
e243e51c1b revert superfluous corners distance 2024-01-04 14:13:01 -07:00
Kenneth Moreland
b1b6cb65c0 Add documentation of logging 2024-01-04 15:25:07 -05:00
Roxana Bujack
53ab4d41e4 next round of changes 2024-01-03 16:23:16 -07:00
Kenneth Moreland
d9875a41dc fix typos 2024-01-03 17:43:46 -05:00
Kenneth Moreland
60fdcbaf70 add this-> 2024-01-03 17:43:26 -05:00
Kenneth Moreland
4fabc168ef add this-> 2024-01-03 17:42:59 -05:00
Kenneth Moreland
7c61aaca01 add this-> 2024-01-03 17:42:38 -05:00
Roxana Bujack
cec1091b0f remove compiler warning 2024-01-02 14:21:30 -07:00
Roxana Bujack
ac152d25d9 ensure presen ghost array if extractor is called from other than vtkm actor 2024-01-02 12:04:41 -07:00
Kenneth Moreland
974e964920 Merge topic 'contour-int-isovalue'
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
Roxana Bujack
753df58857 use cellset and not field as basis for ghost array 2023-12-21 08:49:57 -07:00
Roxana Bujack
c78cb8069c allow wireframer to have ghost array 2023-12-20 14:32:55 -07:00
Roxana Bujack
b90c062e35 remove ghosted triangles in parallel 2023-12-20 12:55:19 -07:00
Roxana Bujack
6666fd4ca2 combine changes from this branch and master 2023-12-19 13:18:06 -05:00
Kenneth Moreland
f1e3bed044 Add advanced types chapter to user's guide 2023-12-18 14:22:40 -07:00
Kenneth Moreland
05f9da459c Merge topic 'type-order'
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
Vicente Adolfo Bolea Sanchez
6664fd1e5a cmake: VTKm_ENABLE_KOKKOS_THRUST disabled by default 2023-12-15 13:07:20 -05:00
Kenneth Moreland
82c1d27e9e Merge topic 'guide-developing'
cba1068be Update the developing algorithms section of the user's guide

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Vicente Bolea <vicente.bolea@kitware.com>
Merge-request: !3156
2023-12-13 18:18:32 -05:00
Jefferson Amstutz
2de1a462a0 support more volume types via array element conversion + ensure scalar data 2023-12-11 11:16:12 -06:00
Kenneth Moreland
cba1068bec Update the developing algorithms section of the user's guide 2023-12-08 08:50:18 -05:00
Mark Bolstad
4676d07f09 Fix error under CUDA with private class declarations
nvcc doesn't like the couple of places that we have Impl classes hiding behind a
private declaration. So for VTKM_CUDA only, ifdef the private declaration out
2023-12-05 10:03:40 -07:00
Ben Boeckel
2134955065 Merge topic 'loguru-install-interface'
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
Ben Boeckel
a5994a8129 Merge topic 'clang-tidy-fixes'
1541cfa8a clang-tidy: fix `bugprone-incorrect-roundings` lints
0ce73eb68 clang-tidy: fix `readability-avoid-const-params-in-decls` lints
e07fb9fec clang-tidy: fix `performance-move-const-arg` lints
5aad5ca37 clang-tidy: fix `modernize-redundant-void-arg` lints
6c00a8755 clang-tidy: fix `readability-redundant-access-specifiers` lints
219f44c25 clang-tidy: fix `readability-const-return-type` lints
b99920d47 Oscillator: use a type of the right size for `oIdx`
13e935c35 clang-tidy: fix `readability-redundant-member-init` lints
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !3053
2023-12-04 10:42:50 -05:00
Kenneth Moreland
5d0bf1d866 Merge topic 'document-merge-data-sets'
45ad2fb50 Add documentation of MergeDataSets filter to user's guide

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3161
2023-12-01 19:17:29 -05:00
Ben Boeckel
1541cfa8a6 clang-tidy: fix bugprone-incorrect-roundings lints
Adding `0.5` is not correct in all cases. Namely, adding `0.5` will
cause the value immediately before it to be rounded to `1` due to the
"round to nearest even" rule. Trust the standard library to get this
right.
2023-12-01 07:01:11 -05:00
Ben Boeckel
0ce73eb680 clang-tidy: fix readability-avoid-const-params-in-decls lints 2023-12-01 07:01:11 -05:00
Ben Boeckel
e07fb9fec3 clang-tidy: fix performance-move-const-arg lints 2023-12-01 07:01:11 -05:00
Ben Boeckel
5aad5ca37e clang-tidy: fix modernize-redundant-void-arg lints 2023-12-01 07:01:11 -05:00
Ben Boeckel
6c00a87554 clang-tidy: fix readability-redundant-access-specifiers lints 2023-12-01 07:01:11 -05:00
Ben Boeckel
219f44c250 clang-tidy: fix readability-const-return-type lints 2023-12-01 07:01:11 -05:00
Ben Boeckel
b99920d47b Oscillator: use a type of the right size for oIdx 2023-12-01 07:01:11 -05:00
Ben Boeckel
13e935c357 clang-tidy: fix readability-redundant-member-init lints 2023-12-01 07:01:11 -05:00
Ben Boeckel
97e0024daf clang-tidy: fix modernize-use-override lints 2023-12-01 07:01:11 -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 Bolea
4e0eb57527 Merge topic 'fix-rocthrust-dep'
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
Kenneth Moreland
45ad2fb50d Add documentation of MergeDataSets filter to user's guide 2023-11-30 18:36:29 -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
Wang
418347819e fix ascent warning 2023-11-30 11:54:15 -05:00
Zhe Wang
01f21a59b8 Merge topic 'add_MergeDataSet_filter'
725407235 add merge data sets filter

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !3148
2023-11-21 20:09:28 -05:00
Wang
7254072357 add merge data sets filter 2023-11-21 15:31:59 -05:00
Kenneth Moreland
5b8c282e9f Continue transfer of Users' Guide text
These changes complete the using part of the guide.
2023-11-21 10:33:45 -07:00
Kenneth Moreland
7302372b48 Fix doxygen issues 2023-11-21 07:50:04 -07:00
Kenneth Moreland
1b541bdd37 Avoid floating point exceptions in rendering code
There were some places in the rendering code where floating point
exceptions (FPE) could happen under certain circumstances. Often we do not
care about invalid floating point operation in rendering as they often
occur in degenerate cases that don't contribute anyway. However,
simulations that might include VTK-m might turn on FPE to check their own
operations. In such cases, we don't want errant rendering arithmetic
causing an exception and bringing down the whole code. Thus, we turn on FPE
in some of our test platforms and avoid such operations in general.
2023-11-20 14:21:38 -07:00
Vicente Adolfo Bolea Sanchez
3c5ff4f12a ci,opensuse: use mpich ofi:socket backend 2023-11-17 19:47:10 -05:00