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

Store the radiated energy in the xpart when performing cooling

parent 5559a4be
Branches
Tags
1 merge request!247Radiated energy
......@@ -79,6 +79,9 @@ __attribute__((always_inline)) INLINE static void cooling_cool_part(
/* Update the internal energy */
hydro_set_internal_energy(p, u_new);
/* Store the radiated energy */
xp->cooling_data.radiated_energy += u_new - u_old;
}
/**
......
......@@ -114,6 +114,9 @@ __attribute__((always_inline)) INLINE static void cooling_cool_part(
* " */
/* "%g, du_dt*dt = %g, u_old + du_dt*dt = %g, u_new = %g\n", */
/* u_old, du_dt, dt, du_dt * dt, u_new, u_new_test); */
/* Store the radiated energy */
xp->cooling_data.radiated_energy += u_new - u_old;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment