Added OpenCL CIC code
This commit is contained in:
parent
1e733f2318
commit
f6ad248f75
8 changed files with 297 additions and 78 deletions
|
@ -1,6 +1,11 @@
|
|||
import pyfftw
|
||||
import numpy as np
|
||||
import cosmotool as ct
|
||||
import borgicgen as bic
|
||||
import pickle
|
||||
|
||||
with file("wisdom") as f:
|
||||
pyfftw.import_wisdom(pickle.load(f))
|
||||
|
||||
cosmo={'omega_M_0':0.3175, 'h':0.6711}
|
||||
cosmo['omega_lambda_0']=1-cosmo['omega_M_0']
|
||||
|
@ -9,11 +14,11 @@ cosmo['omega_B_0']=0.049
|
|||
cosmo['SIGMA8']=0.8344
|
||||
cosmo['ns']=0.9624
|
||||
|
||||
supergen=2
|
||||
supergen=8
|
||||
zstart=50
|
||||
astart=1/69.#1/(1.+zstart)
|
||||
astart=1/(1.+zstart)
|
||||
halfPixelShift=False
|
||||
zero_fill=True
|
||||
zero_fill=False
|
||||
|
||||
if __name__=="__main__":
|
||||
bic.write_icfiles(*bic.run_generation("initial_density_1380.dat", 0.001, astart, cosmo, supersample=1, shiftPixel=halfPixelShift, do_lpt2=False), supergenerate=supergen, zero_fill=zero_fill)
|
||||
bic.write_icfiles(*bic.run_generation("initial_density_1872.dat", 0.001, astart, cosmo, supersample=1, shiftPixel=halfPixelShift, do_lpt2=False), supergenerate=supergen, zero_fill=zero_fill)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue