Skip to content

Conversation

@maxfirmbach
Copy link
Contributor

Description and Context

This PR aims to avoid the binning based partitioning in the beaminteraction framework and proposes the option of building a monolithic graph and using graph partitioning instead.

Put as draft for now for further discussion.

@maxfirmbach maxfirmbach self-assigned this Nov 21, 2025
@maxfirmbach maxfirmbach added the type: enhancement A new feature or enhancement to be implemented label Nov 21, 2025
Copy link
Contributor

@davidrudlstorfer davidrudlstorfer left a comment

Choose a reason for hiding this comment

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

One question - in #180 we decided that we leave both options (old and new one) working to allow for an easy comparison between the new and old method. Is this now possible with the current state? Or only for "cross-linking simulations"? Sorry for the dumb question 😅

Comment on lines +463 to +468
if (beaminteraction_params_ptr_->get_search_strategy() ==
Inpar::BeamInteraction::SearchStrategy::bounding_volume_hierarchy)
{
const auto geometric_search_params_ptr_ = Core::GeometricSearch::GeometricSearchParams(
Global::Problem::instance()->geometric_search_params(),
Global::Problem::instance()->io_params());
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to separate this into two different functions depending on the search strategy to be better separated?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, that also makes reviewing a lot easier.

Copy link
Member

Choose a reason for hiding this comment

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

@davidrudlstorfer, do you mean one if up front? Yes, I'd prefer that, so that one has to make the decision only once and not cluttering the code with multiple instances of the same if.

@isteinbrecher
Copy link
Contributor

Thanks for the changes @maxfirmbach . Can we switch the default to the new partitioning method and see which tests pass? Then I think we are actually not really far from merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A new feature or enhancement to be implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants