Skip to content

Remove dead locals and unused argument in s_get_capillary - #1997

Closed
sbryngelson wants to merge 1 commit into
MFlowCode:masterfrom
sbryngelson:fix/surface-tension-dead-code
Closed

sbryngelson wants to merge 1 commit into
MFlowCode:masterfrom
sbryngelson:fix/surface-tension-dead-code

Conversation

@sbryngelson

@sbryngelson sbryngelson commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

isx/isy/isz were set but never read (and the isy guard tested m instead
of n). s_reconstruct_cell_boundary_values_capillary never used norm_dir,
which the caller filled from the loop index i, undefined at that point.

Pure dead-code removal; surface tension tests pass unchanged.


Acknowledgement

  • I confirm this PR meets the above expectations and reflects my own understanding and real-world context.

Consolidated into draft PR #2022. This change is retained as a separate commit, and this original description is reproduced in full there. Original discussion remains available here.

isx/isy/isz were set but never read (and the isy guard tested m instead
of n). s_reconstruct_cell_boundary_values_capillary never used norm_dir,
which the caller filled from the loop index i, undefined at that point.

Pure dead-code removal; surface tension tests pass unchanged.
@github-actions

Copy link
Copy Markdown

Lines of Code

File Lines Diff
src/simulation/m_surface_tension.fpp 258 -5
Directory Lines Diff
simulation 28440 -5
total 47421 -5

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