Skip to content

Commit

Permalink
Merge pull request #5 from CLASS-SZ/olakusiak_dev
Browse files Browse the repository at this point in the history
fixing broken_pressure profile typo
  • Loading branch information
borisbolliet authored Nov 11, 2024
2 parents 049ae13 + 18b8f3a commit b421b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-sz/tools/class_sz_tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -9667,8 +9667,7 @@ for (ix=0; ix<N; ix++){
double alpha = pclass_sz->alpha_B12;

double p_gnfw_x = P0*pow(x[ix]/xc,gamma)*pow(1.+ pow(x[ix]/xc,alpha),-beta);
Px[ix] = p_gnfw_x;


if (pclass_sz->use_broken_pressure == 1) {
double M_break = pclass_sz->M_break_pressure/pba->h;; //convert to Msun
double alpha_break = pclass_sz->alpha_break_pressure;
Expand All @@ -9677,6 +9676,7 @@ for (ix=0; ix<N; ix++){
p_gnfw_x *= pow(m200_over_msol / M_break, alpha_break);
}
}
Px[ix] = p_gnfw_x;



Expand Down

0 comments on commit b421b96

Please sign in to comment.