Skip to content

Commit

Permalink
fixing broken_pressure_profile typo
Browse files Browse the repository at this point in the history
  • Loading branch information
olakusiak committed Nov 11, 2024
1 parent 961ce19 commit 18b8f3a
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 18b8f3a

Please sign in to comment.