Added parallelization to _project.pyx code
This commit is contained in:
parent
5b133a9ac8
commit
401ddc8a8b
9 changed files with 173 additions and 122 deletions
|
@ -10,7 +10,7 @@ cosmo['omega_k_0'] = 0
|
|||
cosmo['omega_B_0']=0.049
|
||||
cosmo['SIGMA8']=0.8344
|
||||
cosmo['ns']=0.9624
|
||||
N0=256
|
||||
N0=128
|
||||
|
||||
doSimulation=True
|
||||
|
||||
|
@ -29,7 +29,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_condition_borg.dat", 0.001, astart, cosmo, supersample=2, do_lpt2=True)
|
||||
pos,_,density,N,L,_,_ = bic.run_generation("initial_density_1380.dat", 0.001, astart, cosmo, supersample=2, do_lpt2=True)
|
||||
|
||||
dcic = ct.cicParticles(pos, L, N0)
|
||||
dcic /= np.average(np.average(np.average(dcic, axis=0), axis=0), axis=0)
|
||||
|
@ -50,5 +50,5 @@ Pref, bref = bic.compute_ref_power(L, N0, cosmo, range=(0,1.), bins=150)
|
|||
Pcic /= D1_0**2
|
||||
Pdens /= D1_0**2
|
||||
|
||||
borg_evolved = ct.read_borg_vol("final_density_380.dat")
|
||||
borg_evolved = ct.read_borg_vol("final_density_1380.dat")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue