Skip to content

Fix adiabatic BC corner overwrites in natural convection test#177

Merged
shaia merged 1 commit intomasterfrom
fix/tsan-poisson-bc-backend
Apr 4, 2026
Merged

Fix adiabatic BC corner overwrites in natural convection test#177
shaia merged 1 commit intomasterfrom
fix/tsan-poisson-bc-backend

Conversation

@shaia
Copy link
Copy Markdown
Owner

@shaia shaia commented Apr 4, 2026

Adiabatic top/bottom wall BCs were overwriting corner cells that belong to the hot/cold Dirichlet sidewalls. Restrict adiabatic Neumann copies to interior columns (i=1..nx-2) so sidewall temperatures are preserved at corners.

Adiabatic top/bottom wall BCs were overwriting corner cells that
belong to the hot/cold Dirichlet sidewalls. Restrict adiabatic
Neumann copies to interior columns (i=1..nx-2) so sidewall
temperatures are preserved at corners.
@shaia shaia requested a review from Copilot April 4, 2026 18:47
@shaia shaia self-assigned this Apr 4, 2026
Copy link
Copy Markdown
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

Fixes a boundary-condition ordering/coverage issue in the natural convection validation test so adiabatic (Neumann) top/bottom temperature updates no longer overwrite the hot/cold Dirichlet corner cells.

Changes:

  • Restricts adiabatic top/bottom wall temperature copies to interior columns (i = 1 .. nx-2).
  • Preserves left/right wall (hot/cold) corner temperatures by avoiding updates at i=0 and i=nx-1.

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

@shaia shaia merged commit 8f688e0 into master Apr 4, 2026
22 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