Update jaxpm/pm.py

Co-authored-by: Francois Lanusse <EiffL@users.noreply.github.com>
This commit is contained in:
Denise Lanzieri 2022-05-18 09:59:59 +02:00 committed by GitHub
parent dd71d359e0
commit 3df0c05d29

View file

@ -75,6 +75,9 @@ def make_ode_fn(mesh_shape):
def pgd_correction(pos, params):
"""
improve the short-range interactions of PM-Nbody simulations with potential gradient descent method, based on https://arxiv.org/abs/1804.00671
args:
pos: particle positions [npart, 3]
params: [alpha, kl, ks] pgd parameters
"""
kvec = fftk(mesh_shape)