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
08d5d289
Commit
08d5d289
authored
Sep 19, 2016
by
Pedro Gonnet
Browse files
don't abort early for zero-length time steps as this will mess-up the task unmarking.
parent
39c4f234
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
08d5d289
...
...
@@ -731,9 +731,6 @@ static void runner_do_drift(struct cell *c, struct engine *e) {
/* Do we need to drift ? */
if
(
!
e
->
drift_all
&&
!
cell_is_drift_needed
(
c
,
ti_current
))
return
;
/* Check that we are actually going to move forward. */
if
(
ti_current
==
ti_old
)
return
;
/* Drift from the last time the cell was drifted to the current time */
const
double
dt
=
(
ti_current
-
ti_old
)
*
timeBase
;
...
...
@@ -873,9 +870,6 @@ static void runner_do_drift(struct cell *c, struct engine *e) {
/* Update the time of the last drift */
c
->
ti_old
=
ti_current
;
/* If we aren't going to do anything with this cell, we can stop here. */
if
(
c
->
ti_end_min
>
ti_current
)
return
;
/* Un-skip the density tasks involved with this cell. */
for
(
struct
link
*
l
=
c
->
density
;
l
!=
NULL
;
l
=
l
->
next
)
{
struct
task
*
t
=
l
->
t
;
...
...
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