@@ -674,7 +674,8 @@ class navigator {
674
674
// / @return a heartbeat to indicate if the navigation is still alive
675
675
template <typename propagator_state_t >
676
676
DETRAY_HOST_DEVICE inline bool update (propagator_state_t &propagation,
677
- const navigation::config &cfg) const {
677
+ const navigation::config &cfg,
678
+ const context_type& ctx = {}) const {
678
679
679
680
state &navigation = propagation._navigation ;
680
681
@@ -707,7 +708,7 @@ class navigator {
707
708
// navigation.run_inspector(cfg, track.pos(), track.dir(), "Volume
708
709
// switch: ");
709
710
710
- init (propagation, cfg);
711
+ init (propagation, cfg, ctx );
711
712
712
713
// Fresh initialization, reset trust and hearbeat
713
714
navigation.m_trust_level = navigation::trust_level::e_full;
@@ -717,7 +718,7 @@ class navigator {
717
718
}
718
719
// If no trust could be restored for the current state, (local)
719
720
// navigation might be exhausted: re-initialize volume
720
- navigation.m_heartbeat &= init (propagation, cfg);
721
+ navigation.m_heartbeat &= init (propagation, cfg, ctx );
721
722
722
723
// Sanity check: Should never be the case after complete update call
723
724
if (navigation.trust_level () != navigation::trust_level::e_full ||
@@ -738,7 +739,8 @@ class navigator {
738
739
// / @param propagation contains the stepper and navigator states
739
740
template <typename propagator_state_t >
740
741
DETRAY_HOST_DEVICE inline void update_kernel (
741
- propagator_state_t &propagation, const navigation::config &cfg) const {
742
+ propagator_state_t &propagation, const navigation::config &cfg,
743
+ const context_type& ctx = {}) const {
742
744
743
745
state &navigation = propagation._navigation ;
744
746
const auto &det = navigation.detector ();
@@ -819,7 +821,7 @@ class navigator {
819
821
// Actor flagged cache as broken (other cases of 'no trust' are
820
822
// handeled after volume switch was checked in 'update()')
821
823
if (navigation.trust_level () == navigation::trust_level::e_no_trust) {
822
- navigation.m_heartbeat &= init (propagation, cfg);
824
+ navigation.m_heartbeat &= init (propagation, cfg, ctx );
823
825
return ;
824
826
}
825
827
}
0 commit comments