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
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@ cosmo['omega_B_0']=0.049
|
|||
cosmo['SIGMA8']=0.8344
|
||||
cosmo['ns']=0.9624
|
||||
|
||||
supergen=2
|
||||
supergen=1
|
||||
zstart=50
|
||||
astart=1/(1.+zstart)
|
||||
halfPixelShift=False
|
||||
|
||||
if __name__=="__main__":
|
||||
bic.write_icfiles(*bic.run_generation("initial_condition_borg.dat", 0.001, astart, cosmo, supersample=2, shiftPixel=halfPixelShift, do_lpt2=False), supergenerate=supergen)
|
||||
bic.write_icfiles(*bic.run_generation("initial_density_988.dat", 0.001, astart, cosmo, supersample=1, shiftPixel=halfPixelShift, do_lpt2=False), supergenerate=supergen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue