Skip to content

New horndeski#3

Open
kpardo wants to merge 5 commits into
masterfrom
new_horndeski
Open

New horndeski#3
kpardo wants to merge 5 commits into
masterfrom
new_horndeski

Conversation

@kpardo
Copy link
Copy Markdown

@kpardo kpardo commented Feb 16, 2018

This allows the horndeski analysis to take place. @philbull does this all look good to you?

Comment thread theory/modgrav.c Outdated
double cs_sqrd = -(cs_term1 + cs_term2)/(H*H*alpha);
return cs_sqrd;
}
double horndeski_alpha(double a, double fz){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function could be declared inline, which may help speed things up very slightly.

Comment thread theory/modgrav.c Outdated
double alpha_M = cosmology.MGalpha_M*fz;

double alpha = horndeski_alpha(a, fz);
double cs_term1 = (2.-alpha_B)*(Hprime - (alpha_M -alpha_T)*H*H-H*H*alpha_B/(2.*(1.+alpha_T)));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a common factor of H*H for the last two terms. Is there any reason why they're broken apart?
(Also, why the weird indent?)

Comment thread theory/modgrav.c
//this is all in the quasistatic limit!!
//given by Eqn 43 in Tessa Baker notes
//!!!!currently assuming Mpl = Mstar!!!!
double fz = omegav/hub*1./cosmology.Omega_v;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment saying how this is defined, please? We might want to use a different definition at some point, so good to be clear what this is.

Comment thread theory/cosmo2D_fourier.c Outdated
}
double W_kappa(double a, double fK, double nz){
double wkappa = 1.5*cosmology.Omega_m*fK/a*g_tomo(a,(int)nz);
double aa=a*a;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need to define this separately, as aa is only used once.

Comment thread theory/cosmo2D_fourier.c Outdated
double omegav=omv_vareos(a);
double hub = hoverh0(a);
hub = hub*hub;
if(cosmology.MGSigma != 0.){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be enclosed in a preprocessor macro.

Comment thread theory/cosmo3D.c Outdated
@@ -99,7 +99,10 @@ int func_for_growfac(double a,const double y[],double f[],void *params)
hub = hub*hub;
f[0]=y[1];
if(cosmology.MGmu != 0){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also be enclosed in preprocessor macros (IFDEF etc).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would you use ifdef instead of define here?

…grav parameters are non-zero but the modgrav flag is not added to the compiler directions
@kpardo kpardo requested a review from elikrause February 22, 2018 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants