Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
230
stars
285
forks
source link
nan values in a different case other than clp #476
What I did:
I am using a modified version of class by implementing a new case other than CLP in w_fld. I did something like this:
case PDE:
*w_fld = -1.-(a*(2.*pba->alpha*(a-pba->a_m)+3.*(a-pba->a_m)*(a-pba->a_m))/(1.+pba->alpha*(a-pba->a_m)*(a-pba->a_m)+pba->beta*(a-pba->a_m)*(a-pba->a_m)*(a-pba->a_m))/3.);
printf("w_fld=%g\n",w_fld);
and the corresponding modifications according to it. All the compilation worked well , all thanks to well written interactive code of yours.
Problem I am facing:
When I run the class from the .ini file including the extra parameters that I included. It was giving me a segmentation fault. So, as suggested earlier by you guys in my previous queries to print all the modifications I made. I did that . Then , I found out that It was giving nan values in some sections. The output was like this:
Dear Developers,
Basic information:
CLASS version 3.2.0
Ubuntu mate 18.04
gcc version 7.5.0
What I did: I am using a modified version of class by implementing a new case other than CLP in w_fld. I did something like this:
and the corresponding modifications according to it. All the compilation worked well , all thanks to well written interactive code of yours.
Problem I am facing: When I run the class from the .ini file including the extra parameters that I included. It was giving me a segmentation fault. So, as suggested earlier by you guys in my previous queries to print all the modifications I made. I did that . Then , I found out that It was giving
nan
values in some sections. The output was like this:I don't know why it is giving
nan
values. Please suggest me what could be wrong in here. Your help would mean a lot to me.Thanks in advance, shan.