vtk-m/vtkm
Kenneth Moreland 7811cc4b1e Add standard support for read-only storage
Many of the fancy `ArrayHandle`s are read-only and therefore connot
really create write portals. Likewise, many `ArrayHandle`s (both read-
only and read/write) have no way to resize themselves. In this case,
implementing the `CreateWritePortal` and `ResizeBuffers` methods in the
`Storage` class was troublesome. Mostly they just threw an exception,
but they also sometimes had to deal with cases where the behavior was
allowed.

To simplify code for developers, this introduces a pair of macros:
`VTKM_STORAGE_NO_RESIZE` and `VTKM_STORAGE_NO_WRITE_PORTAL`. These can
be declared in a `Storage` implementation when the storage has no viable
way to resize itself and create a write portal, respectively.

Having boilerplate code for these methods also helps work around
expected behavior for `ResizeBuffers`. `ResizeBuffers` should silently
work when resizing to the same size. Also `ResizeBuffers` should behave
well when resizing to 0 as that is what `ReleaseResources` does.
2020-12-10 13:39:28 -07:00
..
cont Add standard support for read-only storage 2020-12-10 13:39:28 -07:00
exec Revert change the removes printing of seed. 2020-11-18 11:03:19 -05:00
filter Fix unused variable warnings when logging is disabled 2020-12-02 14:30:24 -08:00
internal Add standard support for read-only storage 2020-12-10 13:39:28 -07:00
interop Update vtkm/interop to use non-deprecated make_ArrayHandle API 2020-08-03 12:15:16 -04:00
io Generate and test regression-test images with io library updates 2020-12-02 16:24:07 +00:00
random ArrayHandleRandomUniformReal 2020-06-02 11:58:57 -06:00
rendering remove MakeTestDataSet, generate vtk dataset files 2020-12-02 16:24:10 +00:00
source Reverse Invoker, Dispatcher and Worklet dependency 2020-07-21 17:25:43 -06:00
testing Revert unfocused diffs. 2020-11-29 14:16:05 -05:00
thirdparty Merge branch 'upstream-lcl' into update_thirdparty_for_hip_support 2020-10-28 14:21:28 -04:00
worklet Revert back from ResizeVector to Allocate but setting vtkm::CopyFlag::On 2020-12-02 14:30:24 -08:00
.gitattributes diy 2019-04-09 (f7a68da4) 2019-04-09 11:42:54 -04:00
Algorithms.h vtkm/Algorithms now can do device side HIP algorithms 2020-10-20 09:24:05 -04:00
Assert.h Disable VTKM_ASSERT when using HIP 2020-09-25 11:06:57 -04:00
Atomic.h Change interface of atomic compare and swap 2020-10-20 08:39:22 -06:00
BinaryOperators.h Make BinaryOperators/Predicates more flexible. 2019-12-18 15:51:59 -05:00
BinaryPredicates.h Make BinaryOperators/Predicates more flexible. 2019-12-18 15:51:59 -05:00
Bitset.h Add unittest for particlearraycopy 2020-06-18 15:45:36 -04:00
Bounds.h Update VTK-m code to use new Vec aliases 2019-07-31 12:55:40 -06:00
CellClassification.h GhostCellClassify now more efficient as it uses WorkletPointNeighborhood 2019-09-11 10:06:45 -04:00
CellShape.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
CellTraits.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
CMakeLists.txt Add atomic free functions 2020-08-20 13:40:43 -06:00
Deprecated.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
ErrorCode.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
Flags.h conslidate the license statement 2019-04-17 10:57:13 -06:00
Geometry.h conslidate the license statement 2019-04-17 10:57:13 -06:00
Geometry.hxx Update vtkm/Geometry.hxx to follow clangs rules on function markup 2020-09-25 09:37:46 -04:00
Hash.h conslidate the license statement 2019-04-17 10:57:13 -06:00
ImplicitFunction.h Add Kokkos backend 2020-08-12 13:55:24 -04:00
List.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
ListTag.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
Math.h vtkm/Math frexp(float) version works now with HIP 2020-10-22 15:32:14 -04:00
Math.h.in vtkm/Math frexp(float) version works now with HIP 2020-10-22 15:32:14 -04:00
Matrix.h Add recursive component queries to VecTraits 2019-09-09 08:19:15 -06:00
NewtonsMethod.h conslidate the license statement 2019-04-17 10:57:13 -06:00
Pair.h conslidate the license statement 2019-04-17 10:57:13 -06:00
Particle.h Add support for ghost cells in particle advection. 2020-10-19 16:46:48 -04:00
Range.h ExtractStructured now compiles quicker and with less compiler memory 2019-12-11 08:59:42 -05:00
RangeId2.h ExtractStructured now compiles quicker and with less compiler memory 2019-12-11 08:59:42 -05:00
RangeId3.h ExtractStructured now compiles quicker and with less compiler memory 2019-12-11 08:59:42 -05:00
RangeId.h ExtractStructured now compiles quicker and with less compiler memory 2019-12-11 08:59:42 -05:00
StaticAssert.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
Swap.h vtkm/Swap works with hip 2020-10-22 15:32:06 -04:00
TopologyElementTag.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
Transform3D.h conslidate the license statement 2019-04-17 10:57:13 -06:00
Tuple.h Update vtk-m doxygen to generate less warnings 2020-06-01 16:58:32 -04:00
Tuple.h.in Update doxygen comments in Tuple.h.in 2020-06-03 09:22:48 -06:00
TypeList.h Make sure all C scalar types are in TypeListScalarAll 2020-11-12 16:18:56 -07:00
TypeListTag.h Merge topic 'modify-default-policy' 2020-03-24 12:17:23 -04:00
Types.h Make sure all C scalar types are in TypeListScalarAll 2020-11-12 16:18:56 -07:00
TypeTraits.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
UnaryPredicates.h conslidate the license statement 2019-04-17 10:57:13 -06:00
VecAxisAlignedPointCoordinates.h Add recursive component queries to VecTraits 2019-09-09 08:19:15 -06:00
VecFromPortal.h Add recursive component queries to VecTraits 2019-09-09 08:19:15 -06:00
VecFromPortalPermute.h Add recursive component queries to VecTraits 2019-09-09 08:19:15 -06:00
VecFromVirtPortal.h conslidate the license statement 2019-04-17 10:57:13 -06:00
VectorAnalysis.h Corrections and expanded testing of implicit functions 2019-08-15 17:25:41 -06:00
VecTraits.h clang-format: reformat the repository with clang-format-9 2020-08-24 14:01:08 -04:00
VecVariable.h Generalize fields for particle advection 2020-07-20 21:15:46 -04:00
Version.h.in conslidate the license statement 2019-04-17 10:57:13 -06:00
VirtualObjectBase.h conslidate the license statement 2019-04-17 10:57:13 -06:00