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

Add ObserveCenters post horizon find callback #3921

Merged
merged 2 commits into from
May 19, 2022

Conversation

knelli2
Copy link
Contributor

@knelli2 knelli2 commented Apr 13, 2022

Proposed changes

Add post horizon find callback that writes the centers of apparent horizons (both in grid frame and inertial frame) to disk. Also add this callback to the BBH exec because this is useful info for binaries.

I don't believe this clashes with #3561 because the AHFinder library (wherever it winds up) will depend on ParallelInterpolation. This is just one more file that will have to be moved whenever the AHFinder library is moved.

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

*
* The columns of the dat file are:
* - %Time
* - GridCenter_X
Copy link
Member

Choose a reason for hiding this comment

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

Use lowercase xyz for consistency with the other observers.

@nilsdeppe
Copy link
Member

@wthrowe could you please take another look at this when you get a chance?

wthrowe
wthrowe previously approved these changes May 10, 2022
geoffrey4444
geoffrey4444 previously approved these changes May 10, 2022
const std::string filename = "ObserveCentersTest_Output";

// clean up just in case
if (file_system::check_if_file_exists(filename + ".h5")) {
Copy link
Member

Choose a reason for hiding this comment

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

in other places we mock the writing action to avoid doing file IO during tests. Can you please switch to that approach? File IO in tests is a bit annoying, especially on supercomputers with slow filesystems

@knelli2 knelli2 added the dependent Needs a different PR to be merged in first label May 11, 2022
@knelli2
Copy link
Contributor Author

knelli2 commented May 11, 2022

Waiting for #3969 to be merged first to address @nilsdeppe's comment.

@knelli2 knelli2 dismissed stale reviews from geoffrey4444 and wthrowe via 904c59d May 18, 2022 18:29
@knelli2 knelli2 removed the dependent Needs a different PR to be merged in first label May 18, 2022
@knelli2
Copy link
Contributor Author

knelli2 commented May 18, 2022

@nilsdeppe @wthrowe @geoffrey4444 Now that #3969 is merged, I use that in the test rather than writing to disk. Also rebased on develop.

@kidder kidder merged commit b9f756a into sxs-collaboration:develop May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants