Skip to content
GitLab
Menu
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
35a653b7
Commit
35a653b7
authored
Aug 12, 2016
by
Matthieu Schaller
Browse files
Same correction to dS/dt in vector mode for GADGET_SPH
parent
6d077c19
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gadget2/hydro_iact.h
View file @
35a653b7
...
...
@@ -644,7 +644,7 @@ __attribute__((always_inline)) INLINE static void runner_iact_vec_force(
pi
[
k
]
->
force
.
v_sig
=
fmaxf
(
pi
[
k
]
->
force
.
v_sig
,
v_sig
.
f
[
k
]);
pj
[
k
]
->
force
.
v_sig
=
fmaxf
(
pj
[
k
]
->
force
.
v_sig
,
v_sig
.
f
[
k
]);
pi
[
k
]
->
entropy_dt
+=
entropy_dt
.
f
[
k
]
*
mj
.
f
[
k
];
pj
[
k
]
->
entropy_dt
-
=
entropy_dt
.
f
[
k
]
*
mi
.
f
[
k
];
pj
[
k
]
->
entropy_dt
+
=
entropy_dt
.
f
[
k
]
*
mi
.
f
[
k
];
}
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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