Skip to content
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

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

knelli2
Copy link
Contributor

@knelli2 knelli2 commented Feb 15, 2024

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

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@knelli2 knelli2 added the cli/pybindings Command line interface & Python bindings label Feb 15, 2024
@nilsvu
Copy link
Member

nilsvu commented Feb 15, 2024

Hmm seems like this needs to be made testable, since there was actually a bug here.

@knelli2
Copy link
Contributor Author

knelli2 commented Feb 15, 2024

I agree it should be tested, but it's very non-trivial to test.

Copy link
Member

@nilsvu nilsvu left a 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 -
Copy link
Member

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?

Copy link
Contributor Author

@knelli2 knelli2 Feb 20, 2024

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok good 👍

@nilsvu nilsvu merged commit b4571cb into sxs-collaboration:develop Feb 26, 2024
22 checks passed
@nilsvu nilsvu added the bugfix label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix cli/pybindings Command line interface & Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants