Skip to content

Commit

Permalink
using non-transposed ParticleMesh object.
Browse files Browse the repository at this point in the history
The non-transposed PM object is way faster than the transposed PM object
in filling gaussian fields. O(Nmesh) vs O(Nmesh^2 / Np**0.5)

This depends on MP-Gadget/pmesh#33
  • Loading branch information
rainwoodman committed Jun 1, 2018
1 parent 7e92a38 commit d9c7898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbodykit/source/catalog/lognormal.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _makesource(self, BoxSize, Nmesh):
# the particle mesh for gridding purposes
_Nmesh = numpy.empty(3, dtype='i8')
_Nmesh[:] = Nmesh
pm = ParticleMesh(BoxSize=BoxSize, Nmesh=_Nmesh, dtype='f4', comm=self.comm)
pm = ParticleMesh(BoxSize=BoxSize, Nmesh=_Nmesh, dtype='f4', comm=self.comm, transposed=False)

# growth rate to do RSD in the Zel'dovich approx
f = self.cosmo.scale_independent_growth_rate(self.attrs['redshift'])
Expand Down

0 comments on commit d9c7898

Please sign in to comment.