Skip to content

Commit

Permalink
fix extrapolator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Aug 21, 2024
1 parent 8d02fc8 commit 3c2406b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/Propagator/Propagator.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ auto Acts::Propagator<S, N>::propagate(propagator_state_t& state) const

if constexpr (std::is_same_v<N, Acts::Navigator>) {
auto getNextTargetIntersection = [&]() {
for (int i = 0; i < 1000; ++i) {
for (int i = 0; i < 10; ++i) {
SurfaceIntersection nextTargetIntersection =
m_navigator.estimateNextTarget(
state.navigation, state.position,
state.options.direction * state.direction);
if (!nextTargetIntersection.isValid()) {
return nextTargetIntersection;
return SurfaceIntersection::invalid();
}
IntersectionStatus preStepSurfaceStatus =
m_stepper.updateSurfaceStatus(
Expand Down
2 changes: 1 addition & 1 deletion Core/include/Acts/Propagator/detail/SteppingHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Acts::Intersection3D::Status updateSingleSurfaceStatus(
}

const double nearLimit = std::numeric_limits<double>::lowest();
const double farLimit = state.stepSize.value(ConstrainedStep::aborter);
const double farLimit = std::numeric_limits<double>::max();

if (sIntersection.isValid() &&
detail::checkPathLength(sIntersection.pathLength(), nearLimit, farLimit,
Expand Down

0 comments on commit 3c2406b

Please sign in to comment.