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
c4689c39
Commit
c4689c39
authored
Dec 19, 2017
by
Bert Vandenbroucke
Browse files
Set drifted velocity values for zero mass particles in gizmo.
parent
8d48e6aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gizmo/hydro.h
View file @
c4689c39
...
...
@@ -773,6 +773,10 @@ __attribute__((always_inline)) INLINE static void hydro_get_drifted_velocities(
p
->
conserved
.
flux
.
momentum
[
1
]
*
dt
/
p
->
conserved
.
mass
;
v
[
2
]
=
p
->
primitives
.
v
[
2
]
+
p
->
conserved
.
flux
.
momentum
[
2
]
*
dt
/
p
->
conserved
.
mass
;
}
else
{
v
[
0
]
=
p
->
primitives
.
v
[
0
];
v
[
1
]
=
p
->
primitives
.
v
[
1
];
v
[
2
]
=
p
->
primitives
.
v
[
2
];
}
}
...
...
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