Skip to content

IBM: test the moving-wall force across a periodic edge on one rank - #2364

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:ib-periodic-edge-test
Nov 21, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:ib-periodic-edge-test

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

Summary

Adds a 1-rank regression test for #2340 (moving-wall momentum term in s_accumulate_ib_face_fluxes read unexchanged q_cons halos). The existing 2-rank test covers a rank seam; this one covers a periodic edge on a single rank: a circle at x = 0.9 (radius 0.2) moving at (1, 0.6) through gas at rest, with bc_x periodic, so its wall straddles x = 1. The golden holds the body force history (ib_forces.dat) and conserved fields. Tolerance 1e-6.

Evidence

Single rank, AMD MI300A build (Tuolumne, amdflang, --gpu mp), 2 steps, about 13 s.

  • Pre-fix (a1b3e0a84^, clean build, same case): the field output is identical, but the body force differs from this golden by 2.0e-2 in Fx (about 2%), 1.2e-2 in Fy and 1.2e-3 in the torque, in every record. The test fails at 1e-6.
  • Fixed build: the same case with the body moved to the interior (x = 0.4, a shift of 25 cells, outside CI) gives the same force history as the edge case, differing only in the centroid x (0.5) and by 3e-9 in one later record. The edge result therefore equals the translated interior result, as it should.
  • Golden generated on the fixed build only; no override_tol taken from one architecture beyond the 1e-6 above. NVIDIA, CPU and Frontier lanes are not run locally and will be checked in CI.

Type of change

  • Test

This PR was made with Claude Code (AI).

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Claude Code Review

Head SHA: d4acda9

Files changed:

  • 1
  • toolchain/mfc/test/cases.py

Findings:
No issues found. Checked the changed hunk in toolchain/mfc/test/cases.py against the override_tol handling in toolchain/mfc/test/case.py. The prepared context directory was not present, so I could not read the surrounding code in cases.py.

@sbryngelson
sbryngelson marked this pull request as ready for review November 21, 2026 09:52
@sbryngelson
sbryngelson requested a review from a team as a code owner November 21, 2026 09:52
@sbryngelson
sbryngelson requested review from danieljvickers and removed request for a team November 21, 2026 09:52
@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.72%. Comparing base (4264341) to head (d4acda9).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2364   +/-   ##
=======================================
  Coverage   65.72%   65.72%           
=======================================
  Files         111      111           
  Lines       30549    30549           
  Branches     4673     4673           
=======================================
  Hits        20079    20079           
  Misses       6699     6699           
  Partials     3771     3771           

☔ 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 merged commit d156426 into MFlowCode:master Nov 21, 2026
88 of 90 checks passed
@sbryngelson

Copy link
Copy Markdown
Member Author

Independent NVIDIA verification of current master (aad80b3c3, which contains this PR).

  • Machine: NVIDIA A100 80GB (Georgia Tech wingtip)
  • Compiler: NVHPC 25.5, OpenACC, CI-style fat build (cc 70,75,80,89,90)
  • Flags: ./mfc.sh test -v --max-attempts 1 --no-build -o IBM --no-chemistry -j 2 -g <gpus> --gpu acc --mpi --no-debug --no-reldebug --no-single
  • Whole IBM label (chemistry excluded): 118 passed, 0 failed (one 1-GPU run, one 2-GPU run). 909 skipped by the filter, including the NVHPC<25.11 skip 124D7972 (Test: skip 124D7972 on NVHPC < 25.11 GPU builds (known difference, #2181) #2380).
  • Wall time of the full IBM label at -j 2 (machine shared, load varies): 829 s on one GPU, 661 s on two GPUs. Per-test times in the tables are single-test wall times including pre_process/simulation launch and golden compare, not per-step times.
Test Result 1 GPU Result 2 GPUs (2-rank tests split across GPUs) Time 1 GPU / 2 GPUs (s)
993DF695 Translating Circle Periodic Edge, Body-Frame Force (this PR) PASS PASS 9.7 / 10.1
9C0CAF25 Translating Circle 2 MPI Ranks (#2340 seam test) PASS PASS 12.4 / 9.8

The periodic-edge test passes against its committed golden on A100/NVHPC. 118/118 IBM-label tests pass.

Not run: chemistry tests, OpenMP-offload build, CPU build, any NVHPC other than 25.5, before/after timing of the changes.

AI-assisted (Claude Code).

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