Skip to content

Commit

Permalink
Fix estimation of kernel support. (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
tilmantroester committed Mar 18, 2021
1 parent 285066d commit 438bcdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ccl_tracers.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,16 @@ ccl_cl_tracer_t *ccl_cl_tracer_t_new(ccl_cosmology *cosmo,
tr->chi_max = chi_w[n_w-1];

// Find minimum
for (ichi=0; ichi < n_w; ichi++) {
if (fabs(w_w[ichi]) >= w_max) {
for (ichi=0; ichi < n_w-1; ichi++) {
if (fabs(w_w[ichi+1]) >= w_max) {
tr->chi_min = chi_w[ichi];
break;
}
}

// Find maximum
for (ichi=n_w-1; ichi >= 0; ichi--) {
if (fabs(w_w[ichi]) >= w_max) {
for (ichi=n_w-1; ichi >= 1; ichi--) {
if (fabs(w_w[ichi-1]) >= w_max) {
tr->chi_max = chi_w[ichi];
break;
}
Expand Down

0 comments on commit 438bcdf

Please sign in to comment.