Open deltasata opened 4 years ago
Hi, I am having the same problem. Have you found some fix to it?
Hi
Yes, this error is there for a reason: if w=0 when imposing initial conditions, one needs to be careful. First, rho_fld should be added to rho_m
in the beginning of perturb_initial_conditions()
. Then, inside the if (pba->use_ppf == _FALSE_) {
you should work out if the initial conditions still hold.
I will not guarantee that this is the only things you need to do, you need to check for yourselves :)
Cheers, Thomas
In the dark sector I am adding an extra fluid which behaves like CDM (
w_fld -> 0
asz>>0
) at early times. The sound speed for this fluid is set to 1 (no clustering). I changed CLASS correctly and background calculation matches well with analytical solutions. However, I am getting an error from the perturbation.c:Error in perturb_init =>perturb_init(L:547) :condition (w_fld_ini >= 0.) is true; The fluid is meant to be negligible at early time, and unimportant for defining the initial conditions of other species. You are using parameters for which this assumption may break down, since at early times you have w_fld(a--->0) = 0.000000e+00 >= 0
When I set
cs2_fld = 1
I expect the fluid has no contribution in perturbation calculations other than simply changing the background expansion. Why this error is placed there?If I simply change the
perturbation.c
file (line 545) as:class_test(w_fld_ini >= 0., ........
toclass_test(w_fld_ini >0., ........
the error goes away, but would this change cause any problem, either in computation or in physics part? As expected I want to use it with montepython.Thanks in advance.