Skip to content

Commit f99b46e

Browse files
committed
Added a small commment
1 parent 0e434c0 commit f99b46e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xcoll/geometry/crossings/path_length.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ void simpson(FindRoot finder, LocalTrajectory traj, int32_t subintervals) {
4242

4343
/*gpufun*/
4444
void find_path_length_analytic(FindRoot finder, LocalTrajectory traj){
45-
// analytical drift does not save l2, so we need to compute it here
46-
double l2 = FindRoot_get_solution_l(finder, 0); // THIS DOES NOT EXIST FOR ANALYTICAL SOLUTIONS; EITHER FIX OR WE NEVER NEED THIS
45+
double l2 = FindRoot_get_solution_l(finder, 0); // We assume we only care for the first solution
4746
double s0 = LocalTrajectory_func_s(traj, 0); // l1 = 0
4847
double x0 = LocalTrajectory_func_x(traj, 0);
4948
double s1 = LocalTrajectory_func_s(traj, l2); // l2 = solution for l

0 commit comments

Comments
 (0)