Added fast parallel interpolator. Some adjustment to BORG icgen
This commit is contained in:
parent
21507e3013
commit
8d4ee1bfdd
6 changed files with 48 additions and 7 deletions
|
@ -2,6 +2,7 @@ from _cosmotool import *
|
|||
from _project import *
|
||||
from _cosmo_power import *
|
||||
from _cosmo_cic import *
|
||||
from _fast_interp import *
|
||||
from .grafic import writeGrafic, writeWhitePhase, readGrafic, readWhitePhase
|
||||
from .borg import read_borg_vol
|
||||
from .cic import cicParticles
|
||||
|
|
|
@ -8,7 +8,7 @@ class CubeFT(object):
|
|||
|
||||
self.N = N
|
||||
self.align = pyfftw.simd_alignment
|
||||
self.L = L
|
||||
self.L = float(L)
|
||||
self.max_cpu = multiprocessing.cpu_count() if max_cpu < 0 else max_cpu
|
||||
self._dhat = pyfftw.n_byte_align_empty((self.N,self.N,self.N/2+1), self.align, dtype='complex64')
|
||||
self._density = pyfftw.n_byte_align_empty((self.N,self.N,self.N), self.align, dtype='float32')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue