Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch position and momentum updates to make particle push symplectic
The momentum update needs to use fields that are consistant with the current particle locations. This requires updating the momentum first, and then using this new momentum to push the particles. Essentially, the update is now p_(n - 1/2) -> p_(n + 1/2) x_n -> x_(n + 1) I am currently being pretty sloppy with the half timestep momentums, but that should probably be fixed in the future.
- Loading branch information