Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • I IPPL
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • Libraries
  • IPPL
  • Merge requests
  • !179

Merged
Created May 31, 2023 by vinciguerra_a@vinciguerra_aDeveloper

Fix Index self-overwriting

  • Overview 2
  • Commits 3
  • Changes 3

The Index class offers a split function split(Index&, Index&, ...) that splits its domain and writes the new domains into the reference parameters. The function is marked as const but Partitioner passes the same object as one of the parameters, which means that, despite this constness, the object overwrites itself.

Originally, the function made local copies of the data members. These were removed in !164 (merged), which broke the partitioning under certain conditions.

This MR tweaks the partitioning algorithm to prevent this self-overwrite and also makes some stylistic changes for consistency with the rest of the codebase.

Related: #173 to rewrite the partitioner altogether.

Edited May 31, 2023 by vinciguerra_a
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-partitioning