Skip to content

prs solvers laplacian calc (with err_init): move set_edges before G m…#501

Open
pdziekan wants to merge 1 commit intoigfuw:masterfrom
pdziekan:init_laplacian_edges_fix
Open

prs solvers laplacian calc (with err_init): move set_edges before G m…#501
pdziekan wants to merge 1 commit intoigfuw:masterfrom
pdziekan:init_laplacian_edges_fix

Conversation

@pdziekan
Copy link
Contributor

…ultiplication (but also before normalize_vip...) - fixes open bconds with nonzero initial velocity

…ultiplication (but also before normalize_vip...) - fixes open bconds with nonzero initial velocity
Copilot AI review requested due to automatic review settings February 26, 2026 12:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the pressure solver's Laplacian calculation that affected open boundary conditions with nonzero initial velocity. The fix reorders operations in the lap function to ensure edge values are set before metric tensor (G) multiplication and velocity normalization, which is critical for correctly handling open boundary conditions.

Changes:

  • Moved set_edges call before G multiplication and normalize_vip operations in the Laplacian calculation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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