Commit abb0793d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Conserve energy !

parent c4e17fad
......@@ -470,7 +470,7 @@ __attribute__((always_inline)) INLINE static void runner_iact_force(
/* Change in entropy */
pi->entropy_dt += 0.5f * mj * visc_term * dvdr;
pj->entropy_dt -= 0.5f * mi * visc_term * dvdr;
pj->entropy_dt += 0.5f * mi * visc_term * dvdr;
}
/**
......
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