mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +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
9 lines
479 B
Markdown
9 lines
479 B
Markdown
# 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.
|