Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jan 15, 2025
1 parent afb3270 commit 03589c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/UnitTests/Core/Propagator/PropagatorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ struct SurfaceObserver {
.pathLength();

// Adjust the step size so that we cannot cross the target surface
state.stepping.stepSize.release(ConstrainedStep::Type::Navigator);
state.stepping.stepSize.release(ConstrainedStep::Type::Actor);
state.stepping.stepSize.update(distance * state.options.direction,
ConstrainedStep::Type::Navigator);
ConstrainedStep::Type::Actor);

// return true if you fall below tolerance
if (std::abs(distance) <= tolerance) {
++result.surfaces_passed;
result.surface_passed_r = perp(stepper.position(state.stepping));
state.stepping.stepSize.release(ConstrainedStep::Type::Navigator);
state.stepping.stepSize.release(ConstrainedStep::Type::Actor);
}
}
};
Expand Down

0 comments on commit 03589c6

Please sign in to comment.