-
Notifications
You must be signed in to change notification settings - Fork 192
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
Conversation
* | ||
* The columns of the dat file are: | ||
* - %Time | ||
* - GridCenter_X |
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.
Use lowercase xyz for consistency with the other observers.
@wthrowe could you please take another look at this when you get a chance? |
const std::string filename = "ObserveCentersTest_Output"; | ||
|
||
// clean up just in case | ||
if (file_system::check_if_file_exists(filename + ".h5")) { |
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.
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
Waiting for #3969 to be merged first to address @nilsdeppe's comment. |
@nilsdeppe @wthrowe @geoffrey4444 Now that #3969 is merged, I use that in the test rather than writing to disk. Also rebased on develop. |
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
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