Skip to content

Commit

Permalink
add todo and forget..
Browse files Browse the repository at this point in the history
  • Loading branch information
xji3 committed Oct 31, 2023
1 parent a239ee1 commit 61de19f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ void doReflection(double[] position, MassPreconditioner preconditioning, Wrapped
double remainingTime) {
updatePosition(position, preconditioning, momentum, time);
momentum.set(indices[0], -momentum.get(indices[0]));
position[indices[0]] = eventLocation[0];
position[indices[0]] = eventLocation[0]; // TODO: XJ: they should be the same, change it to assert?
}
},
Collision {
Expand All @@ -403,7 +403,7 @@ void doReflection(double[] position, MassPreconditioner preconditioning, Wrapped

for (int index : indices) {
momentum.set(index, updatedMomentum.get(index));
position[index] = eventLocation[0];
position[index] = eventLocation[0]; // TODO: XJ: they should be the same, change it to assert?
}

}
Expand Down

0 comments on commit 61de19f

Please sign in to comment.