Repository navigation
Floating point exception #416
|
I changed this part of the xml file in order to use a file for the transfer function but I’m getting an error. I was wondering if I'm using it right. into this: And this is the error that I'm getting:
|
Replies: 4 comments 3 replies
|
That change to the parameter file looks reasonable. Is there any additional output before the error message? If so, post it here - it might have some useful indications of possible causes. It's also possible that the problem is in your You should be able to create the HDF5 file using any language - e.g. |
|
I checked the log10 of k and T and the vectors looks healthy. I also changed only one of the values of the transfer function and I received the same error. I created this hdf5 file with built-in tools in |
|
I think the problem here is in the definition of what we mean by "transfer function" in this case. Galacticus defines the transfer function, where $P(k) is the power spectrum at late times and In your case I think you are assuming: and supplying in your file just 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 then it will apply your transfer function on top of an A few other points: You should use a CDM particle (not thermal WDM) for this model as I believe you're capturing all DM particle effects in your transfer function and treating the particle as collisionless CDM after that: Galacticus warns that the cosmological parameters set in the parameter file do not match those in your transfer function file. It will run anyway, but you most likely want to make these values consistent. If the values in your transfer function are correct then in the Galacticus parameter file you will need to set: I would not use the the Barkana et al. (2001) method for the critical overdensity for collapse - this is specific to WDM. So change this to: |
|
Thank you Andrew. This is really helpful. It worked! |
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:
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:
and supplying in your file just$T_\mathrm{IDM}$ . But, that means that Galacticus is attempting to evaluate:
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…