Upgraded gadget load to support variable masses. Adjusted simple3DFilter for that too.
This commit is contained in:
parent
7df2cdbe7c
commit
8809d6c255
5 changed files with 26 additions and 10 deletions
|
@ -156,7 +156,7 @@ def whitify(density, L, cosmo, supergenerate=1, func='HU_WIGGLES'):
|
|||
|
||||
print np.where(np.isnan(density_hat_super))[0].size
|
||||
|
||||
cube = CubeFT(Ns, L)
|
||||
cube = CubeFT(L, Ns)
|
||||
cube.dhat = density_hat_super
|
||||
return np.fft.irfftn(density_hat_super)*Ns**1.5
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue