Fix PYFFTW usage. Use numexpr
This commit is contained in:
parent
815c0b616a
commit
de1bda366a
3 changed files with 15 additions and 12 deletions
|
@ -12,8 +12,8 @@ cosmo['SIGMA8']=0.8344
|
|||
cosmo['ns']=0.9624
|
||||
N0=256
|
||||
|
||||
doSimulation=True
|
||||
simShift=True
|
||||
doSimulation=False
|
||||
simShift=False
|
||||
|
||||
snap_id=int(sys.argv[1])
|
||||
astart=1/100.
|
||||
|
@ -37,7 +37,7 @@ if doSimulation:
|
|||
dsim_hat = np.fft.rfftn(dsim)*(L/N0)**3
|
||||
Psim, bsim = bic.bin_power(np.abs(dsim_hat)**2/L**3, L, range=(0,1.), bins=150)
|
||||
|
||||
pos,_,density,N,L,_,_ = bic.run_generation("initial_density_2588.dat", 0.001, astart, cosmo, supersample=2, do_lpt2=True)
|
||||
pos,_,density,N,L,_,_ = bic.run_generation("initial_density_988.dat", 0.001, astart, cosmo, supersample=1, do_lpt2=True)
|
||||
|
||||
dcic = ct.cicParticles(pos, L, N0)
|
||||
dcic /= np.average(np.average(np.average(dcic, axis=0), axis=0), axis=0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue