Commit 55998292 authored by Matthieu Tristram's avatar Matthieu Tristram
Browse files

Clean WARNING

parent 764ea70c
...@@ -557,7 +557,7 @@ double ClassEngine::get_growthD(double z) ...@@ -557,7 +557,7 @@ double ClassEngine::get_growthD(double z)
double ClassEngine::get_Pklin(double k, double z){ double ClassEngine::get_Pklin(double k, double z){
double tau; double tau;
int index; int ret, index;
double * pk_ic = NULL; double * pk_ic = NULL;
...@@ -565,19 +565,19 @@ double ClassEngine::get_Pklin(double k, double z){ ...@@ -565,19 +565,19 @@ double ClassEngine::get_Pklin(double k, double z){
background_tau_of_z(&ba,z,&tau); background_tau_of_z(&ba,z,&tau);
background_at_tau(&ba,tau,ba.long_info,ba.inter_normal, &index, pvecback); background_at_tau(&ba,tau,ba.long_info,ba.inter_normal, &index, pvecback);
int ret=spectra_pk_at_k_and_z(&ba,&pm,&sp,k,z,&mypk,pk_ic); ret=spectra_pk_at_k_and_z(&ba,&pm,&sp,k,z,&mypk,pk_ic);
return mypk; return mypk;
} }
double ClassEngine::get_PkNL(double k, double z){ double ClassEngine::get_PkNL(double k, double z){
double tau; double tau;
int index; int ret,index;
double mypk; double mypk;
background_tau_of_z(&ba,z,&tau); background_tau_of_z(&ba,z,&tau);
//cout << "pknl after bkg "<<tau<< endl; //cout << "pknl after bkg "<<tau<< endl;
background_at_tau(&ba,tau,ba.long_info,ba.inter_normal, &index, pvecback); background_at_tau(&ba,tau,ba.long_info,ba.inter_normal, &index, pvecback);
//cout << "pknl after bkg @tau "<<tau<< " z "<<z<< " k "<< k << endl; //cout << "pknl after bkg @tau "<<tau<< " z "<<z<< " k "<< k << endl;
int ret = spectra_pk_nl_at_k_and_z(&ba,&pm,&sp,k,z,&mypk); ret = spectra_pk_nl_at_k_and_z(&ba,&pm,&sp,k,z,&mypk);
return mypk; return mypk;
} }
...@@ -685,7 +685,7 @@ double ClassEngine::com_distance(double z) ...@@ -685,7 +685,7 @@ double ClassEngine::com_distance(double z)
double ClassEngine::get_Da(double z) double ClassEngine::get_Da(double z)
{ {
double tau; double tau, H_z, D_ang;
int index; int index;
//transform redshift in conformal time //transform redshift in conformal time
background_tau_of_z(&ba,z,&tau); background_tau_of_z(&ba,z,&tau);
...@@ -694,8 +694,8 @@ double ClassEngine::get_Da(double z) ...@@ -694,8 +694,8 @@ double ClassEngine::get_Da(double z)
background_at_tau(&ba,tau,ba.long_info,ba.inter_normal, &index, pvecback); background_at_tau(&ba,tau,ba.long_info,ba.inter_normal, &index, pvecback);
double H_z=pvecback[ba.index_bg_H]; H_z=pvecback[ba.index_bg_H];
double D_ang=pvecback[ba.index_bg_ang_distance]; D_ang=pvecback[ba.index_bg_ang_distance];
#ifdef DBUG #ifdef DBUG
cout << "H_z= "<< H_z <<endl; cout << "H_z= "<< H_z <<endl;
cout << "D_ang= "<< D_ang <<endl; cout << "D_ang= "<< D_ang <<endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment