-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Status in the integrators and expose apocalypses in the interface #1129
Conversation
const ::principia::base::Status _status = (expr); \ | ||
if (!_status.ok()) \ | ||
return _status; \ | ||
} while (0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false
(or #define FALSE 0
aaaaaaaargh)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
"\\+8.22960000000000000e\\+06 s\\. The last position is " | ||
"\\{.*\\} and the last velocity is \\{.*\\}. An apocalypse " | ||
"occurred and two celestials probably collided because your " | ||
"solar system is unstable\\.")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would raw strings be more readable? https://xkcd.com/1638/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope.
Contributes to #1115.