Skip to content

Commit

Permalink
Working on the C_xi.c implementation of the DK14 profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcclintock committed Aug 31, 2018
1 parent 5373046 commit cb383ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/C_xi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "C_xi.h"
#include "C_peak_height.h"
#include "C_power.h"

#include "gsl/gsl_integration.h"
Expand Down Expand Up @@ -255,15 +256,16 @@ double xi_mm_at_R_exact(double R, double*k, double*P, int Nk){
*/

int calc_xi_DK(double*R, int NR, double M, double rhos, double rs, double alpha, double be, double se, double beta, double gamma, int delta, double om, double*xi){
double rhom = rhomconst*om; //SM h^2/Mpc^3
xi[0] = 0;
double*rho_ein = (double*)malloc(NR*sizeof(double));
double*f_trans = (double*)malloc(NR*sizeof(double));
double*rho_outer = (double*)malloc(NR*sizeof(double));
int i;
double g_b = gamma/beta;
double r_t = 0; //NEED nu for this
double rhom = rhomconst*om; //SM h^2/Mpc^3
//Compute R200m
double Rdelta = pow(M/(1.33333333333*M_PI*rhom*delta), 0.33333333333);
double r_t = 0; //r_t = (1.9-0.18*nu)*R200m; //NEED nu for this
if (rhos < 0){ //means it wasn't passed in
rhos = rhos_einasto_at_M(M, rs, alpha, delta, om);
}
Expand Down

0 comments on commit cb383ab

Please sign in to comment.