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
f83a3995
Commit
f83a3995
authored
Apr 01, 2017
by
Matthieu Schaller
Browse files
Code formatting
parent
d2f1f017
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gravity/Default/gravity.h
View file @
f83a3995
...
...
@@ -40,7 +40,7 @@ gravity_compute_timestep_self(const struct gpart* const gp,
gp
->
a_grav
[
1
]
*
gp
->
a_grav
[
1
]
+
gp
->
a_grav
[
2
]
*
gp
->
a_grav
[
2
];
const
float
ac_inv
=
(
ac2
>
0
.
f
)
?
1
.
f
/
sqrtf
(
ac2
)
:
FLT_MAX
;
const
float
ac_inv
=
(
ac2
>
0
.
f
)
?
1
.
f
/
sqrtf
(
ac2
)
:
FLT_MAX
;
/* Note that 0.714285714 = 2. (from Gadget) / 2.8 (Plummer softening) */
const
float
dt
=
sqrtf
(
0
.
714285714
f
*
grav_props
->
eta
*
gp
->
epsilon
*
ac_inv
);
...
...
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