mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
7992e1b6bf
The `AmrArrays` filter generates some cell fields that specify information about the hierarchy, which are constant across all cells in a partition. These were previously stored as an array with the same value throughout. Now, the field is stored as an `ArrayHandleConstant`, which does not require any real storage. Recent changes to VTK-m allow code to extract the array as a component efficiently without knowing the storage type. Fixes #794
479 B
479 B
Store constant AMR arrays with less memory
The AmrArrays
filter generates some cell fields that specify information
about the hierarchy, which are constant across all cells in a partition.
These were previously stored as an array with the same value throughout.
Now, the field is stored as an ArrayHandleConstant
, which does not
require any real storage. Recent changes to VTK-m allow code to extract the
array as a component efficiently without knowing the storage type.