Commit 8ebc446c authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only trigger an error if there are no tasks and a non-zero number of particles

parent 0e071ac4
......@@ -1867,7 +1867,8 @@ void engine_maketasks(struct engine *e) {
if (e->policy & engine_policy_external_gravity)
engine_make_external_gravity_tasks(e);
if (e->sched.nr_tasks == 0) error("No hydro or gravity tasks created.");
if (e->sched.nr_tasks == 0 && (s->nr_gparts > 0 || s->nr_parts > 0))
error("We have particles but no hydro or gravity tasks were created.");
/* Split the tasks. */
scheduler_splittasks(sched);
......
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