Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Alexander Lapshin
common
Commits
50524635
Commit
50524635
authored
Oct 08, 2018
by
Alexander Lapshin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9c684b5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ODESystem.cpp
bnolib/ODESystem.cpp
+6
-6
No files found.
bnolib/ODESystem.cpp
View file @
50524635
...
...
@@ -226,8 +226,8 @@ void ODEPhaseSystem::EarthNonCentralAcc(Vect3 &acc, const Vect3 &pos)
{
ro1
*=
ro
;
Ron
[
n
]
=
ro1
;
//
cn0 = EarthGravity->c(n, 0) * ro1;
cn0
=
CC
[
0
][
n
]
*
ro1
;
cn0
=
EarthGravity
->
c
(
n
,
0
)
*
ro1
;
//
cn0 = CC[0][n] * ro1;
x0
+=
cn0
*
(
n
+
1
)
*
p0
;
x2
+=
cn0
*
Pm
[
n
];
if
(
n
==
Ng
)
...
...
@@ -271,11 +271,11 @@ void ODEPhaseSystem::EarthNonCentralAcc(Vect3 &acc, const Vect3 &pos)
{
t1
=
Ron
[
n
];
//
double cnm = EarthGravity->c(n, m) * t1;
double
cnm
=
CC
[
m
][
n
]
*
t1
;
double
cnm
=
EarthGravity
->
c
(
n
,
m
)
*
t1
;
//
double cnm = CC[m][n] * t1;
//
double dnm = EarthGravity->d(n, m) * t1;
double
dnm
=
DD
[
m
][
n
]
*
t1
;
double
dnm
=
EarthGravity
->
d
(
n
,
m
)
*
t1
;
//
double dnm = DD[m][n] * t1;
t1
=
Pm
[
n
];
...
...
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