diff options
Diffstat (limited to 'mass_profile/projector.hpp')
-rw-r--r-- | mass_profile/projector.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mass_profile/projector.hpp b/mass_profile/projector.hpp index fda6cdb..4ef4b32 100644 --- a/mass_profile/projector.hpp +++ b/mass_profile/projector.hpp @@ -193,7 +193,7 @@ namespace opt_utilities double v = calc_v(x, nsph, nrad) * pow(cm_per_pixel, 3); if(pcfunc) { - cfunc = (*pcfunc)((x[nsph+1] + x[nsph]) / 2.0); + double cfunc = (*pcfunc)((x[nsph+1] + x[nsph]) / 2.0); projected[nrad] += (unprojected[nsph] * unprojected[nsph] * cfunc * v / ne_np_ratio); } @@ -202,7 +202,7 @@ namespace opt_utilities projected[nrad] += unprojected[nsph] * unprojected[nsph] * v; } } - area = pi * (x[nrad+1]*x[nrad+1] - x[nrad]*x[nrad]); + double area = pi * (x[nrad+1]*x[nrad+1] - x[nrad]*x[nrad]); projected[nrad] /= area; projected[nrad] += bkg; } |