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
5fed7eb9
Commit
5fed7eb9
authored
Dec 10, 2019
by
Alexander Lapshin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interpolatior step 3 times reduced
parent
d764526c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
interpolate.cpp
utils/interpolate.cpp
+2
-2
No files found.
utils/interpolate.cpp
View file @
5fed7eb9
...
@@ -28,7 +28,7 @@ static double get_step(const SInitOrbit& orbit)
...
@@ -28,7 +28,7 @@ static double get_step(const SInitOrbit& orbit)
{
{
const
double
period
=
orbit
.
GetKeplerData
().
GetPeriod
()
*
1000
/
60
;
const
double
period
=
orbit
.
GetKeplerData
().
GetPeriod
()
*
1000
/
60
;
const
double
ecc
=
orbit
.
GetKeplerData
().
GetEccentricity
();
const
double
ecc
=
orbit
.
GetKeplerData
().
GetEccentricity
();
return
get_step
(
period
,
ecc
);
return
get_step
(
period
,
ecc
)
/
3
;
}
}
XInterpolator
::
XInterpolator
()
=
default
;
XInterpolator
::
XInterpolator
()
=
default
;
...
@@ -198,7 +198,7 @@ Vect6 XInterpolator::get_pos(const TimeJD& date, const bool tks) const
...
@@ -198,7 +198,7 @@ Vect6 XInterpolator::get_pos(const TimeJD& date, const bool tks) const
if
(
ircode
!=
0
)
{
if
(
ircode
!=
0
)
{
throw
Exp
()
<<
"interpolation fail
\n
"
;
throw
Exp
()
<<
"interpolation fail
\n
"
;
}
}
if
(
!
tks
)
{
if
(
!
tks
)
{
return
{
return
{
outvec
[
0
],
outvec
[
0
],
...
...
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