Skip to content

Remove the inert ib_smooth_contact parameter - #2528

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:remove-ib-smooth-contact
Nov 27, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:remove-ib-smooth-contact

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

Removes ib_smooth_contact. Since #2517 (HLLC uses the central tangential velocity in the viscous work everywhere) the option has had no effect; it was kept only so older case files would still run.

1. Does it solve the problem?

  • Removed from the parameter registry (definitions.py, both entries), descriptions.py, the validator's AMR inert and vetted lists, its Fortran default in m_global_parameters.fpp, and the docs (case.md table row and option paragraph, ibm.md). Its declaration and namelist entry are generated from the registry, so they go with it; nothing else in src/ referenced it.
  • A case file that still sets it now gets a specific error instead of a bare "unknown parameter": Unknown parameter 'ib_smooth_contact': it was removed (it had no effect once HLLC used the central tangential velocity in the viscous work (#2517)); delete it from the case file. This adds REMOVED_PARAMS next to the existing RENAMED_PARAMS in toolchain/mfc/params/errors.py, with a unit test.
  • The historical row in validation_burning_body.md stays as a past measurement, marked "(an option since removed)".

2. Does it create another one?

Check Result
Tests: command, number passed, number failed ./mfc.sh precheck 7/7 (formatting, spelling, toolchain and source lint, doc references, parameter docs, all example cases valid); new unit test test_removed_param_says_why
Golden files changed: count, largest difference, why 0: the option had no effect, and no registered test or example sets it
Not tested No local Fortran build or test run: the only src/ change deletes one default assignment of an unused variable; CI's Build & Verify compiles every target

3. Is it slower?

N/A: the src/ change deletes the default assignment of a variable nothing read; no executed code changes.

This PR was made with Claude Code (AI).

MFlowCode#2517 made HLLC use the central tangential velocity in the viscous work everywhere, so ib_smooth_contact had no effect. Remove it from the registry, descriptions, validator AMR lists, Fortran default and docs. Case files that still set it get an 'it was removed ... delete it from the case file' error (new REMOVED_PARAMS next to RENAMED_PARAMS), with a unit test.
@sbryngelson
sbryngelson requested a review from a team as a code owner November 27, 2026 00:41
@sbryngelson
sbryngelson requested review from wilfonba and removed request for a team November 27, 2026 00:41
@github-actions

Copy link
Copy Markdown

Lines of Code

File Lines Diff
src/simulation/m_global_parameters.fpp 1001 -1
Directory Lines Diff
simulation 42772 -1
total 62828 -1

@github-actions

Copy link
Copy Markdown

Claude Code Review

Head SHA: 86bf520

No review was produced. Claude ran but wrote no review (Claude step: failure). Run and transcript: https://github.com/MFlowCode/MFC/actions/runs/45918210430

@sbryngelson
sbryngelson merged commit 4be7539 into MFlowCode:master Nov 27, 2026
22 of 39 checks passed
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