Skip to content

Add a default LevelLocator to LogicalVolume instances on the GPU device

Guilherme Lima requested to merge ref-celeritas into master

This MR fixes the device function GlobalLocator::locateGlobalPoint(), by adding a LevelLocator to all LogicalVolume instances on the device, in analogy to the corresponding instances on the CPU.

Moreover, currently the on-device static variable globaldevicegeomdata::gMaxDepth only gets initialized when USE_NAVINDEX=ON, therefore this configuration is now forced automatically within CMake whenever CUDA=ON is set.

Note: this MR fixes the on-device track initialization feature as requested by Celeritas.

Edited by Guilherme Lima

Merge request reports