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
89fc7fd5
Commit
89fc7fd5
authored
Oct 31, 2016
by
Peter W. Draper
Browse files
Fix typo r_inv, should be rinv
parent
3730da28
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/potential/point_mass/potential.h
View file @
89fc7fd5
...
...
@@ -133,7 +133,7 @@ external_gravity_get_potential_energy(
const
float
dy
=
g
->
x
[
1
]
-
potential
->
y
;
const
float
dz
=
g
->
x
[
2
]
-
potential
->
z
;
const
float
rinv
=
1
.
/
sqrtf
(
dx
*
dx
+
dy
*
dy
+
dz
*
dz
);
return
-
phys_const
->
const_newton_G
*
potential
->
mass
*
r
_
inv
;
return
-
phys_const
->
const_newton_G
*
potential
->
mass
*
rinv
;
}
/**
...
...
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