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
797090ce
Commit
797090ce
authored
Aug 18, 2017
by
Matthieu Schaller
Browse files
Also skip gpart drifts in the 0th time-step.
parent
4dc05d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
797090ce
...
@@ -3318,8 +3318,9 @@ void engine_skip_drift(struct engine *e) {
...
@@ -3318,8 +3318,9 @@ void engine_skip_drift(struct engine *e) {
struct
task
*
t
=
&
tasks
[
i
];
struct
task
*
t
=
&
tasks
[
i
];
/* Skip everything that updates the particles */
/* Skip everything that moves the particles */
if
(
t
->
type
==
task_type_drift_part
)
t
->
skip
=
1
;
if
(
t
->
type
==
task_type_drift_part
||
t
->
type
==
task_type_drift_gpart
)
t
->
skip
=
1
;
}
}
/* Run through the cells and clear some flags. */
/* Run through the cells and clear some flags. */
...
...
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