Commit Graph

1035 Commits

Author SHA1 Message Date
Vicente Adolfo Bolea Sanchez
555013cdda CMAKE: add unity builds support 2021-11-10 15:03:11 -05:00
Gunther Weber
d974477e40 Merge topic 'add/hybrid_hypersweep'
02789a0d4 Improve comments
ed6b0f008 Fix CMakeLists.txt after moving header file.
5fd1b8ce8 Moved I/O functions to testing directory.
b6db5ddaa Make GlobalBlockId int to reduce casts. Renamed BlockIndex to LocalBlockNo.
bec58bd73 Make DIY own blocks and delete them to prevent memory leak on exception
50ca0318b Added missing ExecutionSignature.
f96020a24 Consolidated two copies of NotNoSuchElementPredicate.h
65352d7f0 Remove extranous Allocate in HierarchicalAugmenter
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Vicente Bolea <vicente.bolea@kitware.com>
Acked-by: Sujin Philip <sujin.philip@kitware.com>
Merge-request: !2587
2021-11-10 13:55:32 -05:00
Gunther H. Weber
02789a0d4d Improve comments 2021-11-08 15:24:07 -08:00
Gunther H. Weber
b6db5ddaa6 Make GlobalBlockId int to reduce casts. Renamed BlockIndex to LocalBlockNo. 2021-11-04 20:56:12 -07:00
Gunther H. Weber
bec58bd735 Make DIY own blocks and delete them to prevent memory leak on exception 2021-11-04 17:05:09 -07:00
Gunther H. Weber
3d88d7f8dc Updated comment. Fixed coding style violation. 2021-11-03 11:39:40 -07:00
Li-Ta Lo
674b0e5dbc static/anonymous namespace is not allowed in header files 2021-10-28 11:02:45 -06:00
Gunther H. Weber
cc7c3b5a44 Revise TODO/FIXME comments 2021-10-20 15:17:26 -07:00
Oliver Ruebel
15934cd621 Clear all swap data for hierarchical augmenter 2021-10-20 14:46:25 -07:00
Gunther H. Weber
0d2036a1ee Change vtkmdiyLocalBlockGids to std::vector<int> to avoid warning 2021-10-20 14:46:25 -07:00
Gunther H. Weber
5cb2f0bf1a Slight refactoring to avoid warning 2021-10-20 14:46:25 -07:00
Gunther H. Weber
2b6fd71c5b Make volume metric data filter output and print tree in app; general clean up 2021-10-20 14:46:24 -07:00
Gunther H. Weber
d767cb5b22 Clean up debug output 2021-10-20 14:46:24 -07:00
Gunther H. Weber
c677e31286 Fix compile warning on GitLab dashboard 2021-10-20 14:46:24 -07:00
Gunther H. Weber
17a8cf16a2 Added verification code to test results of contour tree app. 2021-10-20 14:46:24 -07:00
Oliver Ruebel
7c784c3651 Fix input for HyperSweepBlock 2021-10-20 14:46:24 -07:00
Gunther H. Weber
db2d5afb30 Added more debug output 2021-10-20 14:46:23 -07:00
Gunther H. Weber
d77d4dd7d8 Clean-up (mostly debug output) 2021-10-20 14:46:23 -07:00
Oliver Ruebel
d23560edd2 Execute HyperSweeper only if tree is augmented 2021-10-20 14:46:23 -07:00
Oliver Ruebel
b2d43aadc6 use augmented hierarchical tree for output if available 2021-10-20 14:46:23 -07:00
Oliver Ruebel
a20ffd3d7c Use augmented HierarchicalContourTree in the HyperSweeper 2021-10-20 14:46:23 -07:00
Gunther H. Weber
542d0a5a46 Added hyper-sweeeper calls to contour tree uniform distributed filter 2021-10-20 14:46:23 -07:00
Oliver Ruebel
c87c7392db Use the correct id in HierarchicalAugmenter.Initialize
Save global Id in DistributedContourTreeBlockData to use the correct Id for HierarchicalAugmenter.Initialize
2021-10-20 14:46:22 -07:00
Oliver Ruebel
236abb772b Add high-level augmetation timers 2021-10-20 14:46:22 -07:00
Gunther H. Weber
5244aade8b Moved augmentation from lambda to separate functor class to fix compile error. 2021-10-20 14:46:22 -07:00
Oliver Ruebel
2c7bda773c Port changes to HierarchicalAugmenter to add In/Out arrays for MPI exchange 2021-10-20 14:46:22 -07:00
Gunther H. Weber
c6ff4a5f09 Added some comments 2021-10-20 14:46:21 -07:00
Gunther H. Weber
e9af397fb2 First implementation of hierarchical augmenter communication phase 2021-10-20 14:46:21 -07:00
Gunther H. Weber
e2fe35e129 Started adding DIY code for HierarchicalAugmenter 2021-10-20 14:46:21 -07:00
Oliver Ruebel
9dbccaae1d Port/implement HierarchicalAugmenter 2021-10-20 14:46:20 -07:00
Oliver Ruebel
a69f83f3a5 Port/implement HierarchicalHyperSweeper 2021-10-20 14:46:20 -07:00
Abhishek Yenpure
4e9220ddd3 Removing unnecessary header 2021-10-14 15:21:08 -07:00
Abhishek Yenpure
3237c58c2b Updating particle advection filters to use field associativity 2021-10-14 14:57:36 -07:00
Abhishek Yenpure
79bb38c2b3 Merge branch 'master' of https://gitlab.kitware.com/vtk/vtk-m into cell-velocity-field 2021-10-14 14:48:37 -07:00
Li-Ta Lo
b9c2ddf9d1 add missing #include 2021-10-13 13:22:26 -06:00
Kenneth Moreland
ae3c7c096b Merge topic 'source-field-names'
03a4750a3 Change Oscillator output field name to oscillating
a3462b41c Change Wavelet output field name to RTData
ea1a55359 Name tangle source fields appropriately
a68422d45 Add GenerateIds filter

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Merge-request: !2595
2021-10-05 10:59:48 -04:00
Kenneth Moreland
a3462b41ce Change Wavelet output field name to RTData
This matches the output field name in VTK and ParaView for the
equivalent source. This change allows this source to be used as a drop-
in replacement for the VTK source (which could be very useful).
2021-10-04 13:44:27 -06:00
Kenneth Moreland
ea1a55359f Name tangle source fields appropriately
The `Tangle` source would create a point field generically named
`nodevar`. This name was not indicitive of the data or its source. Thus,
the output point field has been renamed `tangle`.

The `Tangle` source was also creating a cell field (named `cellvar`).
This field was really just a mirror of the cell indices (counting from 0
on up). This field has been removed from the input. If you want such a
field, you can now use the `GenerateIds` filter to add it to any data
set.
2021-10-04 13:44:27 -06:00
Kenneth Moreland
a68422d454 Add GenerateIds filter
This filter adds a pair of fields to a `DataSet` which mirror the
indices of the points and cells, respectively. These fields are useful
for tracking the provenance of the elements of a `DataSet` as it gets
manipulated by the filters. It is also convenient for adding indices to
operations designed for fields and for testing purposes.
2021-10-04 13:44:18 -06:00
Jieyang Chen
a157c0e846 Add changes for supporting Kokkos/HIP
Some of the unit tests for serial and kokkos are disable for hipcc to
properly compile.
VTKM_MATH_ASSERT and VTKM_TEST_ASSERT fail to compile with HIP in
execution environment so they are disabled with building with HIP.
Kokkos::finalize is causing error so it is temporarily disabled.
2021-10-01 15:27:00 -04:00
Abhishek Yenpure
cf012b61e4 Changes for supporting cell centered velocity fields
- Changing the Field class for handling field associativity
- Changing Streamline filter to handle cell fields
2021-09-23 08:32:47 -07:00
Kenneth Moreland
585ac97043 Merge topic 'consolidate-count-to-offset'
4c6522de2 Precompile ConvertNumComponentsToOffsets
b1343474c Consolidate count-to-offset algorithms

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Merge-request: !2580
2021-09-17 11:44:34 -04:00
Kenneth Moreland
964ef29e06 Suppress warning when logging is turned off
There was a case where a VTK-m exception was caught and then used in a
logging message. That is fine, but if VTK-m logging is turned off, that
code is removed and the exception variable goes unused.

There was a time when it was common to have logging turned off in VTK-m,
but now it is almost always on. There is one old-style dashboard that
has logging turned off and is giving a warning about this variable not
being used. It went unnoticed because the dashboard was down at the
time. This should fix the issue.
2021-09-17 05:34:26 -06:00
Kenneth Moreland
b1343474c1 Consolidate count-to-offset algorithms
For no particularly good reason, there were two functions that converted
and array of counts to an array of offsets: `ConvertNumComponentsToOffsets`
and `ConvertNumIndicesToOffsets`. These functions were identical, except
one was defined in `ArrayHandleGroupVecVariable.h` and the other was
defined in `CellSetExplicit.h`.

These two functions have been consolidated into one (which is now called
`ConvertNumComponentsToOffsets`). The consolidated function has also been
put in its own header file: `ConvertNumComponentsToOffsets.h`.

Normally, backward compatibility would be established using deprecated
features. However, one of the things being worked on is the removal of
device-specific code (e.g. `vtkm::cont::Algorithm`) from core classes like
`CellSetExplicit` so that less code needs to use the device compiler
(especially downstream code).

Part of this change removed unnecessary includes of `Algorithm.h` in
`ArrayHandleGroupVecVariable.h` and `CellSetExplicit.h`. This header had to
be added to some classes that were not including it themselves.
2021-09-16 14:24:41 -06:00
James Kress
ff71975709 Merge topic 'Update_Threshold'
0e6228bbd Updating threshold to return all or part in range.
d28bdec48 Merge remote-tracking branch 'upstream/master'
f42d73fa0 Merge remote-tracking branch 'upstream/master'
74c4d3479 Merge remote-tracking branch 'upstream/master'

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2566
2021-09-09 13:32:52 -04:00
Kenneth Moreland
2f3a3d7e6e Merge topic 'cell-metrics-single-cell-type'
5191909b5 Fix MeshQuality to work with CellSetSingleType
ecf36ed39 Fix compile errors in CellSetSingleType::CompleteAddingCells

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2556
2021-09-08 15:11:55 -04:00
Abhishek Yenpure
f0d267e813 Adding WarpX particle advection streamlines 2021-09-01 17:22:51 -07:00
Abhishek Yenpure
52ae3e4dee Adding missing header 2021-09-01 12:04:31 -07:00
Abhishek Yenpure
57711cab8c Merge branch 'master' of https://gitlab.kitware.com/vtk/vtk-m into mir 2021-09-01 09:40:27 -07:00
Kenneth Moreland
546dd608e1 Suppress exception when mapping field of unknown type
By default, the `FilterDataSet` class will iterate over all fields and
use `CastAndCall` on each one to call the subclass' mapping function
with the appropriate array type.

This only works if the array is of a known type. If it is not
`CastAndCall` throws an exception. However, having the entire filter
exception out just because one field cannot be converted does not make
sense. Instead, catch the exception, log a warning, and drop the field.
2021-08-31 14:24:50 -06:00