mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
e74c0732c5
Because `CellSetExplicit` is a templated class, the implementation of most of its features is part of the header files. One of the things that was included was the code to build the reverse connectivity links. That is, it figured out which cells were incident on each point using the standard connections of which points comprise which cells. Of course, building these links is non-trivial, and it used multiple DPPs to engage the device. It meant that header had to include the device adapter algorithms and therefore required a device compiler. We want to minimize this where possible. To get around this issue, a non-templated function was added to find the reverse connections of a `CellSetExplicit`. It does this by passing in `UnknownArrayHandle`s for the input arrays. (The output visit-points- with-cells arrays are standard across all template instances.) The implementation first iterates over all `CellSetExplicit` versions in `VTKM_DEFAULT_CELL_SETS` and attempts to retrieve arrays of those types. In the unlikely event that none of these arrays work, it copies the data to `ArrayHandle<vtkm::Id>` and uses those. |
||
---|---|---|
.. | ||
testing | ||
ArrayHandleDeprecated.h | ||
ArrayHandleExecutionManager.h | ||
ArrayPortalFromIterators.h | ||
ArrayTransfer.h | ||
AtomicInterfaceControl.h | ||
AtomicInterfaceExecution.h | ||
Buffer.cxx | ||
Buffer.h | ||
CastInvalidValue.h | ||
CellLocatorBase.h | ||
CMakeLists.txt | ||
ConnectivityExplicitInternals.h | ||
ConvertNumComponentsToOffsetsTemplate.h | ||
DefaultTypesAscent.h.in | ||
DefaultTypesVTK.h.in | ||
DeviceAdapterAlgorithmGeneral.h | ||
DeviceAdapterListHelpers.h | ||
DeviceAdapterMemoryManager.cxx | ||
DeviceAdapterMemoryManager.h | ||
DeviceAdapterMemoryManagerShared.cxx | ||
DeviceAdapterMemoryManagerShared.h | ||
FunctorsGeneral.h | ||
IteratorFromArrayPortal.h | ||
KXSort.h | ||
OptionParser.h | ||
OptionParserArguments.h | ||
ParallelRadixSort.h | ||
ParallelRadixSortInterface.h | ||
PointLocatorBase.h | ||
ReverseConnectivityBuilder.h | ||
RuntimeDeviceConfiguration.cxx | ||
RuntimeDeviceConfiguration.h | ||
RuntimeDeviceConfigurationOptions.cxx | ||
RuntimeDeviceConfigurationOptions.h | ||
RuntimeDeviceOption.cxx | ||
RuntimeDeviceOption.h | ||
StorageDeprecated.h | ||
StorageError.h | ||
TransferInfo.cxx | ||
TransferInfo.h | ||
Variant.h | ||
VirtualObjectTransfer.cxx | ||
VirtualObjectTransfer.h | ||
VirtualObjectTransferInstantiate.h | ||
VirtualObjectTransferShareWithControl.h |