Skip to content

Conversation

@knelli2
Copy link
Contributor

@knelli2 knelli2 commented Apr 28, 2025

Proposed changes

These are currently taken as options from the input file. Eventually
we could have this be more automatic, e.g. the domain creators know
which blocks could potentially hold a horizon, but that would be
a future optimization.

This is the first step in a lot of backend work to combine the horizon finders and get rid of the interpolator group component.

I've tested this on a single BH while interpolating only some blocks and all blocks. And also tried on a BBH

Upgrade instructions

Each entry under the ApparentHorizons: block of the input file gets a new option BlocksForInterpolation:. This could either be a list of block groups or All to indicate all blocks in the doman.

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 this to the BBH performance enhancements milestone Apr 28, 2025
@knelli2 knelli2 force-pushed the intrp_specific_blocks branch 4 times, most recently from d36f635 to 9008704 Compare April 29, 2025 22:44
"outflow-type boundary condition, you must use that.");
}
using domain::BoundaryConditions::is_periodic;
if (boundary_condition_ != nullptr and is_periodic(boundary_condition_)) {
Copy link
Member

Choose a reason for hiding this comment

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

Only the important domains ;) :D

@knelli2
Copy link
Contributor Author

knelli2 commented May 2, 2025

@nilsdeppe Pushed fixups

Copy link
Member

@nilsdeppe nilsdeppe left a comment

Choose a reason for hiding this comment

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

LGTM, please squash :)

std::make_index_sequence<
std::tuple_size_v<std::decay_t<decltype(all_horizon_options)>>>{});
expand_pack(append_to_result(
tmpl::at<option_tags<Metavariables>, tmpl::size_t<Is + 1>>::name(),
Copy link
Member

Choose a reason for hiding this comment

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

you can use at_c and then don't need the tmpl::size_t

knelli2 added 4 commits May 3, 2025 12:21
These are currently taken as options from the input file. Eventually
we could have this be more automatic, e.g. the domain creators know
which blocks could potentially hold a horizon, but that would be
a future optimization
@knelli2 knelli2 force-pushed the intrp_specific_blocks branch from 86d81d2 to 3d620a2 Compare May 3, 2025 19:55
@nilsdeppe nilsdeppe enabled auto-merge May 3, 2025 19:58
@nilsdeppe nilsdeppe merged commit ee283df into sxs-collaboration:develop May 3, 2025
24 checks passed
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.

2 participants