This commit is contained in:
Guilhem Lavaux 2014-07-04 13:11:38 +02:00
parent d31d1245c2
commit 815c0b616a
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ def whitify(density, L, cosmo, supergenerate=1, func='HU_WIGGLES'):
Pk = build_Pk()
Pk[0,0,0]=1
cube = CubeFT(N, L)
cube = CubeFT(L, N)
cube.density = density
density_hat = cube.rfft()
density_hat /= np.sqrt(Pk)

View File

@ -15,4 +15,4 @@ astart=1/(1.+zstart)
halfPixelShift=False
if __name__=="__main__":
bic.write_icfiles(*bic.run_generation("initial_condition_borg.dat", 0.001, astart, cosmo, supersample=1, shiftPixel=halfPixelShift, do_lpt2=False), supergenerate=supergen)
bic.write_icfiles(*bic.run_generation("initial_condition_borg.dat", 0.001, astart, cosmo, supersample=2, shiftPixel=halfPixelShift, do_lpt2=False), supergenerate=supergen)