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
......@@ -735,7 +735,8 @@ void compute_stellar_evolution(const struct feedback_props* feedback_props,
feedback_reset_feedback(sp, feedback_props);
/* 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;
/* Compute properties of the stochastic SNII feedback model. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment