Skip to content

Remove dead commented code in addScalarBC2D (fixes #493) - #519

Merged
valeriabarra merged 1 commit into
csrc-sdsu:mainfrom
mokshitgala15:fix/493-remove-dead-code
Nov 13, 2026
Merged

valeriabarra merged 1 commit into
csrc-sdsu:mainfrom
mokshitgala15:fix/493-remove-dead-code

Conversation

@mokshitgala15

Copy link
Copy Markdown
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Example
  • Documentation

Description

Removes commented out code from addScalarBC! for ScalarBC2D in julia/MOLE.jl/src/BCs/scalarBC.jl.

The left/right and bottom/top blocks each had a commented-out alternative that cleared the boundary rows of A by subtracting sparse(findnz(A[rows, :])...). That code came from the Octave implementation. As discussed in #493, uncommenting it would bring back the implicit-term bug described in #475. The A[rows, :] = spzeros(...) line that is already in use stays as it is.

Related Issues & Documents

QA Instructions, Screenshots, Recordings

From julia/MOLE.jl, run the existing test suite:

julia --project -e 'using Pkg; Pkg.test()'

All tests passed.

Added/updated tests?

  • Yes
  • No, and this is why: this PR only removes commented code, so behavior is unchanged. The existing test/BCs/scalarBC.jl tests already cover addScalarBC! for 2D.
  • I need help with writing tests

Read Contributing Guide and Code of Conduct

Copilot AI balanced review requested due to automatic review settings November 13, 2026 02:52

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@codecov

codecov Bot commented Nov 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@valeriabarra

Copy link
Copy Markdown
Collaborator

Thank you, @mokshitgala15 !

@valeriabarra
valeriabarra merged commit 6210a30 into csrc-sdsu:main Nov 13, 2026
18 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.

Dead code in MOLE.jl scalarBC.jl

3 participants