Commit 820d9102 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent 7cf23052
......@@ -3313,8 +3313,8 @@ void engine_step(struct engine *e) {
gravity_exact_force_check(e->s, e, 1e-1);
#endif
/* Let's trigger a rebuild every-so-often for good measure */
if (!(e->policy & engine_policy_hydro) && //MATTHIEU improve this
/* Let's trigger a rebuild every-so-often for good measure */
if (!(e->policy & engine_policy_hydro) && // MATTHIEU improve this
(e->policy & engine_policy_self_gravity) && e->step % 20 == 0)
e->forcerebuild = 1;
......
......@@ -501,7 +501,7 @@ void runner_do_init_grav(struct runner *r, struct cell *c, int timer) {
/* Drift the multipole */
cell_drift_multipole(c, e);
/* Reset the gravity acceleration tensors */
gravity_field_tensors_init(&c->multipole->pot);
......
......@@ -47,15 +47,27 @@
#include "lock.h"
/* Task type names. */
const char *taskID_names[task_type_count] = {
"none", "sort", "self",
"pair", "sub_self", "sub_pair",
"init_grav", "ghost",
"extra_ghost", "drift", "kick1",
"kick2", "timestep", "send",
"recv", "grav_top_level", "grav_long_range",
"grav_mm", "grav_down", "cooling",
"sourceterms"};
const char *taskID_names[task_type_count] = {"none",
"sort",
"self",
"pair",
"sub_self",
"sub_pair",
"init_grav",
"ghost",
"extra_ghost",
"drift",
"kick1",
"kick2",
"timestep",
"send",
"recv",
"grav_top_level",
"grav_long_range",
"grav_mm",
"grav_down",
"cooling",
"sourceterms"};
/* Sub-task type names. */
const char *subtaskID_names[task_subtype_count] = {
......
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