Skip to content

Refactor and unify common routines for boundary conditions#1629

Draft
wilfonba wants to merge 2 commits into
MFlowCode:masterfrom
wilfonba:BCRefactorFix
Draft

Refactor and unify common routines for boundary conditions#1629
wilfonba wants to merge 2 commits into
MFlowCode:masterfrom
wilfonba:BCRefactorFix

Conversation

@wilfonba

@wilfonba wilfonba commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Description

This PR reorganizes and refactors code that was misplaced by agentic coding. The buffer exchange routines for variable buffers, surface tension, F_igr, and grid variables have been unified under a common abstraction. Relevant "boundary primitives" were moved into the src/common/m_boundary_primitives.fpp module. As a result of this refactor, src/common/m_boundary_io.fpp only contains routines relevant to boundary condition IO.

Closes #(issue number).

Type of change (delete unused ones)

  • Refactor

Testing

  • Test suite passes on my laptop
  • More coming...

Checklist

  • I added or updated tests for new behavior
  • I updated documentation if user-facing behavior changed

See the developer guide for full coding standards.

GPU changes (expand if you modified src/simulation/)
  • GPU results match CPU results
  • Tested on NVIDIA GPU or AMD GPU

AI code reviews

Reviews are not retriggered automatically. To request a review, comment on the PR:

  • @claude full review — Claude full review (also triggers on PR open/reopen/ready)
  • Or add label claude-full-review — Claude full review via label

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant