Skip to content

Commit

Permalink
Refactor integrators.py to make it more general. (#589)
Browse files Browse the repository at this point in the history
* Refactor integrators.py to make it more general.
Also add momentum update based on Esh dynamics

Co-authored-by: Reuben Cohn-Gordon <reubenharry@gmail.com>

* Refactor to use integrator generation functions

* Additional refactoring

Also add test for esh momentum update.

Co-authored-by: Reuben Cohn-Gordon <reubenharry@gmail.com>

* Minor clean up.

* Use standard JAX ops

* Adding a test for energy preservation.

Co-authored-by: Reuben Cohn-Gordon <reubenharry@gmail.com>

* fix formatting

---------

Co-authored-by: Reuben Cohn-Gordon <reubenharry@gmail.com>
  • Loading branch information
junpenglao and reubenharry authored Nov 27, 2023
1 parent 16df9a6 commit e0f107f
Show file tree
Hide file tree
Showing 4 changed files with 470 additions and 180 deletions.
Loading

0 comments on commit e0f107f

Please sign in to comment.