Skip to content

Assertion error msq >= 0.0 #89

@tianluyuan

Description

@tianluyuan

I'm not sure if this is expected or not, but when generating high-Enu interactions I get a rk_P4 assertion error. Perhaps a precision issue somewhere?

(venv_siren) tyuan@cobalt-9:Example1$ g d DIS_IceCube.py |cat
diff --git i/resources/Examples/Example1/DIS_IceCube.py w/resources/Examples/Example1/DIS_IceCube.py
index db991351..95e6a236 100644
--- i/resources/Examples/Example1/DIS_IceCube.py
+++ w/resources/Examples/Example1/DIS_IceCube.py
@@ -42,6 +42,7 @@ primary_physical_distributions["mass"] = mass_dist
 
 # energy distribution
 edist = siren.distributions.PowerLaw(2, 1e3, 1e6)
+edist = siren.distributions.Monoenergetic(1e9)
 primary_injection_distributions["energy"] = edist
 primary_physical_distributions["energy"] = edist
 
(venv_siren) tyuan@cobalt-9:Example1$ python3 DIS_IceCube.py 
WARNING: DarkNews is not installed in the local environment
python3: /home/tyuan/data/projects/SIREN/vendor/rk/rk/rk_P4.icc:113: double rk::P4::m() const: Assertion `msq >= 0.0' failed.
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions