-
Notifications
You must be signed in to change notification settings - Fork 213
AH rewrite: Add function to invoke AH callbacks #6776
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
Conversation
|
|
||
| namespace ah { | ||
| template <typename HorizonMetavars, typename DbTags, typename Metavariables> | ||
| void invoke_callbacks(const gsl::not_null<db::DataBox<DbTags>*> box, |
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.
Needs documentation.
| new_interpolated_vars->initialize(current_ylm.physical_size()); | ||
| tmpl::for_each<ah::vars_to_interpolate_to_target<3, Fr>>( | ||
| [&](auto tag_v) { | ||
| using tag = typename decltype(tag_v)::type; |
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.
[optional] Use an explicit template argument. A few other places as well.
| }); | ||
|
|
||
| // Time deriv is zero because there weren't any previous horizons to come | ||
| // the time deriv with |
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.
"come" -> "compute", I think?
| *horizon = current_strahlkorper; | ||
|
|
||
| // This is a hack to use ylm::time_deriv_of_strahlkorper function below | ||
| std::deque<std::pair<double, ylm::Strahlkorper<Fr>>> |
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.
Not ideal, but it should be cheap compared to the horizon-find, so probably OK.
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.
Yeah when we do a profile, we can see if it pops up
wthrowe
left a comment
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.
Looks good except for one typo. Squash.
| * | ||
| * \details Before invoking the callbacks, this function | ||
| * | ||
| * 1. Restricts the final interpolated variables from the $L_\mathrm{mesh}$ use |
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 -> used
|
Done! |
|
The Kokkos build had a number of odd failures (even more than usual), but none of them look plausibly related to these changes, so I'm ignoring them. |
Proposed changes
Tenth PR in horizon finder changes. Adds a function that sets up the databox for callbacks to be run. Actual callbacks will be added in future PRs.
Upgrade instructions
Code review checklist
make docto generate the documentation locally intoBUILD_DIR/docs/html.Then open
index.html.code review guide.
bugfixornew featureif appropriate.Further comments