Skip to content
Snippets Groups Projects
Commit 70a7f412 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Put the FPE check back in for now. There might still be unexpected problematic...

Put the FPE check back in for now. There might still be unexpected problematic side cases that need special treatment in the enrichment routine.
parent fcbefd52
No related branches found
No related tags found
No related merge requests found
...@@ -735,7 +735,8 @@ void compute_stellar_evolution(const struct feedback_props* feedback_props, ...@@ -735,7 +735,8 @@ void compute_stellar_evolution(const struct feedback_props* feedback_props,
feedback_reset_feedback(sp, feedback_props); feedback_reset_feedback(sp, feedback_props);
/* Update the weights used for distribution */ /* Update the weights used for distribution */
const float enrichment_weight = 1.f / enrichment_weight_inv; const float enrichment_weight =
(enrichment_weight_inv != 0.f) ? 1.f / enrichment_weight_inv : 0.f;
sp->feedback_data.to_distribute.enrichment_weight = enrichment_weight; sp->feedback_data.to_distribute.enrichment_weight = enrichment_weight;
/* Compute properties of the stochastic SNII feedback model. */ /* Compute properties of the stochastic SNII feedback model. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment