Skip to content
Snippets Groups Projects
Commit cfda4b97 authored by Zachary Rey's avatar Zachary Rey
Browse files

Correct specific energy ejected

parent a7e01bef
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ runner_iact_nonsym_feedback_apply( ...@@ -142,7 +142,7 @@ runner_iact_nonsym_feedback_apply(
/* TODO: Distribute pre-SN */ /* TODO: Distribute pre-SN */
if (e_preSN != 0.0) { if (e_preSN != 0.0) {
/* Energy received */ /* Energy received */
const double du = (e_preSN) * weight; const double du = (e_preSN) * weight / new_mass;
message("the received energy of particle %lld is : %e",pj->id,du); message("the received energy of particle %lld is : %e",pj->id,du);
xpj->feedback_data.delta_u += du; xpj->feedback_data.delta_u += du;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment