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
846e08b4
Commit
846e08b4
authored
Jun 26, 2017
by
Pedro Gonnet
Browse files
clear the do_drift and do_sub_drift flags after drifting.
parent
0c18b6df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
846e08b4
...
...
@@ -1910,6 +1910,10 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) {
/* Update the time of the last drift */
c
->
ti_old_part
=
ti_current
;
/* Clear the drift flags. */
c
->
do_drift
=
0
;
c
->
do_sub_drift
=
0
;
}
else
if
(
force
&&
ti_current
>
ti_old_part
)
{
/* Loop over all the gas particles in the cell */
...
...
@@ -1956,6 +1960,10 @@ void cell_drift_part(struct cell *c, const struct engine *e, int force) {
/* Update the time of the last drift */
c
->
ti_old_part
=
ti_current
;
/* Clear the drift flags. */
c
->
do_drift
=
0
;
c
->
do_sub_drift
=
0
;
}
}
...
...
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