Skip to content

Commit

Permalink
Save U_ind to pme_force
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXinyan940 committed Nov 22, 2023
1 parent d11ef9d commit 7a7a7e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dmff/admp/pme.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def get_energy(
U_init=U_init * 10.0,
steps_pol=self.steps_pol,
) # nm to angstrom
self.U_ind = U_ind
# here we rely on Feynman-Hellman theorem, drop the term dV/dU*dU/dr !
# self.U_ind = jax.lax.stop_gradient(U_ind)
energy = energy_fn(
Expand Down

0 comments on commit 7a7a7e8

Please sign in to comment.