Repository navigation
Tests: generic configurations and tight tolerances; ib_wall_order = 2, TSC image points and ib_visc_compact by default - #2486
Conversation
A100 hand testMachine: wingtip, NVIDIA A100 80GB PCIe, one GPU. Compiler: NVHPC 25.11, OpenACC ( Code:
Result (every candidate test, against this PR's goldens, at each test's tolerance):
A100 against GNU (largest tolerance a run needs) for the tests tightened in Part 1:
The default flips add no failures and no NaN in these 234 tests on the A100 or on NVHPC 25.11 CPU. AI-assisted (Claude Code). |
…2488) gh pr diff fails with HTTP 406 when a PR changes more than 300 files. #2486 changes 377, of which 362 are golden files under tests/ that the review discards anyway, so the job failed before Claude started and posted nothing. Fetch the PR's commits and diff them locally against the base, leaving out tests/. The commits are fetched as objects only and never checked out or run. Also run the publish step after a failed step, so a job that breaks before the review says so on the PR.
|
Claude Code Review Head SHA: 62d3e1b Files changed:
Summary: The PR makes three settings the defaults: TSC image points ( Findings:
Coverage:
|
|
Review of this PR's head: needs changes. Read-only review; nothing was built or run. Items marked [verified] were checked against the code a second time; the rest is one reviewer's reading.
Checked and found correct: the -1 defaults are resolved at (Reviewed with Claude Code.) |
d445290 to
5c407db
Compare
GPU hand test (pushed head 5c407db)Phoenix, Tesla V100-PCIE-16GB (driver 580.178.04), NVHPC 25.11, OpenACC, All 200 candidate tests (every IB test and the axisymmetric hypoelastic tests), against this PR's goldens at each test's tolerance: 200 passed, 0 failed. GPU against the new GNU goldens: a separate
The previous CI run failed AI-assisted (Claude Code). |
|
Reply to the review (#2486 (comment)), as of 5c407db.
Also folded in: #2041, with GPU hand test of 5c407db: Tesla V100, NVHPC 25.11, 200 of 200 pass. AI-assisted (Claude Code). |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2486 +/- ##
==========================================
- Coverage 66.59% 66.57% -0.02%
==========================================
Files 112 112
Lines 31558 31561 +3
Branches 4856 4853 -3
==========================================
- Hits 21015 21013 -2
- Misses 6561 6566 +5
Partials 3982 3982 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The two red lanes on 5c407db, and the fix in 5586ac81. "Github (ubuntu, mpi, no-debug, GNU)" is the single-precision lane (
This is single-precision round-off, not a contact flipping:
Measured on Phoenix with GNU 12.3
The CI lane's GNU differs by up to 1.1e-4 on the friction pair. Its errors on Vieille and the injecting body are lower than on Phoenix. The fix in 5586ac8:
2. "Github (ubuntu, mpi, no-debug, intel)":
AI-assisted (Claude Code). |
5586ac8 to
62d3e1b
Compare
Rebased on master 10e1299 (#2491); GPU hand test of the pushed head 62d3e1bRebase.
GPU hand test of 62d3e1b: Phoenix, Quadro RTX 6000 (driver 580.178.04), NVHPC 25.11, OpenACC,
AI-assisted (Claude Code). |
62d3e1b to
ebb6257
Compare
|
Reply to the review of 62d3e1b, fixed in ebb6257 (one push, on master 8af0b2e).
Goldens. All 204 candidates were regenerated once on Phoenix (GNU 12.3, OpenMPI 4.1.5, double) from a clean clone of 94656e1 (in this PR), with 0 failures. Against master: 171 changed, 17 new (13 renamed opt-out variants and 4 Fortran in this push. Comment text only, plus the GPU hand test of this head: Phoenix job running; I will post the count here. AI-assisted (Claude Code). |
GPU hand test of the review pushMachine: Phoenix, NVIDIA A100 80GB PCIe (driver 615.71.09). Build: NVHPC 25.11, OpenACC, Code: a clean checkout of 3b67d76. The pushed head, ebb6257, differs from it only by realigning one Fortran comment block. Result: all 204 candidate tests (every IB test, the 4 axisymmetric hypoelastic tests, and the 4 new AI-assisted (Claude Code). |
…ce, IGR 1D, Taylor-Green pressure, moment of inertia, and 9 more (#2514) * Jet-in-crossflow deck as case.py with an extrapolation outflow; precheck fails on a misnamed deck or a refused example (#2493) * Serial restart through pre_process old_ic: read the interior record, write into the recreated step directory (#2494) * Refuse igr in 1D; note that IGR needs elliptic_smoothing for a sharp initial jump (#2463) * 2D Taylor-Green patch: exact initial pressure (#2465) * Reacting mixing-layer examples: one IC directory per cache key, written atomically (#2358) * IBM: a cell inside two bodies takes the largest encoded id, independent of the rank's slot order (#2433); tests for #2494 and #2433 * Chemistry: free the species flux_src_n fields; match the energy-diffusion guards (#1907, #1909) s_finalize_rhs_module now deallocates flux_src_n(1)%vf(species%beg:species%end) (#1907). The chem-diffusion energy term is added only when the mom:E loop did not already add it, i.e. under .not. (viscous .or. surface_tension .or. heat_conduction), the same condition the allocation and deallocation use (#1909; unreachable by accepted cases today). Update the stale validator comment. * IBM: correct the moment of inertia (#1994, #2068) Summed moment: mass*sum(r^2)/count (drop the extra 1/cell_volume), decode periodic markers and measure from the image's centroid, dummy moment on a rank with no body cell instead of 0/0. Rectangle /12 (was /6), sphere 0.4_wp. Compute the start-up moment after s_apply_ib_patches: before, the sum saw no marked cells and gave NaN for every non-analytic moving body. * Rescale clamped face volume fractions whose sum exceeds 1 (#1911) Independent [0, 1] clamping can push the sum above 1 with 3+ fluids, inflating the non-Newtonian viscosity mixture and the conductivity. Divide by max(sum, 1) at the two viscous sites and the two conduction sites: a no-op when the clamped sum is <= 1. * Toolchain: default build -j to min(cores, 16) and print it (#1876) An unset -j built serially, notably for builds triggered by run/test. Builds now use min(cpu_count, 16) unless -j is given and print the job count; test cases still run one at a time unless -j is given. * Docs and comments: stale build, parameter and interpolation claims (#2063, #2026) Generated-file header and NAMELIST_VARS note: generated at build time (cmake/ParamsCodegen.cmake). architecture.md: parameters in definitions.py, validation in case_validator.py. getting-started: params --families, over 4,000 parameters; drop the counts from docstrings and CLI help. gpuParallelization typo. s_interpolate_image_point docstring: inverse-distance or TSC weights, not bilinear. * Leftover review items from merged PRs (#2083) sacct node-recovery fallback ends in || true under set -euo pipefail (a failing sacct exited the script silently); preflight comment on the kept text match; LINK_DEPENDS_USE_LINKER OFF only for the amdflang offload build; inflow ramp f(t0) ~ f0 wording; example SUMMARY reads TOPOLOGY; drop unused LEVELS; explicit is None in the validator; one required list for grcbc_in; compiler probe keyed on FC; time_final/io_time_final comments; explicit real(t_step, wp) in the fixed-dt clock (bitwise unchanged). * Tests: 09FDDC81 off the cell faces; goldens: regenerate 09FDDC81, add 493989F3 and B3EF129B (Phoenix GNU 12.3 + OpenMPI 4.1.5) * Tests: override_tol_single for the single-precision lane (harness change shared with #2486) * Tests: 09FDDC81 single-precision tolerance from the measured 1e-2 single/double spread * Review fixes: batch validation against the default build, LTO partitions follow -j as given, stale #2465 limitation
ebb6257 to
d9342d1
Compare
Rebased on master c158eee (#2505, #2514, #2508)Conflicts.
Fortran. No Goldens on the new base.
GPU check of bbf7171. The two moved tests on Phoenix, NVIDIA H200 (driver 615.71.09), NVHPC 25.11, OpenACC: 2 passed, 0 failed. The other 203 were hand-tested on an A100 at the previous head, and their goldens are unchanged. AI-assisted (Claude Code). |
…ous flux no longer reads unfilled solid cells (MFlowCode#2041)
…from the measured CI spread
…ct = F tests, wording of the old defaults
…ell seam test from MFlowCode#2514)
…oenix GNU golden by 4e-9 relative)
804f4a3 to
e3cea99
Compare
Rebased on master 946d1e5 (#2517): one push, e3cea99Conflicts.
Fortran. Goldens.
AI-assisted (Claude Code). |
Lines of Code
|
…C central tangential velocity); their MFlowCode#2515 goldens predate it
Contribution Policy
All contributions are expected to demonstrate:
If these expectations are not met, we would prefer to implement the changes ourselves rather than spend time reviewing low-effort submissions.
Summary
This PR has two parts.
ib_wall_order = 2(quadratic no-slip ghost velocity).ib_ip_interp = 2(TSC image points).ib_second_order_vel = T, which refuses them. Settingib_wall_order = 1andib_ip_interp = 1gives the old behaviour.ib_visc_compact = Twherever it applies (a body,viscous,weno_Re_flux, Cartesian coordinates). This fixes weno_Re_flux with IBM reads solid cells past gp_layers, making viscous results compiler-dependent #2041: the wide WENO viscous gradient read solid cells past the filled ghost layers, so with the quadratic wall the fluid depended on how many layers were filled.ib_visc_compact = Fgives the earlier gradient.ib_visc_compact = Fand cylindrical coordinates (see the comment on the issue), so this PR refers to it rather than closing it.weno_Re_flux_compactstays opt-in. Turning it on by default exposes the HLLC wall-face switch of HLLC: viscous work picks the tangential velocity on the sign of a round-off s_S at no-slip walls (compiler/device-dependent) #2453: with it, the thermal-channel test differs by 2e-3 between an A100 and GNU, and by 8e-5 between GNU and NVHPC CPU. It follows once HLLC: viscous work picks the tangential velocity on the sign of a round-off s_S at no-slip walls (compiler/device-dependent) #2453 is fixed.Closes #2389. Refs #2041, #2390, #2453.
Commits:
ib_wall_order,ib_ip_interp,ib_visc_compact);override_tol_single) for the single-precision CI lane, plus one Intel-measured tolerance.The goldens were last regenerated on master 946d1e5 (after #2517), on Tuolumne (GNU 13.3.1, CPU, double), for the 69 tests that moved on that base. Before that they were regenerated on master 8af0b2e, on Phoenix (GNU 12.3, OpenMPI 4.1.5, CPU, double,
--no-debug --no-reldebug --no-single). They come from a fresh clone of the committed tree at 94656e1, which is in this PR.Part 1: generic tests
ib_ip_interp=2; Injecting Body Coarse Ignition2D_ibm_moving_mass_budget), and its Cold Wall twinib_smooth_contact = T(#2452).weno_Re_flux_compact8DDB767E)The committed goldens of the friction wall slider and of Vieille were stale. Current GNU, Intel and the A100 agree with each other to 4e-13, but are 5e-6 and 2e-7 from the old golden; the loose tolerance hid that.
Unchanged after measurement, because their gap is a compiler or metric effect rather than a tie:
The trial generic versions of these are reverted. For species bounds, a trace of radicals in the hot state ignites it.
The opt-out values are now tested, and the validation examples write the IB options explicitly (reviews):
2D_ibm_conduction_annulusand2D_ibm_taylor_couettewriteib_ip_interpfor both values. They used to write it only for the non-default one. So "Conduction Annulus -> Inverse Distance" (947DA282) runs inverse-distance weights again, and differs from the TSC test (F935DA03). The Taylor-Couette test (E2C4CBC6) runs--ip_interp 1as its comment and the validation page say.ib_ip_interp=2andib_wall_order=2variants duplicated their base tests once those became the default. They are nowib_ip_interp=1(also... quiescent) andib_wall_order=1, in 2D and 3D, 1 and 2 fluids, and on the AMR static-circle tests. That is 13 renamed tests with new UUIDs; the old directories are removed.weno_Re_flux -> ib_visc_compact=Ftests (2D/3D, 1 and 2 fluids) keep a golden for the WENO viscous gradient next to a body.2D_ibm_taylor_couettealways writesib_visc_compact(its--visc_compactdefaults to 1, like the solver).2D_ibm_cylinder_drag_nu,3D_ibm_sphere_drag_nu,2D_ibm_periodic_arrayand2D_ibm_moving_mass_budgettake--wall_orderand--visc_compact;2D_ibm_shock_curtaintakes--wall_order. These are written explicitly, with the solver defaults as their defaults. Their validation pages' Reproduce commands pass the settings the published rows used (--wall_order 1 --visc_compact 0).Part 2: the defaults
ib_wall_order = 2ib_ip_interp = 2(TSC)validation_tsc_annulus).ib_visc_compact = T(withweno_Re_fluxand a body; #2041)gp_layers(3 and 6). Case: 2D, 64 x 64 cells, a generic no-slip circle, Re 100, WENO5, HLLC, 50 steps. Run on GNU 13.3 CPU, one rank, with the new defaults.ib_visc_compact = Fthey differ by up to 4.4e-5 (3.5e-4 relative) in about 1450 fluid cells.Testing
ib_visc_compact=Ftests) and 13 removed.--no-debug --no-reldebug --no-single, the same 200 tests.8DDB767E(Frontier CCE, 1.1e-6) is the one measured lane spread; its tolerance is now 1e-5../mfc.sh precheckpasses.Changed goldens
"why": the test's own configuration changed in Part 1, or only the new defaults changed it. Per-option attribution was measured on the earlier base (
ib_wall_orderchanged 144 andib_ip_interp157 of 195 IB tests) and is not repeated here. "max change" is the largest absolute difference over a file divided by that file's largest absolute value, the maximum over the test's files; "(rows)" means a history file has a different number of rows. The last column is the test's double-precision tolerance. The GPU-vs-GNU spreads were measured on the previous base (34aadf1) and are in the earlier comment; #2491's stage-time change moves values on every platform alike.188 tests
09FDDC8150B98DBF16574715A2ACC05AB0E46764E72E94864F5A5E32AC3AAF00AE4D2FDAD8BC2E49AE0216C4E53E63972FC9648E5E746B785BBDFB29B7A370B804FB9E91F1F3894927CD0714E085CC5A1E6FD4655A22B45FED2D5C0A3008BA8088ADD5C1A20366305C04A681F3ECE90B9C0CAF25997E2B0E993DF695540C72F1B7A6CC79F86059C974CEDCD16171E9D4E597CAE488C18DD7C87A466AB0CE19C57F70E665647715EBF60D6594474D6E2B78016FF29D95D7B8F4675B3AC8AD62711D4832F84BED9896FB3F47C02EE0C3AAD7D6DEEBFA8643EFC5D96D9A125B82E41A6F40B365CC7EB7128384B4E21632471B218CF17DCE34B48D8F6424F31EAABF17E2C6D16AF90F3C421A6AD9D5EAC17E759FF2DA124D7972EF38E2A63C5B45428B2A7F3EFAF04D7A2FB9269FC1F0BCB13F5FE078F7A6649D641CC3F07E50FFE6CD32DCEC4B574EE6F389CE57B5CAD86E041D5CC992C38C9140A4A5B8A74B7381F8D466BDC02C399E48CC6F65DF9526DB7CC8F9950B07F3A1E5B66084F200F862F52F0D4C127A967A7FA04E9587C3F801AA36F5D2BA59123EC794BB89947DA282F935DA0339A3B369FE3DCA4814FF2F666E24D2F9D999E5E8EA8FA07E5BF8664CE2C4CBC6B317404C07D9EBD143A1D3C6D1C97CD15173E63749893269DE954FAAD7E7DE0434A93376911FB9B63AD416B46A43941128D037A74C64244B32DD0363221C99800387594F51AC8C99A69D2D28713F4716674B68AAA1B2B963F22AC0A2A69398F64B8105EA1E62093F4C3164AE6ED50013135F548BB204C86E5334FF40E1199F967DCA922918B832DD408BF5580BD42F35BFAA758766ABE269431554F7345FAF7269F52F958339878CB8D029E57C8B89A52440B4AEAFBACA70B872F80BB20208D486A2C59BAA49A8BC6076815B8DDB767E4E0FBE726DE4C39D9C037B2713945217952F1CEF60F620F84CECF72443AF9F252854A1027FC2F9F8E4F6CE1E27F6FEF5E748B162ADD26480C730942BA4DABDB61EA0BD70DF93F5A524176B3D10DF5CAAC51CB3CB7CA4FC48F980C769This PR was made with Claude Code (AI).