Fixes
This commit is contained in:
parent
d31d1245c2
commit
815c0b616a
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user