Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
8ebc446c
Commit
8ebc446c
authored
Oct 10, 2016
by
Matthieu Schaller
Browse files
Only trigger an error if there are no tasks and a non-zero number of particles
parent
0e071ac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
8ebc446c
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment