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
LUGAN
Orekit
Commits
f1596792
Commit
f1596792
authored
Aug 11, 2021
by
LUGAN
Browse files
Make sure the lastG/lastT values are consistent in case of g() raising exception
parent
7eb9b963
Pipeline
#1241
passed with stages
in 27 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/orekit/propagation/events/EventState.java
View file @
f1596792
...
...
@@ -154,8 +154,8 @@ public class EventState<T extends EventDetector> {
*/
private
double
g
(
final
SpacecraftState
s
)
{
if
(!
s
.
getDate
().
equals
(
lastT
))
{
lastT
=
s
.
getDate
();
lastG
=
detector
.
g
(
s
);
lastT
=
s
.
getDate
();
}
return
lastG
;
}
...
...
Write
Preview
Supports
Markdown
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