From 815c0b616ade9ba923ffee54622b55166800e509 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Fri, 4 Jul 2014 13:11:38 +0200 Subject: [PATCH] Fixes --- python_sample/icgen/borgicgen.py | 2 +- python_sample/icgen/gen_ic_from_borg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python_sample/icgen/borgicgen.py b/python_sample/icgen/borgicgen.py index bcb141c..f48b49f 100644 --- a/python_sample/icgen/borgicgen.py +++ b/python_sample/icgen/borgicgen.py @@ -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) diff --git a/python_sample/icgen/gen_ic_from_borg.py b/python_sample/icgen/gen_ic_from_borg.py index 9ab8a10..89ce1cb 100644 --- a/python_sample/icgen/gen_ic_from_borg.py +++ b/python_sample/icgen/gen_ic_from_borg.py @@ -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)