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

Code formatting

parent 0a0cff1d
...@@ -1157,7 +1157,8 @@ void cell_check_multipole(struct cell *c, void *data) { ...@@ -1157,7 +1157,8 @@ void cell_check_multipole(struct cell *c, void *data) {
/* Now compare the multipole expansion */ /* Now compare the multipole expansion */
if (!gravity_multipole_equal(&ma, c->multipole, tolerance)) { if (!gravity_multipole_equal(&ma, c->multipole, tolerance)) {
message("Multipoles are not equal at depth=%d! tol=%f", c->depth, tolerance); message("Multipoles are not equal at depth=%d! tol=%f", c->depth,
tolerance);
message("Correct answer:"); message("Correct answer:");
gravity_multipole_print(&ma.m_pole); gravity_multipole_print(&ma.m_pole);
message("Recursive multipole:"); message("Recursive multipole:");
...@@ -1504,10 +1505,9 @@ void cell_drift_all_multipoles(struct cell *c, const struct engine *e) { ...@@ -1504,10 +1505,9 @@ void cell_drift_all_multipoles(struct cell *c, const struct engine *e) {
/* Check that we are actually going to move forward. */ /* Check that we are actually going to move forward. */
if (ti_current < ti_old_multipole) error("Attempt to drift to the past"); if (ti_current < ti_old_multipole) error("Attempt to drift to the past");
/* Drift the multipole */ /* Drift the multipole */
if (ti_current > ti_old_multipole) if (ti_current > ti_old_multipole) gravity_drift(c->multipole, dt);
gravity_drift(c->multipole, dt);
/* Are we not in a leaf ? */ /* Are we not in a leaf ? */
if (c->split) { if (c->split) {
......
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