Skip to content

Floating point exception #416

Closed Answered by abensonca
aryanrahimieh asked this question in Q&A
Discussion options

You must be logged in to vote

I think the problem here is in the definition of what we mean by "transfer function" in this case. Galacticus defines the transfer function, $T(k)$, through:

$P(k) = T^2(k) P^\prime(k)$

where $P(k) is the power spectrum at late times and $P^\prime(k)$ is the primordial power spectrum.

In your case I think you are assuming:

$P(k) = T_\mathrm{IDM}^2(k) T^2_\mathrm{CDM}(k) P^\prime(k)$

and supplying in your file just $T_\mathrm{IDM}$. But, that means that Galacticus is attempting to evaluate:

$P(k) = T_\mathrm{IDM}^2(k) P^\prime(k)$

so it's missing the CDM part of the transfer function.

In this case, you can correct the problem by telling it to apply your $T_\mathrm{IDM}$ on top of some othe…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@abensonca
Comment options

@aryanrahimieh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by abensonca
Comment options

You must be logged in to vote
1 reply
@abensonca
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working technical
2 participants