Skip to content

Tests: generic configurations and tight tolerances; ib_wall_order = 2, TSC image points and ib_visc_compact by default - #2486

Merged
sbryngelson merged 15 commits into
MFlowCode:masterfrom
sbryngelson:tests-generic-and-defaults
Nov 27, 2026
Merged

sbryngelson merged 15 commits into
MFlowCode:masterfrom
sbryngelson:tests-generic-and-defaults

Conversation

@sbryngelson

@sbryngelson sbryngelson commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Contribution Policy

All contributions are expected to demonstrate:

  • A clear understanding of the codebase
  • Alignment with product direction
  • Thoughtful reasoning behind changes
  • Evidence of real-world usage or hands-on experience with the problem

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.

  1. Generic registered tests with tight tolerances.
  2. New defaults.

Closes #2389. Refs #2041, #2390, #2453.

Commits:

  • the generic tests and tolerances;
  • one per default (ib_wall_order, ib_ip_interp, ib_visc_compact);
  • docs;
  • two tolerance commits, from the measured spreads;
  • the regenerated goldens;
  • a per-test single-precision tolerance (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

Test Change Tolerance
Translating Circle -> Periodic Edge The centre moves off the grid lines. At x = 0.9 a stage put the centre on a cell-centre line, which made a 1e-12 nudge move the result by 6e-6; now 1e-10. 1e-6 -> 1e-9
Friction slip across a seam and at a wall; Contact pair along x / y (1 and 2 fluids) The pair is off the seam and the grid, closes at unequal speeds, and slides by 1.37e-4. It was mirrored about the seam with a slip of pure round-off. The wall slider is off the face. The transposition check is kept. 3e-4 -> 1e-10
Axisymmetric Hypoelasticity HLLD (4) The second patch ends at r = 0.7137, and its x-face moves off the centre of cell 12. The shear stress was round-off (3e-7 in a 1e8-scale state); it is now a solution. 1e-5 (kept: near-zero samples of a 1e8 field differ by 1e-6, i.e. 2e-15 of the field)
Vieille Burn Rate; Injecting Body ib_ip_interp=2; Injecting Body Coarse Ignition The grain moves off the grid's mirror lines. For coarse ignition, a 1e-12 nudge moved the result by 0.34 (the centre was on a cell-centre line); now 1e-9. 1e-3 -> 1e-9, 1e-8, 1e-8
Moving Circle -> Mass Budget (example 2D_ibm_moving_mass_budget), and its Cold Wall twin The start offset goes from dx/3 to 0.1371 dx. At the default Mach number and CFL, dx/3 put the centre on a cell-centre line at some stages. The twin keeps master's ib_smooth_contact = T (#2452). 1e-6 -> 1e-9 for both: GNU and the GPU agree to 2e-12 (inviscid) and 2e-11 (twin)
Viscous Channel weno_Re_flux_compact none: GNU 12.3, Intel 2024.2, NVHPC 25.11 CPU and the A100 agree to 4e-14 1e-6 -> default
3D Hypoelasticity HLLD IBM Fixed Sphere (8DDB767E) none default 1e-6 -> 1e-5: with the new IB defaults, Frontier CCE (OpenACC) differed from GNU by 1.1e-6 in a stress on the previous CI run

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:

  • hypoelastic IBM fixed and two-way circle;
  • carbon cylinder and slip cylinder;
  • flame-vortex pair (Intel and NVHPC CPU differ by 3e-7; GNU and the A100 do not);
  • both reacting mixing layers;
  • species bounds.

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):

  • The examples 2D_ibm_conduction_annulus and 2D_ibm_taylor_couette write ib_ip_interp for 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 1 as its comment and the validation page say.
  • The ib_ip_interp=2 and ib_wall_order=2 variants duplicated their base tests once those became the default. They are now ib_ip_interp=1 (also ... quiescent) and ib_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=F tests (2D/3D, 1 and 2 fluids) keep a golden for the WENO viscous gradient next to a body.
  • 2D_ibm_taylor_couette always writes ib_visc_compact (its --visc_compact defaults to 1, like the solver).
  • 2D_ibm_cylinder_drag_nu, 3D_ibm_sphere_drag_nu, 2D_ibm_periodic_array and 2D_ibm_moving_mass_budget take --wall_order and --visc_compact; 2D_ibm_shock_curtain takes --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 = 2

ib_ip_interp = 2 (TSC)

ib_visc_compact = T (with weno_Re_flux and a body; #2041)

  • Check: the same tree built twice, differing only in 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.
    • The fluid cells are bit-identical: largest difference 0 in every primitive variable.
    • With ib_visc_compact = F they differ by up to 4.4e-5 (3.5e-4 relative) in about 1450 fluid cells.
  • Time step: the viscous time-step cap of these runs is the compact one, 0.67 in 2D and 0.72 in 3D instead of 1.
  • Spread: the HLLC tie 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 does not show up in these tests' GPU/CPU spread (below).

Testing

  • Goldens: generated on Phoenix with GNU 12.3 and OpenMPI 4.1.5, CPU, double, from a clean clone of the committed tree at master 8af0b2e plus this branch. That covers all 200 candidate tests (every IB test and the axisymmetric tests). Only the goldens that change at the test's tolerance are committed: 171 changed, 17 new (13 renamed opt-out variants and 4 ib_visc_compact=F tests) and 13 removed.
  • GPU: Phoenix, Quadro RTX 6000 (driver 580.178.04), NVHPC 25.11, OpenACC, --no-debug --no-reldebug --no-single, the same 200 tests.
    • Measured against the new GNU goldens, no test exceeds its tolerance.
    • The largest spread relative to tolerance is the 3D viscous IB tests: 3e-11 to 6e-11 against 1e-10.
    • The per-test values are in the table below.
    • Harness hand test of the pushed head 5c407db on a Tesla V100 (NVHPC 25.11): 200 of 200 pass (comment below).
  • Earlier CI run (old head d445290): three tests failed with the same error on every lane (39A3B369, B317404C, DF9526DB). That was a golden generated on an older base, not a spread; regenerating on the pushed base fixes it.
  • ./mfc.sh precheck passes.

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_order changed 144 and ib_ip_interp 157 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
Test UUID why max change tolerance
2D -> 1 Fluid(s) -> IBM -> Adaptive dt 09FDDC81 defaults 5.0e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Centroid On Periodic Domain End -> 2 MPI Ranks 50B98DBF defaults 7.0e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Circle 16574715 defaults 5.0e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Circle -> ib_ip_interp=1 A2ACC05A new (renamed opt-out variant) - 1e-10
2D -> 1 Fluid(s) -> IBM -> Circle -> ib_ip_interp=1 quiescent B0E46764 new (renamed opt-out variant) - 1e-10
2D -> 1 Fluid(s) -> IBM -> Circle -> ib_wall_order=1 E72E9486 new (renamed opt-out variant) - 1e-10
2D -> 1 Fluid(s) -> IBM -> Circle -> slip 4F5A5E32 defaults 3.6e-02 1e-10
2D -> 1 Fluid(s) -> IBM -> Collision -> Contact pair along x AC3AAF00 test change + defaults 1.0e+00 1e-10
2D -> 1 Fluid(s) -> IBM -> Collision -> Contact pair along y AE4D2FDA test change + defaults 1.0e+00 1e-10
2D -> 1 Fluid(s) -> IBM -> Collision -> Friction slip regularisation across a rank seam D8BC2E49 test change + defaults 1.0e+00 1e-10
2D -> 1 Fluid(s) -> IBM -> Collision -> Friction slip regularisation at a wall AE0216C4 test change + defaults 1.1e+00 1e-10
2D -> 1 Fluid(s) -> IBM -> Fixed Circle -> Body Force -> mass E53E6397 defaults 5.0e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Fixed Circle -> Body Force -> no mass 2FC9648E defaults 5.0e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Fixed Circle -> Slip -> ib_mass_relax 5E746B78 defaults 9.8e-02 1e-08
2D -> 1 Fluid(s) -> IBM -> Isothermal 5BBDFB29 defaults 1.0e+00 1e-10
2D -> 1 Fluid(s) -> IBM -> Moving Circle -> Two-way CFL restart B7A370B8 defaults 1.3e+00 1e-10
2D -> 1 Fluid(s) -> IBM -> Moving Circle -> ib_mass_relax 04FB9E91 defaults 5.0e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Moving Circle -> ib_mass_relax swept cells F1F38949 defaults 4.8e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Moving Circle -> ib_uncover_fill 27CD0714 defaults 4.8e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Particle Cloud -> Box E085CC5A defaults 5.9e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Particle Cloud -> Box -> Restart 1E6FD465 defaults 3.7e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Particle Cloud -> Hemisphere Shell 5A22B45F defaults 3.7e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Periodic Bodies -> many_ib_patch_parallelism ED2D5C0A defaults 7.7e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Periodic Circle 3008BA80 defaults 7.7e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Periodic Circle -> Mean Pressure Gradient 88ADD5C1 defaults 8.2e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Rectangle A2036630 defaults 2.8e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Rotating Circle 5C04A681 defaults 5.0e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Slip Circle -> Cross Flow F3ECE90B defaults 3.7e-02 1e-10
2D -> 1 Fluid(s) -> IBM -> Translating Circle -> 2 MPI Ranks -> Body-Frame Force 9C0CAF25 defaults 5.1e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Translating Circle -> Body-Frame Force 997E2B0E defaults 5.3e-01 1e-10
2D -> 1 Fluid(s) -> IBM -> Translating Circle -> Periodic Edge -> Body-Frame Force 993DF695 test change + defaults 5.0e-01 1e-09
2D -> 1 Fluid(s) -> IBM -> Translating Spinning Circle -> Body-Frame Force 540C72F1 defaults 4.9e-01 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> Circle B7A6CC79 defaults 5.5e-01 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> Circle -> ib_smooth_contact F86059C9 defaults 5.5e-01 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> Circle -> ib_wall_order=1 74CEDCD1 new (renamed opt-out variant) - 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> Circle -> slip 6171E9D4 defaults 1.9e-02 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> Circle -> weno_Re_flux -> ib_visc_compact E597CAE4 defaults 5.5e-01 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> Circle -> weno_Re_flux -> ib_visc_compact=F 88C18DD7 new (renamed opt-out variant) - 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> Rectangle C87A466A defaults 3.6e-01 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> model_eqns=3 B0CE19C5 defaults 5.5e-01 1e-10
2D -> 1 Fluid(s) -> Viscous -> IBM -> model_eqns=3 -> slip 7F70E665 defaults 1.9e-02 1e-10
2D -> 2 Fluid(s) -> IBM -> Circle 647715EB defaults 5.0e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Circle -> slip F60D6594 defaults 3.6e-02 1e-10
2D -> 2 Fluid(s) -> IBM -> Collision -> Friction slip regularisation across a rank seam 474D6E2B test change + defaults 1.0e+00 1e-10
2D -> 2 Fluid(s) -> IBM -> Collision -> Friction slip regularisation at a wall 78016FF2 test change + defaults 1.1e+00 1e-10
2D -> 2 Fluid(s) -> IBM -> Fixed Circle -> Body Force -> mass 9D95D7B8 defaults 5.0e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Fixed Circle -> Body Force -> no mass F4675B3A defaults 5.0e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Particle Cloud -> Box C8AD6271 defaults 5.9e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Particle Cloud -> Box -> Restart 1D4832F8 defaults 3.7e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Particle Cloud -> Hemisphere Shell 4BED9896 defaults 3.7e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Periodic Bodies -> many_ib_patch_parallelism FB3F47C0 defaults 7.8e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Periodic Circle 2EE0C3AA defaults 7.8e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Periodic Circle -> Mean Pressure Gradient D7D6DEEB defaults 8.2e-01 1e-10
2D -> 2 Fluid(s) -> IBM -> Rectangle FA8643EF defaults 2.8e-01 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> Circle C5D96D9A defaults 5.6e-01 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> Circle -> ib_smooth_contact 125B82E4 defaults 5.6e-01 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> Circle -> ib_wall_order=1 1A6F40B3 new (renamed opt-out variant) - 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> Circle -> slip 65CC7EB7 defaults 1.8e-02 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> Circle -> weno_Re_flux -> ib_visc_compact 128384B4 defaults 5.6e-01 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> Circle -> weno_Re_flux -> ib_visc_compact=F E2163247 new (renamed opt-out variant) - 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> Rectangle 1B218CF1 defaults 3.6e-01 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> model_eqns=3 7DCE34B4 defaults 5.6e-01 1e-10
2D -> 2 Fluid(s) -> Viscous -> IBM -> model_eqns=3 -> slip 8D8F6424 defaults 1.8e-02 1e-10
2D -> Axisymmetric -> Hypoelasticity -> HLLD -> ADC -> alt_soundspeed=F F31EAABF test change + defaults 2.0e+00 1e-05
2D -> Axisymmetric -> Hypoelasticity -> HLLD -> ADC -> alt_soundspeed=T 17E2C6D1 test change + defaults 2.0e+00 1e-05
2D -> Axisymmetric -> Hypoelasticity -> HLLD -> alt_soundspeed=F 6AF90F3C test change + defaults 2.0e+00 1e-05
2D -> Axisymmetric -> Hypoelasticity -> HLLD -> alt_soundspeed=T 421A6AD9 test change + defaults 2.0e+00 1e-05
2D -> Chemistry -> IBM -> Cold Wall Transient -> Wall Column D5EAC17E defaults 1.0e+00 1e-06
2D -> Chemistry -> IBM -> Cylinder Drag Nu 759FF2DA defaults 8.9e-01 5e-04
2D -> Chemistry -> IBM -> Injecting Body -> Coarse Ignition 124D7972 test change + defaults 1.0e+00 1e-08
2D -> Chemistry -> IBM -> Periodic Array EF38E2A6 defaults 9.9e-01 1e-06
2D -> Chemistry -> IBM Carbon Cylinder -> Burn Rate 3C5B4542 defaults 6.5e-01 3e-06
2D -> Chemistry -> IBM Inert Surface -> Flux Wall 8B2A7F3E defaults 1.9e-01 1e-06
2D -> Chemistry -> IBM Inert Surface -> Flux Wall -> Closed Box FAF04D7A defaults 2.1e-01 1e-06
2D -> Chemistry -> IBM Inert Surface -> Slip Wall 2FB9269F defaults 2.4e-01 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Flux Wall C1F0BCB1 defaults 1.9e-01 1e-10
2D -> Chemistry -> IBM Reacting Surface -> Flux Wall -> Trace Species 3F5FE078 defaults 2.5e-01 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Heat Output F7A6649D defaults 3.0e-01 (rows) 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Lumped Wall 641CC3F0 defaults 3.0e-01 (rows) 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Lumped Wall -> Radiation 7E50FFE6 defaults 3.0e-01 (rows) 1e-05
2D -> Chemistry -> IBM Reacting Surface -> Lumped Wall -> Restart CD32DCEC defaults 3.0e-01 (rows) 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Lumped Wall -> Restart -> Diffusion 4B574EE6 defaults 3.0e-01 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Lumped Wall -> Thermal Layer F389CE57 defaults 2.9e-01 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Moving Heat Output B5CAD86E defaults 1.0e+00 (rows) 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Moving Heat Output -> ib_mass_relax 041D5CC9 defaults 1.0e+00 (rows) 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Moving Heat Output -> ib_uncover_fill 92C38C91 defaults 1.0e+00 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Surface Output 40A4A5B8 defaults 3.0e-01 1e-10
2D -> Chemistry -> IBM Reacting Surface -> Thermal Layer A74B7381 defaults 2.9e-01 1e-09
2D -> Chemistry -> IBM Reacting Surface -> Thermostat F8D466BD defaults 3.1e-01 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Thermostat -> Wall Temperature C02C399E defaults 3.5e-01 1e-06
2D -> Chemistry -> IBM Reacting Surface -> Wall Column 48CC6F65 defaults 3.3e-01 1e-04
2D -> Chemistry -> IBM Reacting Surface -> Wall Column -> Time-Step Limit DF9526DB defaults 3.5e-01 (rows) 1e-03
2D -> Example -> ibm 7CC8F995 defaults 3.6e-01 1e-03
2D -> Example -> ibm_airfoil 0B07F3A1 defaults 2.4e-01 1e-03
2D -> Example -> ibm_burning_grain E5B66084 defaults 4.7e-01 1e-03
2D -> Example -> ibm_flameholder F200F862 defaults 5.0e-01 1e-03
2D -> Example -> ibm_reacting_surface F52F0D4C defaults 2.4e-01 1e-03
2D -> Example -> mibm_cylinder_in_cross_flow 127A967A defaults 6.2e-01 1e-03
2D -> Example -> mibm_shock_cylinder 7FA04E95 defaults 6.3e-02 1e-03
2D -> Example -> tumbling_rectangle 87C3F801 defaults 5.1e-01 1e-03
2D -> Hypoelasticity -> HLLD -> IBM -> Fixed Circle -> Force AA36F5D2 defaults 1.0e+00 1e-05
2D -> Hypoelasticity -> HLLD -> IBM -> Two-way Circle BA59123E defaults 9.9e-01 1e-05
2D -> IBM -> Bow Shock Standoff C794BB89 defaults 9.3e-01 1e-06
2D -> IBM -> Conduction Annulus -> Inverse Distance 947DA282 test change + defaults 1.0e+00 1e-06
2D -> IBM -> Conduction Annulus -> TSC F935DA03 defaults 1.0e+00 1e-06
2D -> IBM -> Injecting Body -> ib_ip_interp=2 39A3B369 test change + defaults 1.0e+00 1e-08
2D -> IBM -> Moving Circle -> Constant Acceleration FE3DCA48 defaults 7.9e-01 1e-06
2D -> IBM -> Moving Circle -> Mass Budget 14FF2F66 test change + defaults 9.4e-01 1e-09
2D -> IBM -> Moving Circle -> Mass Budget -> Cold Wall 6E24D2F9 test change + defaults 1.0e+00 1e-09
2D -> IBM -> Plane Poiseuille -> ib_wall_order=2 D999E5E8 defaults 1.3e+00 1e-10
2D -> IBM -> STL EA8FA07E defaults 1.0e+00 1e-10
2D -> IBM -> Shock Curtain 5BF8664C defaults 9.6e-01 1e-06
2D -> IBM -> Taylor-Couette -> ib_wall_order=2 E2C4CBC6 test change + defaults 1.2e-02 1e-10
2D -> IBM -> Vieille Burn Rate B317404C test change + defaults 1.0e+00 1e-09
3D -> 1 Fluid(s) -> IBM -> Cuboid 07D9EBD1 defaults 5.2e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Cuboid -> slip 43A1D3C6 defaults 1.9e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Cylinder D1C97CD1 defaults 6.4e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Cylinder -> slip 5173E637 defaults 2.2e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Particle Cloud -> Hemisphere Shell 49893269 defaults 5.5e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Periodic Bodies -> many_ib_patch_parallelism DE954FAA defaults 7.0e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Prescribed Kinematics -> Pitch Ramp D7E7DE04 defaults 4.2e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Sphere 34A93376 defaults 5.0e-01 1e-10
3D -> 1 Fluid(s) -> IBM -> Sphere -> ib_ip_interp=1 911FB9B6 new (renamed opt-out variant) - 1e-10
3D -> 1 Fluid(s) -> IBM -> Sphere -> ib_ip_interp=1 quiescent 3AD416B4 new (renamed opt-out variant) - 1e-10
3D -> 1 Fluid(s) -> IBM -> Sphere -> ib_wall_order=1 6A439411 new (renamed opt-out variant) - 1e-10
3D -> 1 Fluid(s) -> IBM -> Sphere -> slip 28D037A7 defaults 5.5e-02 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Cuboid 4C64244B defaults 5.0e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Cuboid -> slip 32DD0363 defaults 2.3e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Cylinder 221C9980 defaults 5.0e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Cylinder -> slip 0387594F defaults 2.6e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Cylinder along z via angles 51AC8C99 defaults 5.1e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Sphere A69D2D28 defaults 5.1e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Sphere -> ib_smooth_contact 713F4716 defaults 5.1e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Sphere -> ib_wall_order=1 674B68AA new (renamed opt-out variant) - 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Sphere -> slip A1B2B963 defaults 4.2e-02 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Sphere -> weno_Re_flux -> ib_visc_compact F22AC0A2 defaults 5.1e-01 1e-10
3D -> 1 Fluid(s) -> Viscous -> IBM -> Sphere -> weno_Re_flux -> ib_visc_compact=F A69398F6 new (renamed opt-out variant) - 1e-10
3D -> 2 Fluid(s) -> IBM -> Cuboid 4B8105EA defaults 5.2e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Cuboid -> slip 1E62093F defaults 1.9e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Cylinder 4C3164AE defaults 6.4e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Cylinder -> slip 6ED50013 defaults 2.2e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Particle Cloud -> Hemisphere Shell 135F548B defaults 5.5e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Periodic Bodies -> many_ib_patch_parallelism B204C86E defaults 7.0e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Prescribed Kinematics -> Pitch Ramp 5334FF40 defaults 4.2e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Sphere E1199F96 defaults 5.0e-01 1e-10
3D -> 2 Fluid(s) -> IBM -> Sphere -> slip 7DCA9229 defaults 5.5e-02 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Cuboid 18B832DD defaults 5.0e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Cuboid -> slip 408BF558 defaults 2.4e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Cylinder 0BD42F35 defaults 5.0e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Cylinder -> slip BFAA7587 defaults 2.6e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Cylinder along z via angles 66ABE269 defaults 5.0e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Sphere 431554F7 defaults 5.0e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Sphere -> ib_smooth_contact 345FAF72 defaults 5.0e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Sphere -> ib_wall_order=1 69F52F95 new (renamed opt-out variant) - 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Sphere -> slip 8339878C defaults 4.2e-02 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Sphere -> weno_Re_flux -> ib_visc_compact B8D029E5 defaults 5.0e-01 1e-10
3D -> 2 Fluid(s) -> Viscous -> IBM -> Sphere -> weno_Re_flux -> ib_visc_compact=F 7C8B89A5 new (renamed opt-out variant) - 1e-10
3D -> 2 MPI Ranks -> IBM Moving Sphere -> ib_neighborhood_radius=2 2440B4AE defaults 4.7e-01 1e-10
3D -> 2 MPI Ranks -> IBM Sphere AFBACA70 defaults 9.9e-01 1e-10
3D -> Chemistry -> IBM -> Hot Rod -> Face Bound B872F80B defaults 1.1e-01 1e-09
3D -> Chemistry -> IBM -> Sphere Drag Nu B20208D4 defaults 8.6e-01 3e-03
3D -> Example -> ibm_flapping_plate 86A2C59B defaults 3.6e-01 1e-03
3D -> Example -> mibm_sphere_head_on_collision AA49A8BC defaults 9.0e-01 1e-03
3D -> Example -> rotating_sphere 6076815B defaults 5.0e-01 1e-03
3D -> Hypoelasticity -> HLLD -> IBM -> Fixed Sphere -> Force 8DDB767E defaults 1.0e+00 1e-05
3D -> IBM -> STL 4E0FBE72 defaults 1.0e+00 1e-10
3D -> IBM -> Wall Collision -> Normal 6DE4C39D defaults 8.5e-01 1e-06
3D -> IBM -> Wall Collision -> Sliding Friction 9C037B27 defaults 8.6e-01 1e-06
AMR -> 2D -> moving IBM circle 13945217 defaults 6.5e-01 1e-10
AMR -> 2D -> moving IBM circle -> force-driven 952F1CEF defaults 6.4e-01 1e-10
AMR -> 2D -> moving IBM circle -> force-driven -> 2 MPI Ranks 60F620F8 defaults 5.0e-01 1e-10
AMR -> 2D -> moving IBM circle -> ib forces 4CECF724 defaults 6.5e-01 1e-10
AMR -> 2D -> moving IBM circle -> two bodies 43AF9F25 defaults 5.3e-01 1e-05
AMR -> 2D -> static IBM circle 2854A102 defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> dynamic regrid 7FC2F9F8 defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> dynamic regrid -> 2 MPI Ranks E4F6CE1E defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> dynamic regrid -> batched pair 27F6FEF5 defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> dynamic regrid -> quartic prolongation E748B162 defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> ib forces ADD26480 defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> ib_ip_interp=1 C730942B new (renamed opt-out variant) - 1e-10
AMR -> 2D -> static IBM circle -> ib_ip_interp=1 quiescent A4DABDB6 new (renamed opt-out variant) - 1e-10
AMR -> 2D -> static IBM circle -> ib_smooth_contact 1EA0BD70 defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> ib_wall_order=1 DF93F5A5 new (renamed opt-out variant) - 1e-10
AMR -> 2D -> static IBM circle -> many_ib_patch_parallelism 24176B3D defaults 1.0e+00 1e-10
AMR -> 2D -> static IBM circle -> slip 10DF5CAA defaults 7.1e-03 1e-10
AMR -> 2D -> static IBM circle -> slip -> ib_slip_ccst C51CB3CB defaults 1.3e-01 1e-10
AMR -> 2D -> static IBM circle -> spinning 7CA4FC48 defaults 5.0e-01 1e-10
AMR -> 2D -> static IBM two circles F980C769 defaults 1.0e+00 1e-10

This PR was made with Claude Code (AI).

@sbryngelson
sbryngelson requested a review from a team as a code owner November 25, 2026 14:07
@sbryngelson
sbryngelson requested review from wilfonba and removed request for a team November 25, 2026 14:07
@sbryngelson

Copy link
Copy Markdown
Member Author

A100 hand test

Machine: wingtip, NVIDIA A100 80GB PCIe, one GPU. Compiler: NVHPC 25.11, OpenACC (--gpu acc --mpi --no-debug --no-reldebug --no-single).

Code:

  • Phoenix GNU generated the goldens from the branch content before this rebase onto master 7f70138 (d445290b1). The rebase touches no file in this PR.
  • The A100 build has both IB defaults on, as on this branch. I ran it before the decision to keep weno_Re_flux_compact opt-in, so for the 49 tests that option touches it was forced off at run time.

Result (every candidate test, against this PR's goldens, at each test's tolerance):

Set Tests Result
All candidates (IB, viscous WENO, and the Part 1 tests) 234 234 pass
Tests the compact gradient would touch, run with weno_Re_flux_compact = F 49 49 pass

4B574EE6 first failed, because the hand-test tree still had master's golden for it. With its regenerated golden it passes.

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).

sbryngelson added a commit that referenced this pull request Nov 25, 2026
…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.
@sbryngelson sbryngelson added the claude-full-review Trigger Claude Code review label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Claude Code Review

Head SHA: 62d3e1b

Files changed:

  • 22
  • docs/documentation/case.md
  • docs/documentation/ib_accuracy_limits.md
  • docs/documentation/ibm.md
  • docs/documentation/testing.md
  • docs/documentation/validation_burning_body.md
  • docs/documentation/validation_cyl_drag_nu.md
  • examples/2D_ibm_taylor_couette/case.py
  • src/simulation/m_global_parameters.fpp
  • src/simulation/m_ibm.fpp
  • toolchain/mfc/test/cases.py

Summary: The PR makes three settings the defaults: TSC image points (ib_ip_interp = 2), the quadratic no-slip ghost (ib_wall_order = 2), both through a -1 sentinel resolved in s_initialize_ibm_module, and ib_visc_compact = T, masked to where it applies. It also moves tied test configurations off the grid, tightens their tolerances, and adds a per-test override_tol_single. The solver change and the harness change are correct, and the test geometry checks out. The ib_visc_compact default was added after the earlier review, and it repeats the gaps that review found for the other two options: an example flag that writes the option only when it is on, no test of the opt-out, and validation pages whose reproduce steps no longer match their runs.

Findings:

  • medium examples/2D_ibm_taylor_couette/case.py:127 (confident): --visc_compact 0 no longer turns the compact gradient off.
    • Cause: the example writes ib_visc_compact = "T" only when --visc_compact is nonzero (lines 127-128). The default 0 falls through to the new solver default. This example is viscous (line 79), uses weno_Re_flux (71), has IB (98) and is Cartesian, so the mask at m_global_parameters.fpp:1090 leaves the option on. Every run therefore uses the compact gradient, whatever the flag says.
    • Effects:
      • The flag's help ("ib_visc_compact: compact viscous gradients next to a body") and the README options list no longer describe what the flag does.
      • The CI test 2D -> IBM -> Taylor-Couette -> ib_wall_order=2 (E2C4CBC6, cases.py:4928) has silently moved to the compact gradient. Its comment (4919-4927) does not say so.
      • The "default viscous gradient" results can no longer be reproduced with the example: the "default" rows of validation_wall_order_couette.md (78, 80, 82, 85, 87, 89), its lines 95, 121 and 127, and the README's "stays near 2 % with order 2 and the default image points and viscous gradient". Line 100 of that page still calls ib_visc_compact = T "opt-in".
    • The PR fixed this exact pattern for ib_ip_interp on line 126 of the same file.
    • Fix: always write the value, e.g. case["ib_visc_compact"] = "T" if args.visc_compact else "F". Then either set --visc_compact to default to 1, to follow the solver, or regenerate E2C4CBC6. Update the page's "opt-in" sentence and its "default" labels.
  • medium toolchain/mfc/test/cases.py:1409 (confident): No registered test covers ib_visc_compact = F, the opt-out the docs give for the earlier gradient.
    • {shape} -> weno_Re_flux -> ib_visc_compact sets "ib_visc_compact": "T", which is now the default, so this mod changes nothing. No other test or example sets F.
    • The mask depends only on ib, viscous, weno_Re_flux and cyl_coord, and no IB test runs in cylindrical coordinates. So the pre-PR path (the WENO viscous gradient next to a body) has no golden left. That path is what every weno_Re_flux IB run used before this PR, and what ib_visc_compact = F restores.
    • The PR turned the analogous ib_ip_interp=2 and ib_wall_order=2 variants into =1 opt-outs for this reason ("The opt-out values are now tested"), but did not do so for this option.
    • Fix: add a weno_Re_flux -> ib_visc_compact=F variant next to this one (2D/3D, 1 and 2 fluids) with "ib_visc_compact": "F", and generate its goldens.
  • medium docs/documentation/validation_cyl_drag_nu.md:24 (confident): The validation pages this PR edits say how to repeat their runs, but setting ib_ip_interp = 1 no longer reproduces them.
    • What the PR says: the Numerics rows now say ib_ip_interp = 1 "was the default when these runs were made". Two pages add that it is "now set explicitly by the example" (validation_cyl_drag_nu.md:24, validation_particle_array.md:25). The shock-curtain page says to "set it explicitly to repeat them" (validation_shock_curtain.md:24).
    • What the examples do: none of 2D_ibm_cylinder_drag_nu, 3D_ibm_sphere_drag_nu, 2D_ibm_periodic_array, 2D_ibm_shock_curtain or 2D_ibm_moving_mass_budget sets ib_wall_order, and all of them have no-slip walls. The viscous ones (drag/Nu, particle array, mass-budget twin) also do not set ib_visc_compact, and they use weno_Re_flux.
    • Result: their Reproduce commands now run the quadratic fill (and, for the viscous ones, the compact gradient), not the wall value and WENO gradient the tables were made with.
    • validation_cyl_drag_nu.md:75 still says "The no-slip ghost value is the wall value ... ib_wall_order = 2 is the option for it and was not run here". Its own Reproduce commands (84-86) now run it.
    • The earlier review raised this, and it is unchanged.
    • Fix: record ib_wall_order = 1 (and ib_visc_compact = F for the viscous runs) in these rows and in the Reproduce commands, or give the examples flags for them. Rewrite line 75.
  • low docs/documentation/case.md:514 (confident): Text that calls the old settings "the default" is now false, and in places inverted.
    • Files this PR edits:
      • case.md:512: ib_slip_ccst is "much more accurate with ib_ip_interp = 2 than with the default interpolation".
      • case.md:513: "or to the default fill".
      • case.md:514: "10 to 20 times smaller than with the default ... the default converges at order 1".
      • ib_accuracy_limits.md:35: "With the default weights it is first order on the annulus". The default is now TSC, which is second order per line 22.
      • ib_accuracy_limits.md: the "default" rows at 23, 24, 27 and 29, and lines 41 and 72.
      • examples/2D_ibm_conduction_annulus/case.py:8-9: the docstring says "1 inverse distance (default of the solver)".
    • Files this PR does not edit:
      • toolchain/mfc/test/cases.py:4923: "The default order 1 is covered by the viscous IBM tests above". Order 1 is now covered by the renamed ib_wall_order=1 variants.
      • src/simulation/m_ibm.fpp:104 and :3224: tier 3 is "the default treatment".
      • The [WALLFILL] ... default label (m_ibm.fpp:1869), which every no-slip IB run now prints.
      • validation_wall_order_couette.md:9 ("ib_wall_order 1 (the default mirror)").
      • README lines in 2D_ibm_conduction_annulus (9), 2D_ibm_plane_poiseuille (6), 2D_ibm_taylor_couette (6-7) and nD_ibm_carbon_burn (11: "the suite test keeps the default").
    • Fix: say "wall value", "inverse distance" or "order 1" instead of "default".
  • low src/simulation/m_global_parameters.fpp:1090 (likely): "Closes weno_Re_flux with IBM reads solid cells past gp_layers, making viscous results compiler-dependent #2041" closes the issue while the mask still leaves its reported dependence in some configurations.

Coverage:

  • Read in full or by whole enclosing routine (post-change):
    • The entire diff.
    • m_ibm.fpp: s_initialize_ibm_module, the module declarations, s_report_ibm_surface and s_tsc_weights.
    • m_global_parameters.fpp: the defaults block, s_initialize_global_parameters_module through the coordinate bounds, and s_set_visc_dt_cap.
    • toolchain/mfc/test/case.py: TestCase, compute_tolerance, TestCaseBuilder.to_case (the functor runs after the mods) and the define_case_* helpers.
    • cases.py: every changed block with its enclosing generator: alter_ib and the viscous stacks that call it, body-frame force, friction box, viscous channel, the hypoelastic base configs and loop, burn-rate cases, mass budget, lumped wall, Couette/annulus, the AMR IB block, and casesToSkip.
    • The Taylor-Couette and moving-mass-budget examples.
  • Checked numerically:
    • Grid widths behind the new offsets: dx = 0.02 (periodic edge), 0.25 (friction box) and 0.04 (axisymmetric HLLD).
    • The transposition of the contact pair.
    • The mass-budget comment's arithmetic (Mach 0.2, CFL 0.4: dt = dx/3, step = dx/15).
    • The burning-grain cell widths under the test mods.
    • The 13 new UUIDs, recomputed from their traces with a standalone copy of trace_to_uuid.
  • Reviewed from the diff and targeted reads: definitions.py, descriptions.py, ibm.md, testing.md, validation_burning_body.md, the reproduce sections of the edited validation pages, and the drag/Nu and annulus examples.
  • Traced in the base checkout:
    • Every reader of ib_ip_interp, ib_wall_order, ib_wall_quad, ib_keep_ghost, ib_ip_width, ib_visc_compact and visc_dt_cap.
    • Initialization order in m_start_up.fpp: global parameters, then IBM init, then IBM setup, then finalize.
    • s_configure_coordinate_bounds: the IB buff_size floor does not depend on these options.
    • The m_rhs and m_viscous compact-gradient path, and the fixed-dt viscous warning (it does not abort).
    • The IB rules in case_validator.py, with no Fortran checker for these options.
    • SIM_GPU_DECL_VARS and CASE_OPT_PARAMS: none of the three options is a case-opt constant. All three are simulation-only _nv.
    • The single-precision skip list in test.py.
    • All examples and READMEs that set or describe these options or weno_Re_flux, and validation_wall_order_couette.md.
  • History, issues and CI:

@sbryngelson

Copy link
Copy Markdown
Member Author

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.

  1. [verified] The branch conflicts with current master: 49 conflicts, nearly all golden files, plus toolchain/mfc/test/cases.py. Master has since changed m_ibm.fpp, m_collisions.fpp and the same tests (IBM: rank-independent buried-image-point fallback (fill the corrected ghosts' halos) #2441, IBM: per-species ghost mirror weight at chemistry walls; lumped-cooling and Couette-shear gaps explained #2446, Require weno_avg with weno_Re_flux; runtime num_local_ibs_max; guard ghost-point body ids; document flagged parameters #2452, IBM: give a body-pair contact on a periodic edge exactly one owning rank #2480), so the goldens need regenerating after a rebase; neither side of a conflict is right. cases.py:4865-4871 (Cold Wall twin override_tol=3e-5) and :5001 (C1F0BCB1 1e-6) were measured before those merges.
  2. [verified] examples/2D_ibm_conduction_annulus/case.py:137-138 writes ib_ip_interp only for --interp 2, so the default now falls through to the new solver default: tests/947DA282 ("Conduction Annulus -> Inverse Distance") is byte-identical to tests/F935DA03 (TSC). The inverse-distance stencil's exact-solution regression test is gone.
  3. examples/2D_ibm_taylor_couette/case.py:126-127: same pattern, --ip_interp 1 now runs TSC. Test E2C4CBC6 (cases.py:4913) silently moved and its 1e-10 tolerance comment describes inverse-distance measurements; the inverse-distance rows of validation_wall_order_couette.md can no longer be reproduced with the example.
  4. [verified for two pairs] cases.py:1400-1407 and 6161-6167: the "=2" variants duplicate their base tests. Identical goldens: 16574715=CCDC2BFA=8C0A833F; 34A93376=1EA3FE59=449059E2; 24176B3D=2854A102=48849C84=6866248E; B7A6CC79=71E145FE. No registered test sets ib_wall_order = 1, the documented opt-out. The comment at cases.py:1393 ("the default inverse-distance weights") is now false. Suggested: flip those variants to =1.
  5. Risk, not a shown failure: tolerances of 1e-8 to 1e-10 (cases.py:1867-1876, 4775-4803) were measured on GNU 12.3, Intel 2024.2, NVHPC 25.11 CPU and an A100. Cray CCE and AMD flang on Frontier and NVHPC 25.5/26.9 are unmeasured, and the deleted comment recorded Cray differing by 3.2e-5 on the friction pair before IBM: assign a shell cell to the nearest body in ib_mass_relax (orientation-independent) #2436.
  6. Golden metadata records dirty trees at dd216060 and dade1306, neither in the PR.

Checked and found correct: the -1 defaults are resolved at m_ibm.fpp:253-254 before the derived flags and the GPU_UPDATE; the validator's choices are consistent; exactly 181 UUIDs changed, none added or removed.

(Reviewed with Claude Code.)

@sbryngelson
sbryngelson force-pushed the tests-generic-and-defaults branch from d445290 to 5c407db Compare November 26, 2026 03:15
@sbryngelson sbryngelson changed the title Tests: generic configurations and tight tolerances; ib_wall_order = 2 and TSC image points by default Tests: generic configurations and tight tolerances; ib_wall_order = 2, TSC image points and ib_visc_compact by default Nov 26, 2026
@sbryngelson

Copy link
Copy Markdown
Member Author

GPU hand test (pushed head 5c407db)

Phoenix, Tesla V100-PCIE-16GB (driver 580.178.04), NVHPC 25.11, OpenACC, --no-debug --no-reldebug --no-single, one GPU, -- --binary mpirun. The tree is a clean checkout of 5c407db (master 34aadf1 plus this PR).

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 --generate run on a Quadro RTX 6000 (NVHPC 25.11), compared test by test. No test exceeds its tolerance (values in the PR body's table).

  • The closest are the 3D viscous IB tests: 3e-11 to 6e-11 against 1e-10.
  • Then 8DDB767E: 9e-7 against its new 1e-5 (Frontier CCE showed 1.1e-6 on the previous CI run).

The previous CI run failed 39A3B369, B317404C and DF9526DB with the same error on every lane. Those goldens had been generated on an older base, not a compiler spread; regenerating on the pushed base removes that.

AI-assisted (Claude Code).

@sbryngelson

Copy link
Copy Markdown
Member Author

Reply to the review (#2486 (comment)), as of 5c407db.

  1. Rebased on master 34aadf1 (after IBM: rank-independent buried-image-point fallback (fill the corrected ghosts' halos) #2441, IBM: per-species ghost mirror weight at chemistry walls; lumped-cooling and Couette-shear gaps explained #2446, Require weno_avg with weno_Re_flux; runtime num_local_ibs_max; guard ghost-point body ids; document flagged parameters #2452, IBM thermal models: wall-column probe round-off (exact all-fluid TSC fraction); mean_temp_wall removes viscous dissipation #2478 and the rest).
    • The conflicts were resolved by taking master's version of every golden. The cases.py conflicts kept master's ib_smooth_contact = T on the cold-wall twin and master's wall-column entry.
    • Every candidate golden (all IB tests plus the axisymmetric tests, 200) was then regenerated once on that base on Phoenix (GNU 12.3).
    • The cold-wall twin and C1F0BCB1 tolerances were re-measured against an NVHPC 25.11 GPU run on that base:
      • 6E24D2F9: 2e-11, so 1e-9.
      • C1F0BCB1: 1e-12, so back to the IB default of 1e-10.
  2. Conduction annulus. examples/2D_ibm_conduction_annulus/case.py writes ib_ip_interp for both values. 947DA282 (Inverse Distance) and F935DA03 (TSC) differ again.
  3. Taylor-Couette. examples/2D_ibm_taylor_couette/case.py writes ib_ip_interp for both values, so --ip_interp 1 runs inverse distance. E2C4CBC6 again runs what its comment and the validation page describe. Every other write of ib_ip_interp / ib_wall_order in examples and toolchain was already unconditional (audited with git grep).
  4. Duplicate "=2" variants. They are now the opt-outs:
    • ib_ip_interp=1, ib_ip_interp=1 quiescent and ib_wall_order=1, in 2D and 3D, 1 and 2 fluids, and on the AMR static circle. That is 13 renamed tests with new UUIDs; the 13 old directories are removed.
    • The stale comment at the TSC block is corrected.
    • Each renamed test's golden differs from its default counterpart (checked, e.g. 16574715 vs A2ACC05A).
  5. Lanes.
  6. Clean tree. The goldens come from a fresh clone of commit f9b3fb6, which is in this PR; git status was empty before generation. The metadata's "(dirty)" is the tests/ directory being written during --generate; master's goldens carry it too.

Also folded in: #2041, with ib_visc_compact on by default with weno_Re_flux and a body. With it, gp_layers 3 and 6 give bit-identical fluid cells; with it off they differ by up to 3.5e-4 (relative).

GPU hand test of 5c407db: Tesla V100, NVHPC 25.11, 200 of 200 pass.

AI-assisted (Claude Code).

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.57%. Comparing base (c158eee) to head (804f4a3).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/simulation/m_ibm.fpp 33.33% 0 Missing and 2 partials ⚠️
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.
📢 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

Copy link
Copy Markdown
Member Author

The two red lanes on 5c407db, and the fix in 5586ac8

1. "Github (ubuntu, mpi, no-debug, GNU)" is the single-precision lane (PRECISION: --single). In single precision an override_tol is floored at 1e-4, so the tolerances I had tightened gave these tests 1e-4. Failures:

Test abs error rel error
AE4D2FDA (Contact pair along y) 1.02e-4 1.6e-2
474D6E2B (2-fluid friction seam) 1.12e-4 6.8e-2
B317404C (Vieille) 1.32e-4 1.8e-4
39A3B369 (Injecting Body) 1.32e-4 1.8e-4

This is single-precision round-off, not a contact flipping:

  • The large relative errors sit on near-zero momentum values (6e-3 against a field maximum of 2.5). Measured against the field maximum, the error is 4e-5 to 9e-5.
  • In double precision a 1e-12 nudge of a centroid moves the results by about 5e-12, a smooth response.
  • The friction slip (1.37e-4) is well inside the regularisation band (eps 3e-3), so no branch is near its threshold.

Measured on Phoenix with GNU 12.3 --single (--generate against this PR's double goldens; max of min(abs, rel) error):

Test single vs double max diff / field max
D8BC2E49 3.3e-5 8.8e-5
AE0216C4 4.6e-6 6.2e-5
AC3AAF00 3.6e-5 8.7e-5
AE4D2FDA 3.3e-5 7.3e-5
474D6E2B 3.0e-5 6.7e-5
78016FF2 1.0e-5 1.2e-4
B317404C 3.2e-4 2.7e-4
39A3B369 2.6e-4 2.2e-4

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:

  • A per-test single-precision tolerance in the harness, override_tol_single (on define_case_f / define_case_d). It is used only in --single builds, as max(override_tol_single or override_tol, 1e-4), so the floor and the double comparison are unchanged. There is a unit test, toolchain/mfc/test/test_tolerance.py, and a sentence in testing.md.
  • Friction and contact (6 tests): override_tol_single = 1e-3 (about 10x the 1.1e-4 the CI lane showed).
  • Vieille and Injecting Body: 3e-3 (about 10x 3.2e-4).
  • The double tolerances stay at 1e-10, 1e-9 and 1e-8.

2. "Github (ubuntu, mpi, no-debug, intel)": 7E50FFE6 (Lumped Wall -> Radiation) fails at rel 1.24e-6 against 1e-6 in ib_heat.dat. On this base GNU and the GPU agree on this test to 3e-7, so this is an Intel compiler spread of about 1e-6 with the new IB defaults. Its tolerance is now 1e-5, about 8x the Intel value.

./mfc.sh precheck passes on 5586ac8. No golden changed in this push, so the GPU hand test of 5c407db (200 of 200 on a V100) still covers the comparisons.

AI-assisted (Claude Code).

sbryngelson added a commit to sbryngelson/MFC that referenced this pull request Nov 26, 2026
@sbryngelson
sbryngelson force-pushed the tests-generic-and-defaults branch from 5586ac8 to 62d3e1b Compare November 26, 2026 08:51
@sbryngelson

Copy link
Copy Markdown
Member Author

Rebased on master 10e1299 (#2491); GPU hand test of the pushed head 62d3e1b

Rebase.

GPU hand test of 62d3e1b: Phoenix, Quadro RTX 6000 (driver 580.178.04), NVHPC 25.11, OpenACC, --no-debug --no-reldebug --no-single, -- --binary mpirun, clean checkout of the pushed commit. All 200 candidate tests run against this PR's goldens at each test's tolerance: 200 passed, 0 failed. This includes #2491's device-side changes (the analytic moving-IB velocities in s_ibm_setup's GPU loop).

./mfc.sh precheck passes.

AI-assisted (Claude Code).

@sbryngelson

Copy link
Copy Markdown
Member Author

Reply to the review of 62d3e1b, fixed in ebb6257 (one push, on master 8af0b2e).

  1. Taylor-Couette (examples/2D_ibm_taylor_couette/case.py). The example writes ib_visc_compact for both values. --visc_compact now defaults to 1, like the solver, so E2C4CBC6 runs inverse-distance image points with the compact gradient, and its comment says so.
    • In validation_wall_order_couette.md the "default" rows are relabelled "inverse distance, WENO gradient", "TSC, WENO gradient", "... compact gradient".
    • The "opt-in" sentence and lines 5, 9, 95, 96, 121 and 127 are corrected.
    • The Reproduce section says the WENO-gradient rows need --visc_compact 0.
    • The README is updated to match.
  2. ib_visc_compact = F coverage. New {Circle, Sphere} -> weno_Re_flux -> ib_visc_compact=F tests (2D/3D, 1 and 2 fluids; 4 new UUIDs), next to the =T ones.
  3. Validation examples and Reproduce commands.
    • 2D_ibm_cylinder_drag_nu, 3D_ibm_sphere_drag_nu, 2D_ibm_periodic_array and 2D_ibm_moving_mass_budget take --wall_order (default 2) and --visc_compact (default 1), and always write them; the mass budget writes ib_visc_compact only for its viscous runs. 2D_ibm_shock_curtain takes --wall_order. These defaults equal the solver's, so the registered tests are unchanged.
    • The pages' Numerics/Wall rows record the settings the published runs used, and the Reproduce commands pass --wall_order 1 --visc_compact 0 (--wall_order 1 for the curtain and the inviscid budget).
    • validation_cyl_drag_nu.md:75 and the matching sphere sentence are rewritten.
  4. Wording. "default" in the sense of the old settings is replaced in:
    • case.md (512-514);
    • ib_accuracy_limits.md (rows 23, 24, 27, 29 and lines 35, 41, 72);
    • the annulus docstring and README, and the Poiseuille, Taylor-Couette and carbon-burn READMEs;
    • cases.py (the order-1 coverage sentence);
    • m_ibm.fpp (the two tier-3 comments, and the third label of the [WALLFILL] line, now "wall value").
  5. weno_Re_flux with IBM reads solid cells past gp_layers, making viscous results compiler-dependent #2041. The PR now says "Refs weno_Re_flux with IBM reads solid cells past gp_layers, making viscous results compiler-dependent #2041", and case.md states what the issue leaves open next to ib_visc_compact: the = F opt-out and cylindrical coordinates. Comment on the issue: weno_Re_flux with IBM reads solid cells past gp_layers, making viscous results compiler-dependent #2041 (comment)

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 =F tests), 13 old directories removed, 16 unchanged.

Fortran in this push. Comment text only, plus the [WALLFILL] output label. precheck passes.

GPU hand test of this head: Phoenix job running; I will post the count here.

AI-assisted (Claude Code).

@sbryngelson

Copy link
Copy Markdown
Member Author

GPU hand test of the review push

Machine: Phoenix, NVIDIA A100 80GB PCIe (driver 615.71.09). Build: NVHPC 25.11, OpenACC, --no-debug --no-reldebug --no-single, one GPU, -- --binary mpirun.

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 ib_visc_compact=F tests), against this PR's goldens at each test's tolerance: 204 passed, 0 failed.

AI-assisted (Claude Code).

sbryngelson added a commit that referenced this pull request Nov 26, 2026
…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
@sbryngelson
sbryngelson force-pushed the tests-generic-and-defaults branch from ebb6257 to d9342d1 Compare November 26, 2026 18:03
@sbryngelson

Copy link
Copy Markdown
Member Author

Rebased on master c158eee (#2505, #2514, #2508)

Conflicts.

Fortran. No src/ change beyond what the PR already had.

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).

@sbryngelson
sbryngelson force-pushed the tests-generic-and-defaults branch from 804f4a3 to e3cea99 Compare November 26, 2026 21:54
@sbryngelson

Copy link
Copy Markdown
Member Author

Rebased on master 946d1e5 (#2517): one push, e3cea99

Conflicts.

Fortran. src/ changed only by the conflict resolution above. This PR's src/ diff against master is still just m_global_parameters.fpp and m_ibm.fpp.

Goldens.

./mfc.sh precheck passes. There is no separate GPU run this time; the CI GPU lanes cover it.

AI-assisted (Claude Code).

@github-actions

Copy link
Copy Markdown

Lines of Code

File Lines Diff
src/simulation/m_ibm.fpp 4445 +2
src/simulation/m_global_parameters.fpp 1002 +1
Directory Lines Diff
simulation 42773 +3
total 62829 +3

…C central tangential velocity); their MFlowCode#2515 goldens predate it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-full-review Trigger Claude Code review

1 participant