Commit Graph

9834 Commits

Author SHA1 Message Date
Kenneth Moreland
9562de9457 Remove brigand from DispatcherBase 2022-03-08 07:25:08 -07:00
Kenneth Moreland
a771359d72 Remove brigand from FunctionInterface
Replace with features in `vtkm::List`.
2022-03-08 07:25:08 -07:00
Kenneth Moreland
be8004b01a Remove brigand from ArrayHandleDecorator
Replaced with features provided by `vtkm::List` and some simple
templates now in `vtkm/internal/Meta.h`.
2022-03-08 07:24:53 -07:00
Kenneth Moreland
2eb6fb9dd1 Remove brigand from ArrayHandleCompositeVector
Use new features of vtkm::List instead.
2022-03-08 06:53:05 -07:00
Kenneth Moreland
124f08381b Added ListReduce, ListAll, and ListAny
These new features to VTK-m lists allow you to compute a single value
from a list. `ListReduce` allows you to compute a value based on a
predicate. `ListAll` and `ListAny` use this feature to determine if all
or any of a list of `true_type` or `false_type` objects are true.
2022-03-08 06:53:05 -07:00
Vicente Bolea
feac74a22a Merge topic 'fixes-testing-lib'
5fe665ad0 CMAKE: enable TESTING_LIBRARY when BENCHMARKS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2725
2022-03-04 17:37:25 -05:00
Vicente Adolfo Bolea Sanchez
5fe665ad00 CMAKE: enable TESTING_LIBRARY when BENCHMARKS 2022-03-04 22:23:29 +00:00
Kenneth Moreland
55143ef894 Merge topic 'better-deprecated-headers'
5cb9792bd SurfaceNormal -> SurfaceNormals
b2947a1d7 Improve deprecation support of CellMeasures
5b7893a3f Support deprecated MeshQuality features
d22a509b5 Split CoordinateSystemTransform.h
c238cfea5 Improve deprecation support for moved or renamed headers

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2718
2022-03-04 14:40:29 -05:00
Li-Ta Lo
5cb9792bdc SurfaceNormal -> SurfaceNormals 2022-03-03 15:28:20 -07:00
Vicente Bolea
b060371f7a Merge topic 'repair-ecptest-ci'
395611596 unittests: relaxed test thresholds for Ascent
0b3bef32b CI: Ascent build conforms latest OLCF update

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !2721
2022-02-24 19:14:23 -05:00
Vicente Adolfo Bolea Sanchez
3956115969 unittests: relaxed test thresholds for Ascent 2022-02-22 22:00:32 -05:00
Vicente Adolfo Bolea Sanchez
0b3bef32b0 CI: Ascent build conforms latest OLCF update 2022-02-22 18:29:14 -05:00
Vicente Bolea
e155e4913d Merge topic 'encapsulate-loguru-namespace'
26c8252dc Loguru: encapsulate loguru
65063ca48 Logging: avoid reinit loguru
2be4da84d Merge branch 'upstream-loguru' into encapsulate-loguru-namespace
9c8dd6045 Loguru: set to track tags instead of branch
dd1d8c134 loguru 2022-02-17 (7c85104f)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2702
2022-02-17 17:44:25 -05:00
Vicente Adolfo Bolea Sanchez
26c8252dc5 Loguru: encapsulate loguru 2022-02-17 16:03:23 -05:00
Vicente Adolfo Bolea Sanchez
65063ca485 Logging: avoid reinit loguru 2022-02-17 16:03:23 -05:00
Vicente Adolfo Bolea Sanchez
2be4da84d1 Merge branch 'upstream-loguru' into encapsulate-loguru-namespace
# By Loguru Upstream
* upstream-loguru:
  loguru 2022-02-17 (7c85104f)
2022-02-17 16:03:23 -05:00
Vicente Adolfo Bolea Sanchez
9c8dd60453 Loguru: set to track tags instead of branch 2022-02-17 16:03:21 -05:00
Loguru Upstream
dd1d8c1349 loguru 2022-02-17 (7c85104f)
Code extracted from:

    https://gitlab.kitware.com/third-party/loguru.git

at commit 7c85104f4c87b09c82b830d908b31f96de97c6d8 (for/vtk-m-20220217).
2022-02-17 15:54:31 -05:00
Vicente Bolea
279231bdbf Merge topic 'install-examples'
75fed8724 examples: add option to install examples

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2716
2022-02-17 13:08:27 -05:00
Li-Ta Lo
753b32b9a2 Merge topic 'contour_surface_normals'
82a5bde74 use SurfaceNomrals filter rather than worklet

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2719
2022-02-17 10:07:09 -05:00
Vicente Adolfo Bolea Sanchez
75fed87240 examples: add option to install examples 2022-02-16 19:43:52 -05:00
Li-Ta Lo
82a5bde744 use SurfaceNomrals filter rather than worklet 2022-02-16 14:59:46 -07:00
Kenneth Moreland
4a0fad6e5a Merge topic 'add_tutorial'
0ba7a222b point_to_cell wanning resolution
dea63919d point_to_cell wanning resolution
5bb7773cc Point_to_cell warning resolution
0ce7d9258 tutorial example fixes to resolve warnings
8e57362a2 tutorial example fixes to resolve warnings
5fc268d31 switched back to the old version of extract_edges
0300973df switched back to the old version of extract_edges
f5e827ad1 Enable building tutorials on all CI builds
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2653
2022-02-16 16:35:51 -05:00
Tushar Athawale
0ba7a222be point_to_cell wanning resolution 2022-02-16 15:16:07 -05:00
Tushar Athawale
dea63919d7 point_to_cell wanning resolution 2022-02-16 14:57:25 -05:00
Tushar Athawale
5bb7773cc5 Point_to_cell warning resolution 2022-02-16 13:43:55 -05:00
Kenneth Moreland
b2947a1d78 Improve deprecation support of CellMeasures
Moved deprecated class to new headers (so that indirect includes still
work).

Changed vtkm::filter::mesh_info::IntegrationType to a scoped enum (which
we favor in VTK-m).

Correct the implementation of the deprecated integration types (which
would not have actually compiled anyway).
2022-02-16 11:36:40 -07:00
Kenneth Moreland
5b7893a3f7 Support deprecated MeshQuality features
Reenable the `vtkm::filter::CellMetric` class and
`vtkm::filter::MetricNames` static variable for backward compatibility.
(Both are of course marked deprecated.)

Also, adjust names in the new `vtkm::filter::mesh_info::CellMetric` to
conform with the rest of VTK-m style for scoped enums.
2022-02-16 11:36:13 -07:00
Kenneth Moreland
d22a509b52 Split CoordinateSystemTransform.h
This header file contained two filters: `CylindricalCoordinateTransform`
and `SphericalCoordinateTransform`. By convention, each header (and
source) file should contain one filter. Now that filters are split into
separate libraries, there is little reason to combine things into header
files.
2022-02-16 07:24:04 -07:00
Kenneth Moreland
c238cfea50 Improve deprecation support for moved or renamed headers
VTK-m has a deprecation method that supports API changes in minor
releases. When an API change is made, the old API is marked with the
VTKM_DEPRECATED macro. If code attempts to use the old API, it still
works, but the compiler issues a warning that the thing is deprecated
and where to find the new API.

We have recently run into an issue when the API changes have a header
file renamed or moved. We still keep the old header file with the old
API, so code including that file will still work. However, sometimes
code expected the contents of that header file without directly
including that header file. In these cases, the code could get an error
about missing classes.

As an example, consider the change from `DynamicCellSet` to
`UnknownCellSet`/`UncertainCellSet`. The deprecated `DynamicCellSet` is
still around. But there is a lot of code that did not directly include
DynamicCellSet.h. This header file was necessarily included by
DataSet.h. Now, when this code uses `vtkm::cont::DynamicCellSet`, you
get a confusing error that the class does not exist. Backward
compatibility broken.

In response to this, we should be more careful about where we put the
deprecated API. Instead of containing the deprecated API, moved headers
should be empty except for a warning and an inclusion of the new header
file. The deprecated API should be moved to the new header file. For
example, in the case of `DynamicCellSet`, the implementation for the
deprecated `DynamicCellSet` is moved to UnknownCellSet.h, which is
included by anything that was including DynamicCellSet.h before.
2022-02-16 07:08:05 -07:00
Li-Ta Lo
7553285a54 Merge topic 'geometry_refine'
a462552c2 use CreateResult that accepts a CoordSystem
f09032aaa migrate geometry refinement filters

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2714
2022-02-15 11:00:23 -05:00
Li-Ta Lo
a462552c2c use CreateResult that accepts a CoordSystem 2022-02-15 08:08:48 -07:00
Tushar Athawale
0ce7d92589 tutorial example fixes to resolve warnings 2022-02-14 13:15:55 -05:00
Tushar Athawale
8e57362a23 tutorial example fixes to resolve warnings 2022-02-14 13:11:30 -05:00
Tushar Athawale
5fc268d312 switched back to the old version of extract_edges 2022-02-14 10:51:00 -05:00
Tushar Athawale
0300973df7 switched back to the old version of extract_edges 2022-02-14 10:47:36 -05:00
Kenneth Moreland
f5e827ad1e Enable building tutorials on all CI builds 2022-02-14 10:34:41 -05:00
Tushar Athawale
42b62d354b Error check added for invalid loop indices 2022-02-13 09:44:58 -05:00
Tushar Athawale
91a267eacc tutorial updates to fix warnings and CMakeLists for optional tutorial build 2022-02-12 11:25:50 -05:00
Li-Ta Lo
f09032aaaf migrate geometry refinement filters 2022-02-11 20:52:43 -07:00
Vicente Bolea
ebc29f7b65 Merge topic 'add-smoke-test'
b2c3da8f6 CTEST: add smoke test

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2667
2022-02-11 20:05:44 -05:00
Vicente Adolfo Bolea Sanchez
b2c3da8f6a CTEST: add smoke test 2022-02-12 00:16:30 +00:00
Tushar Athawale
524bc64520 replacing vtk::worklet and vtk::filter namespaces with anonymous namespaces 2022-02-11 10:22:48 -05:00
Kenneth Moreland
eb48d65399 Merge topic 'less-brigand'
8cca11601 Limit size of vtkm::List
9a94270e9 Better implementation of ListAt
ae28519af Fix ICE in MSVC 2017
878e56d97 Reduce the size of lists used when serializing UnknownArrayHandle
18c4b3258 Remove brigand from List.h

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Vicente Bolea <vicente.bolea@kitware.com>
Merge-request: !2700
2022-02-10 20:36:50 -05:00
Kenneth Moreland
8cca116013 Limit size of vtkm::List
If you have a really long list, compilers might error out if you have a
recursive operation on it. Such an error can be confusing, so for now
create an error if the list is too long.
2022-02-10 15:50:31 -07:00
Li-Ta Lo
c635e6d6c5 Merge topic 'no_backends'
05d34aa8a delete unneeded list append
d41e1e40f remove ALL_BACKENDS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Li-Ta Lo <ollie@lanl.gov>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2711
2022-02-10 11:21:16 -05:00
Li-Ta Lo
04a042789f Merge topic 'create_result'
ae4ad5239 remove #include<CreateResult.h>

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2708
2022-02-10 10:01:07 -05:00
Li-Ta Lo
05d34aa8a4 delete unneeded list append 2022-02-10 06:40:43 -07:00
Vicente Bolea
6414555cbe Merge topic 'cosmetic-change-docs'
07be1ece5 CI: fix docs site name

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2712
2022-02-09 19:56:36 -05:00
Vicente Adolfo Bolea Sanchez
07be1ece5d CI: fix docs site name 2022-02-09 19:44:03 -05:00