Skip to content

Fix MPBES splines - #31

Merged
hverhelst merged 2 commits into
mainfrom
hotfix/MPBES
Sep 11, 2026
Merged

hverhelst merged 2 commits into
mainfrom
hotfix/MPBES

Conversation

@hverhelst

Copy link
Copy Markdown
Member

MPBES was not working after fixes due to PR 872 in gismo

Copilot AI lite review requested due to automatic review settings September 10, 2026 14:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Pull request overview

Adds regression coverage and fixes pointer ownership handling so MPBES multipatch splines work again after upstream ownership changes (PR #872), ensuring pieces are populated and derived MPBES basis types are preserved across assignment.

Changes:

  • Added unit tests to prevent regressions around multipatch ctor population and assignment preserving the derived MPBES basis.
  • Updated gsMPBESSpline to store computed bases via reset(...) (smart-pointer ownership) instead of raw assignment.
  • Adjusted TO_INCRSMOOTHNESS macro to cast from a smart pointer’s .get().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
unittests/gsMPBESSpline_test.cpp Adds regression tests for multipatch ctor population and assignment preserving derived basis type.
src/gsMPBESSpline.hpp Updates basis ownership initialization and adjusts a helper macro to work with smart pointers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/gsMPBESSpline.hpp
Comment thread src/gsMPBESSpline.hpp Outdated
Comment thread src/gsMPBESSpline.hpp
@hverhelst
hverhelst merged commit adeb7d8 into main Sep 11, 2026
3 checks passed
@hverhelst
hverhelst deleted the hotfix/MPBES branch September 11, 2026 15:51
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