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 782c9dbc6c
commit 5394abbed1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,9 @@ def make_ode_fn(mesh_shape):
def pgd_correction(pos, params): 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 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) kvec = fftk(mesh_shape)