Fixed internal boost
This commit is contained in:
parent
c50679c31d
commit
38e3e61237
1
external/external_build.cmake
vendored
1
external/external_build.cmake
vendored
@ -142,6 +142,7 @@ if (INTERNAL_BOOST)
|
||||
)
|
||||
set(Boost_INCLUDE_DIRS ${BOOST_SOURCE_DIR} CACHE STRING "Boost path" FORCE)
|
||||
set(Boost_LIBRARIES ${BOOST_SOURCE_DIR}/stage/lib/libboost_python.a CACHE STRING "Boost libraries" FORCE)
|
||||
set(Boost_FOUND YES)
|
||||
|
||||
ELSE (INTERNAL_BOOST)
|
||||
find_package(Boost 1.53)
|
||||
|
@ -185,7 +185,7 @@ def whitify(density, L, cosmo, supergenerate=1, zero_fill=False, func='HU_WIGGLE
|
||||
def build_Pk():
|
||||
ik = np.fft.fftfreq(N, d=L/N)*2*np.pi
|
||||
k = np.sqrt(ik[:,None,None]**2 + ik[None,:,None]**2 + ik[None,None,:(N/2+1)]**2)
|
||||
return p.compute(k)*cosmo['h']**3*L**3
|
||||
return p.compute(k)*L**3
|
||||
|
||||
Pk = build_Pk()
|
||||
Pk[0,0,0]=1
|
||||
|
Loading…
Reference in New Issue
Block a user