Skip to content

fix: remove dead *_MOK assignments in file_per_process I/O branches#1598

Draft
SVS87 wants to merge 1 commit into
MFlowCode:masterfrom
SVS87:fix/dead-mok-assignments
Draft

fix: remove dead *_MOK assignments in file_per_process I/O branches#1598
SVS87 wants to merge 1 commit into
MFlowCode:masterfrom
SVS87:fix/dead-mok-assignments

Conversation

@SVS87

@SVS87 SVS87 commented Jun 15, 2026

Copy link
Copy Markdown

Description

In the sequential file_per_process paths (MPI_COMM_SELF), the *_MOK offset variables are computed but never used — no MPI_FILE_SET_VIEW or disp displacement is present in these branches.

Also removes the copy-paste typo where n_MOK and p_MOK were both derived from m_glb_read instead of n_glb_read/p_glb_read in m_start_up.fpp.

Closes #1490

Type of change (delete unused ones)

  • Bug fix

Testing

Ran ./mfc.sh format and lint locally. No functional behavior changes — removing dead assignments to never-read variables in sequential MPI_COMM_SELF branches. The collective SET_VIEW path that actually uses *_MOK is untouched.

Checklist

Check these like this [x] to indicate which of the below applies.

  • 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
    Dead code removal only, no GPU behavior changes

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

In the sequential file_per_process paths (MPI_COMM_SELF), the *_MOK
offset variables are computed but never used — no MPI_FILE_SET_VIEW
or disp displacement is present in these branches.

Also removes the copy-paste typo where n_MOK and p_MOK were both
derived from m_glb_read instead of n_glb_read/p_glb_read in
m_start_up.fpp.

Fixes MFlowCode#1490
@SVS87 SVS87 requested a review from sbryngelson as a code owner June 15, 2026 05:47
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.94%. Comparing base (ac5774e) to head (0a63bf3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1598      +/-   ##
==========================================
- Coverage   60.94%   60.94%   -0.01%     
==========================================
  Files          82       82              
  Lines       19922    19921       -1     
  Branches     2924     2924              
==========================================
- Hits        12141    12140       -1     
  Misses       5805     5805              
  Partials     1976     1976              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbryngelson sbryngelson marked this pull request as draft June 15, 2026 12:44
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.

Remove dead *_MOK MPI-offset assignments in file_per_process I/O branches (and fix n_MOK/p_MOK typo)

1 participant