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
38b83e2e
Commit
38b83e2e
authored
Dec 19, 2017
by
Matthieu Schaller
Browse files
Restore the activation of the external gravity tasks in engine_marktasks()
parent
bb1824d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
38b83e2e
...
...
@@ -3168,6 +3168,15 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
}
}
/* Activate the gravity drift */
else
if
(
t
->
type
==
task_type_self
&&
t
->
subtype
==
task_subtype_external_grav
)
{
if
(
cell_is_active_gravity
(
ci
,
e
))
{
scheduler_activate
(
s
,
t
);
cell_activate_drift_gpart
(
t
->
ci
,
s
);
}
}
#ifdef SWIFT_DEBUG_CHECKS
else
{
error
(
"Invalid task type / sub-type encountered"
);
...
...
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