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
68fe947f
Commit
68fe947f
authored
Feb 27, 2017
by
Matthieu Schaller
Browse files
Also skip the gravity force calculation when doing the fake step to convert hydro quantities.
parent
d9acb43e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
68fe947f
...
...
@@ -2832,8 +2832,8 @@ void engine_skip_force_and_kick(struct engine *e) {
/* Skip everything that updates the particles */
if
(
t
->
type
==
task_type_drift
||
t
->
type
==
task_type_kick1
||
t
->
type
==
task_type_kick2
||
t
->
type
==
task_type_timestep
||
t
->
subtype
==
task_subtype_force
||
t
->
type
==
task_type_
cooling
||
t
->
type
==
task_type_sourceterms
)
t
->
subtype
==
task_subtype_force
||
t
->
sub
type
==
task_
sub
type_
grav
||
t
->
type
==
task_type_cooling
||
t
->
type
==
task_type_sourceterms
)
t
->
skip
=
1
;
}
}
...
...
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