Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M or M/h or M*h #5

Open
rbmetcalf opened this issue Sep 29, 2016 · 1 comment
Open

M or M/h or M*h #5

rbmetcalf opened this issue Sep 29, 2016 · 1 comment
Assignees

Comments

@rbmetcalf
Copy link
Member

@cgiocoli Need some help here.
The following lines in your HaloCalculator (renamed some time ago) are
not consistent with each other. It would help if the constructor were unambiguous about what m is - it should be either physical mass (preferred) or
m/h or m*h and its meaning not depend on flags in the functions.

Here is the constructor

,double mass /// halo mass in M_sun/h TODO Carlo: Is this really M_sun/h

The comment at

case (-1): // Munoz-Cuartas et al. 2011, as the previous but M is assumet in M/h

Is inconsistent with these lines

logc=a*log10(m*co->gethubble())+b;

logc=a*log10(m)+b;

@rbmetcalf
Copy link
Member Author

I can make the changes if you cannot.

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

No branches or pull requests

2 participants