-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
For the problem in code line 214 # FIXME: Add 2LPT. According to Vlah, the 2LPT of CDM is the only,
Isn't it already fixed by:
if order == 2:
source1[...] /= Omega_tot
source1[...] /= pt.D1(a) # goto z=0
source2 = lpt2source(source1)
for spname, sp in species.items():
DX2 = lpt1(source2, Q)
sp.S[...] += pt.D2(a) * DX2
sp.V[...] += a ** 2 * pt.f2(a) * pt.E(a) * pt.D2(a) * DX2
state = StateVector(self.cosmology, species, self.pm.comm)
state.a['S'] = a
state.a['P'] = a
Metadata
Metadata
Assignees
Labels
No labels