Skip to content

Commit e6a902d

Browse files
author
Vakho Tsulaia
committed
Removed default value of the context argument of the constructor of propagation state. Step 4
1 parent 4e8d37d commit e6a902d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/include/detray/propagator/propagator.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct propagator {
113113
DETRAY_HOST_DEVICE state(const bound_track_parameters_type &param,
114114
const field_t &magnetic_field,
115115
const detector_type &det,
116-
const context_type &ctx = {})
116+
const context_type &ctx)
117117
: _stepping(param, magnetic_field, det, ctx),
118118
_navigation(det),
119119
_context(ctx) {}

tests/integration_tests/cpu/material/material_interaction.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ GTEST_TEST(detray_material, telescope_geometry_volume_material) {
388388
prop_cfg.navigation.overstep_tolerance = -100.f * unit<float>::um;
389389
propagator_t p{prop_cfg};
390390

391-
propagator_t::state state(bound_param, const_bfield, det);
391+
propagator_t::state state(bound_param, const_bfield, det, prop_cfg.context);
392392

393393
pathlimit_aborter::state abrt_state{path_limit};
394394
auto actor_states = detray::tie(abrt_state);

tests/integration_tests/cpu/propagator/jacobian_validation.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ bound_getter<algebra_type>::state evaluate_bound_param(
482482
detray::tie(transporter_state, bound_getter_state, resetter_state);
483483

484484
// Init propagator states for the reference track
485-
typename propagator_t::state state(initial_param, field, det);
485+
typename propagator_t::state state(initial_param, field, det, cfg.context);
486486

487487
// Run the propagation for the reference track
488488
state.set_particle(ptc);
@@ -521,7 +521,7 @@ bound_param_vector_type get_displaced_bound_vector(
521521
bound_track_parameters<algebra_type> dparam = ref_param;
522522
dparam[target_index] += displacement;
523523

524-
typename propagator_t::state dstate(dparam, field, det);
524+
typename propagator_t::state dstate(dparam, field, det, cfg.context);
525525

526526
// Actor states
527527
parameter_transporter<algebra_type>::state transporter_state{};

0 commit comments

Comments
 (0)