-
Notifications
You must be signed in to change notification settings - Fork 191
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
Support older control system output in size plotting #5768
Support older control system output in size plotting #5768
Conversation
Hmm seems like this needs to be made testable, since there was actually a bug here. |
I agree it should be tested, but it's very non-trivial to test. |
79ee9ef
to
cf909d1
Compare
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.
To make testing easier it often helps to separate logic from control flow / parallel stuff. It's easy to test free functions, but hard to test actions etc. No change request for this PR.
@@ -404,7 +408,8 @@ struct Size : tt::ConformsTo<protocols::ControlError> { | |||
? std::optional<double>(control_error_delta_r - | |||
delta_r_drift_outward_options_.value() | |||
.outward_drift_velocity - | |||
(lambda_00 + horizon_00 - | |||
(lambda_00 + | |||
spherepack_factor * horizon_00 - |
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.
Question: how severe is this bug? what impact did it have on simulations?
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.
None. In all of my runs I've disabled the delta_r_drift_outward
option since we haven't needed it.
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.
Oh ok good 👍
An older version didn't output the smoother timescale
cf909d1
to
6d91039
Compare
Proposed changes
Also add a missing SPHEREPACK factor to the calculation of the average delta R (and a comment explainin why).
Upgrade instructions
Code review checklist
make doc
to generate the documentation locally intoBUILD_DIR/docs/html
.Then open
index.html
.code review guide.
bugfix
ornew feature
if appropriate.Further comments