-
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
Basic test for the PileUp #1221
Conversation
@@ -33,7 +33,7 @@ using quantities::Mass; | |||
// A |PileUp| handles a connected component of the graph of |Parts| under | |||
// physical contact. It advances the history and prolongation of its component | |||
// |Parts|, modeling them as a massless body at their centre of mass. | |||
class PileUp final { | |||
class PileUp { |
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.
Why not final? In that case, have a virtual destructor.
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.
Because of TestablePileUp
. Done.
ksp_plugin/pile_up.hpp
Outdated
// on the origin of |Bubble| given in |Barycentric|, and on the |RigidPileUp| | ||
// degrees of freedom of the parts (as set by |DeformPileUpIfNeeded|). | ||
// Adjusts the degrees of freedom of all parts in this pile up based on the | ||
// position of the pile-up computed by |AdvanceTime| and on the |RigidPileUp| |
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.
position? isn't this degrees of freedom?
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.
ksp_plugin_test/pile_up_test.cpp
Outdated
0.0 * Metre / Second, | ||
-20.0 / 3.0 * Metre / Second}), 0))); | ||
|
||
pile_up.DeformPileUpIfNeeded(); |
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.
This should not be part of a function that checks invariants.
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.
No description provided.