CRPropa / CRPropa3

CRPropa is a public astrophysical simulation framework for propagating extraterrestrial ultra-high energy particles. https://crpropa.github.io/CRPropa3/
https://crpropa.desy.de
GNU General Public License v3.0
68 stars 68 forks source link

Fix KISS Warnings in gas density classes #336

Closed lukasmerten closed 3 years ago

lukasmerten commented 3 years ago

@avvliet found that a lot of KISS warnings are raised, when he tested the massDistribution examples.

This was related to a bug in the implementation of the check if a warning should be raised. Now the KISS warning is raised when one or more components (HI, HII, H2) of the gas distributions is available but not activated. The option to deactivate individual components was implemented to allow for combinations of several gas distribution models.

Furthermore, some typos were fixed and the formatting of the warnings and the getDescription method updated.

lukasmerten commented 3 years ago

Yes, the warnings in the second part should show up, as some of the gas density components are deactivated.