COSMIC-PopSynth / COSMIC

COSMIC (Compact Object Synthesis and Monte Carlo Investigation Code)
GNU General Public License v3.0
48 stars 59 forks source link

Stop statements #632

Closed poojanagrawal closed 3 months ago

poojanagrawal commented 3 months ago

When calling Fortran from Python, if Fortran code stops for some reason, the Python part doesn't stop by itself. Instead, it waits patiently for Fortran to return something (until the user's patience runs out or the code's runtime). With this pull request, METISSE now sends an error message back to Python when a Fatal Error occurs in zcnsts.f. For later stages of the code, METISSE continues to run with some dummy values but returns an error to set evolve_type to 101: METISSE error.

katiebreivik commented 3 months ago

woohoo!