Testing ======== Conventions ----------- - **Unit tests** use GoogleTest; each is named ``Suite.Test``. They are deterministic, finish in seconds on 1–4 ranks, and run on every commit: ``ctest -L unit``. - **Regression tests** run the application and check the result: most with a script against pinned numbers, a log or a gold file, a few with ``amrex_fcompare`` against a gold plotfile. The check scripts print *measured / target / tolerance / pass* rows. ``ctest -L smoke`` runs the checks CI does on every pull request. The longer converged runs carry the label ``regression`` alone or ``nightly``; no CI job or Kestrel script runs them yet, so they are run by hand (``ctest -L regression``, ``ctest -L nightly``). The case folders ``Nest_Placement_Runs``, ``Column_Marching`` and ``Smooth_Plateau_2D`` in ``Tests/Canonical_RANS/`` have no CTest; they are run by hand (each folder's README). - **Performance tests** (iterations, wall time and allocation-unit cost against a stored value) do not exist yet. - **Gold files** change only in a reviewed commit. Every test is first shown to fail on the bug it guards against, or on a one-line mutant of the code it covers. The one-line mutants of the ``gmres_mlmg`` default (``Source/Poisson.H``, ``Source/Initializer.cpp``, ``Source/App.cpp``), each run against ``unit_np2``, ``rt_steady_askervein`` and (P1) ``rt_init_askervein``; every one is killed: .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - P1 - No fallback: the projection with ``alpha_v != alpha_h`` keeps ``gmres_mlmg`` - ``Initializer.ProjectionBackEndFollowsTheAlphaRatio`` and others in ``unit_np2``, ``rt_steady_askervein``, ``rt_init_askervein`` * - P2 - The old default ``gmres_fft`` - ``unit_np2``, ``rt_steady_askervein`` (its log pattern ``pressure gmres_mlmg``) * - P3 - The split coefficient set for every :math:`\alpha \ne 1`, also :math:`\alpha_v = \alpha_h` - ``Initializer.EqualAlphasAreThePlainProjection`` (``unit_np2``) * - P4 - The fallback not reported - ``unit_np2``, ``rt_steady_askervein`` (its log line) * - P5 - The stage's log line without the back end - ``rt_steady_askervein`` * - P6 - The fallback to ``mlmg`` instead of ``gmres_fft`` - ``unit_np2``, ``rt_steady_askervein`` * - P7 - The ``solver.poisson_precond`` refusal without its hint about the default - ``PoissonB.UnsupportedCombinationsAreRefused`` (``unit_np2``) The one-line mutants of the line-sweep variants (``Source/LineSweeps.cpp`` and ``Source/Driver.cpp``), each run against ``LineSweeps.*``, ``Driver.*`` and ``Predictor.Lusgs*`` on two ranks by ``tools/line_sweep_mutants.py``; every one is killed: .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - M1 - Overlap ignored (swept region not grown) - ``LineSweeps.EveryFaceIsOwnedAndSweptOnce``, ``LineSweeps.OverlapsReachTheSameState`` * - M2 - Face updated twice (box keeps its high face) - ``LineSweeps.EveryFaceIsOwnedAndSweptOnce``, ``LineSweeps.OverlapsReachTheSameState``, ``LineSweeps.ConvergedStateDoesNotDependOnTheLayout`` * - M3 - Periodic seam updated twice (first box keeps the domain's low face) - ``LineSweeps.EveryFaceIsOwnedAndSweptOnce``, ``LineSweeps.OverlapsReachTheSameState``, ``LineSweeps.ConvergedStateDoesNotDependOnTheLayout`` * - M4 - Forward wavefront skips its last plane - ``LineSweeps.DiagonalOrderingEqualsTheSequentialSweep`` * - M5 - Backward wavefront skips plane 0 - ``LineSweeps.DiagonalOrderingEqualsTheSequentialSweep`` * - M6 - Ghost δ not zeroed (neighbours' values exchanged between passes) - ``LineSweeps.EveryFaceIsOwnedAndSweptOnce`` * - M7 - Non-owned face copies keep their own value (owner mask all 1) - ``LineSweeps.EveryFaceIsOwnedAndSweptOnce``, ``LineSweeps.OverlapsReachTheSameState``, ``LineSweeps.ConvergedStateDoesNotDependOnTheLayout`` * - M8 - One-cell periodic axis not folded into the diagonal - ``LineSweeps.EveryFaceIsOwnedAndSweptOnce`` * - M9 - ``steady.line_overlap`` not read - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` * - M10 - ``steady.line_ghosts`` not read - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` * - M11 - ``steady.line_order`` not read - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` * - M12 - ``steady.line_overlap`` above 8 accepted - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` * - M13 - A negative ``steady.line_overlap`` accepted - ``Driver.DivergenceStopsAndTheChecksNameTheirInput``, ``LineSweeps.RefusalsAndNames`` * - M14 - Overlap with lagged ghosts accepted - ``Driver.DivergenceStopsAndTheChecksNameTheirInput``, ``LineSweeps.RefusalsAndNames`` * - M15 - Overlap wider than the narrowest box accepted - ``Driver.DivergenceStopsAndTheChecksNameTheirInput``, ``LineSweeps.RefusalsAndNames`` * - M16 - Line key given with ``zjacobi`` accepted - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` * - M17 - Odd sweeps not reversed (``steady.line_alternate`` ignored) - ``LineSweeps.AlternatingOrderingSweepsBothDiagonals`` * - M18 - Reversed forward wavefront skips its last plane - ``LineSweeps.AlternatingOrderingSweepsBothDiagonals`` * - M19 - Reversed sequential forward pass walks j ascending - ``LineSweeps.AlternatingOrderingSweepsBothDiagonals`` * - M20 - ``steady.line_alternate`` not read - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` * - M21 - ``steady.line_alternate = 2`` accepted - ``Driver.DivergenceStopsAndTheChecksNameTheirInput``, ``LineSweeps.AlternatingOrderingSweepsBothDiagonals`` * - M22 - ``steady.line_alternate`` given with ``zjacobi`` accepted - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` * - M23 - ``steady.line_alternate = 1`` with ``steady.zline_sweeps = 1`` accepted (the option read and ignored) - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` The one-line mutants of the transfers between levels (``Source/Transfer.cpp``; T11–T15 in its interpolation kernel, ``Source/Transfer_K.H``), each run against ``Transfer.*`` on two ranks with the unit-test flags (SNaN fill, FPE trap) by ``tools/transfer_mutants.py``. 23 are killed. Three survive and the script lists them as equivalent: T6 and T9 change no value, and T24 changes only the ``gmres_fft`` solver's path, so its result agrees with the original's to the solver tolerance. A first run, without the SNaN and FPE flags and before ``TargetNodeHeightsComeFromTheHierarchy``, ``OneCellDirectionIsConstant`` and ``WrongLevelPairsAbort`` were added, left T10, T14, T18 and T19 alive as well. "Crash" marks a mutant that stops the run with a signal in that test (SIGILL on macOS arm64), so the tests after it did not run. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - T1 - Cell means not ``detJ``-weighted - ``RestrictionConservesFaceFlux`` * - T2 - x/y-face flux without the fine area factor - ``RestrictionConservesFaceFlux``, ``RoundTripIsTheClosedFormSmoother`` * - T3 - x/y-face flux not divided by r - ``RestrictionConservesFaceFlux``, ``RoundTripIsTheClosedFormSmoother`` * - T4 - z-face flux divided by r instead of :math:`r^2` - ``RestrictionConservesFaceFlux``, ``RoundTripIsTheClosedFormSmoother`` * - T5 - Coarse u not divided by the coarse area factor - ``RestrictionConservesFaceFlux``, ``RoundTripIsTheClosedFormSmoother`` * - T6 - Coarse Ω not divided by the coarse area factor - Equivalent: :math:`a_z = 1` on every mesh * - T7 - w restricted in place of Ω - ``RestrictionConservesFaceFlux`` * - T8 - No zero-gradient rows for the slope term's u - ``RestrictionConservesFaceFlux`` (crash) * - T9 - No periodic fill for the slope term's u - Equivalent: the slope term reads u on its own cell's x-faces, no horizontal ghost * - T10 - Coarse ``z_phys_nd`` not set by ``restrict_state`` - ``TargetNodeHeightsComeFromTheHierarchy`` * - T11 - Cell-centred position shifted by half a fine cell - ``ProlongationOfBilinearFieldsIsExact``, ``RoundTripIsTheClosedFormSmoother``, ``OneCellDirectionIsConstant`` * - T12 - No linear extrapolation at a non-periodic face (reads past the last centre) - ``ProlongationOfBilinearFieldsIsExact`` (crash) * - T13 - Periodic direction extrapolates instead of reading the periodic image - ``RoundTripIsTheClosedFormSmoother`` * - T14 - One-cell direction reads a second coarse cell (zero weight, unfilled ghost) - ``OneCellDirectionIsConstant`` (crash) * - T15 - x weights swapped on the upper y row - ``ProlongationOfBilinearFieldsIsExact``, ``RoundTripIsTheClosedFormSmoother``, ``OneCellDirectionIsConstant`` * - T16 - w interpolated with the nodal x axis - ``ProlongationOfBilinearFieldsIsExact`` (crash) * - T17 - Coarse image filled without the periodic images - ``ProlongationOfBilinearFieldsIsExact`` (crash) * - T18 - Fine ``z_phys_nd`` not set by ``prolong_fields`` - ``TargetNodeHeightsComeFromTheHierarchy`` * - T19 - Fine-below-coarse level check dropped - ``WrongLevelPairsAbort`` * - T20 - k not clipped - ``ProlongedTkeIsAboveTheFloor`` * - T21 - Clipped-cell count not summed over ranks - ``ProlongedTkeIsAboveTheFloor`` * - T22 - Infinite ``turb.tke_floor`` accepted - ``ProlongedTkeIsAboveTheFloor`` * - T23 - No boundary fill before the projection - ``ProlongationAndProjectionIsDivergenceFree`` * - T24 - Projection corrects the Dirichlet rows too (d = 1 + mask) - Equivalent with ``gmres_mlmg`` and ``mlmg``: every Dirichlet row is a domain face with a Neumann condition on p′, so the flux there is 0. With ``gmres_fft`` only to the Poisson tolerance: its preconditioner's cell coefficients next to the face change * - T25 - No projection off the Dirichlet rows (d = −mask) - ``ProlongationAndProjectionIsDivergenceFree``, ``ProlongedTkeIsAboveTheFloor``, ``GatheredLevelEqualsDistributed`` * - T26 - p′ not restored after the projection - ``ProlongationAndProjectionIsDivergenceFree`` The one-line mutants of the nested patch's parent reader (``Source/NestParent.cpp``, ``Source/StateIO.cpp`` and the periodic axis in ``Source/Transfer_K.H``; N26 and N28 in ``Source/NestFaces.cpp``), each run against ``NestParent.*`` and ``IO.CheckpointHeader*`` on two ranks with the unit-test flags by ``tools/nest_mutants.py`` (macOS arm64, AppleClang), and N20 by hand against ``rt_nest_patch_hill``. All 28 are killed (N21 to N28 came with ``bc.nest_ratio``). Three earlier candidates were equivalent and were replaced: a z shift of the image box (every box spans the column), ``w`` through the cell-centred stencil (it is cell-centred in x and y) and reading the parent's ghost cells (the 2-cell margin keeps them out of reach). .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - N1 - u interpolated with the cell-centred x axis (wrong stagger) - ``BilinearFieldIsReproducedOnFlatGround``, ``BilinearFieldIsReproducedOnAHill``, ``PeriodicSeamUsesThePeriodicNeighbours`` * - N2 - v interpolated with the cell-centred y axis (wrong stagger) - the same three * - N3 - w interpolated with the nodal x axis (wrong stagger) - the same three * - N4 - One term of the kernel reads the level above (wrong k) - ``BilinearFieldIsReproducedOnFlatGround`` (crash) * - N5 - Offset subtracted from the axis bounds with the wrong sign - ``ValuesDoNotDependOnLayoutOrRanks`` (crash) * - N6 - The patch's position in the parent ignored - ``BilinearFieldIsReproducedOnFlatGround`` (crash) * - N7 - Periodic direction clamped as before (extrapolates past index −1) - ``PeriodicSeamUsesThePeriodicNeighbours`` * - N8 - No horizontal ghost layers - the three of N1 * - N9 - No z ghost rows - the three of N1 * - N10 - z ghost rows below the ground copy the second level (wrong k) - the three of N1 * - N11 - Parent images filled without the periodic images - ``PeriodicSeamUsesThePeriodicNeighbours`` (crash) * - N12 - Margin of one parent cell - ``EachPlacementFaultIsRefusedNamingTheKey``, ``PlacementFollowsTheRatio`` * - N13 - Ratio not checked - ``EachPlacementFaultIsRefusedNamingTheKey``, ``PlacementFollowsTheRatio`` * - N14 - z-levels not compared - ``EachPlacementFaultIsRefusedNamingTheKey`` * - N15 - Alignment tolerance of half a parent cell - ``EachPlacementFaultIsRefusedNamingTheKey`` * - N16 - A format-1 parent accepted - ``OldOrMissingCheckpointAbortsNamingTheKey`` * - N17 - z-levels written in single-precision decimal - ``IO.CheckpointHeaderKeepsTheZLevels`` and the four interpolation tests * - N18 - z-level count not checked on read - ``IO.CheckpointHeaderKeepsTheZLevels`` * - N19 - A missing Header key names the token read, not the caller's key - ``IO.CheckpointHeaderKeepsTheZLevels`` * - N20 (by hand) - No ``zero_ground_flux`` after the interpolation (``Source/App.cpp``) - ``rt_nest_patch_hill`` (ground :math:`|\Omega|` 0.80 m/s) * - N21 - The axes built at ratio 2 whatever ``bc.nest_ratio`` - ``BilinearFieldIsReproducedAtRatio4``, ``BilinearFieldIsReproducedAtRatios8And16``, ``ValuesDoNotDependOnLayoutOrRanksAtRatio4`` * - N22 - The parent images coarsened by 2 whatever ``bc.nest_ratio`` - ``BilinearFieldIsReproducedAtRatio4`` (crash) * - N23 - The placement checked at ratio 2 whatever ``bc.nest_ratio`` - the three of N21, ``PeriodicSeamUsesThePeriodicNeighbours``, ``PlacementFollowsTheRatio``, ``RestartRecordHoldsTheRatio`` * - N24 - Any even ratio up to 16 accepted (6, 10, 12) - ``InvalidRatioAbortsNamingTheKey``, ``PlacementFollowsTheRatio`` * - N25 - Ratios above 16 accepted - ``PlacementFollowsTheRatio`` * - N26 - The ratio left out of the nest faces' restart record (``Source/NestFaces.cpp``) - ``RestartRecordHoldsTheRatio`` * - N27 - ``NestParent`` built for another ratio than the one given - the three of N21, ``PeriodicSeamUsesThePeriodicNeighbours``, ``RestartRecordHoldsTheRatio`` * - N28 - A ratio line in the restart record at ratio 2 too (``Source/NestFaces.cpp``) - ``RestartRecordHoldsTheRatio`` The one-line mutants of the nest faces (``Source/NestFaces.cpp`` and its hooks in ``Source/BoundaryConditions.cpp``, ``Source/BoundaryDamping.cpp`` and ``Source/BoundaryInputs.cpp``; F52 in ``Source/NestParent.cpp``), each run against ``NestFaces.*`` on two ranks with the unit-test flags by ``tools/nest_faces_mutants.py`` (macOS arm64, AppleClang), and F40 by hand against ``rt_nest_faces_hill_np1``. All 53 are killed (F41 to F52 came with the review's changes, F53 and F54 with ``bc.nest_ratio``; there is no F45: the restart record without the parent's step is equivalent, as the content digest covers the ``Header``, which holds the step). F21 and F36 survived the first run; the hooks' comparison in ``DiagonalIsTheSourcesDerivative`` and the pinned record text in ``RestartRecordIsCheckedAgainstTheInputs`` were added for them. One candidate was equivalent and is not in the table: a zone that starts on the normal velocity's face point (its term there is replaced by the Dirichlet row). .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - F1 - The net flux summed without the outward sign - ``NetFluxIsZeroAfterTheCorrection`` * - F2 - The weight without 1 / dx (wrong between x and y faces) - ``NetFluxIsZeroAfterTheCorrection`` * - F3 - The high face's flux read on the low side of its cell - ``NetFluxIsZeroAfterTheCorrection`` * - F4 - The correction added with the wrong sign - ``GhostsAndFacePointsHoldTheParentsValues``, ``NetFluxIsZeroAfterTheCorrection``, ``ZoneRateAndSourceEqualTheClosedForm`` * - F5 - The correction not applied - ``GhostsAndFacePointsHoldTheParentsValues``, ``NetFluxIsZeroAfterTheCorrection``, ``ZoneRateAndSourceEqualTheClosedForm`` * - F6 - The correction applied with an outflow face - ``NothingIsRemovedWithAnOutflowFace`` * - F7 - The correction on the valid points only (a ghost copy of a face point keeps the old value) - ``GhostsAndFacePointsHoldTheParentsValues``, ``ZoneRateAndSourceEqualTheClosedForm`` * - F8 - The source with the wrong sign - ``DiagonalIsTheSourcesDerivative``, ``ZoneRateAndSourceEqualTheClosedForm`` * - F9 - The weight reversed (0 at the face, 1 at the inner end) - ``ZoneRateAndSourceEqualTheClosedForm`` * - F10 - Abs in place of max(0, U_in): the zone acts where the flow leaves - ``ZoneRateAndSourceEqualTheClosedForm`` * - F11 - The inward direction of a high face taken as the low face's - ``ZoneRateAndSourceEqualTheClosedForm`` * - F12 - Cell centres at the distance of the face points (no half cell) - ``ZoneRateAndSourceEqualTheClosedForm`` * - F13 - The rate without 1 / N - ``ZoneRateAndSourceEqualTheClosedForm`` * - F14 - ``bc.nest_relax_factor`` ignored - ``ZoneRateAndSourceEqualTheClosedForm`` * - F15 - The zone one cell short on a high face - ``ZoneRateAndSourceEqualTheClosedForm`` * - F16 - The staggered point's U_in from one face point (no mean along the face) - ``ZoneRateAndSourceEqualTheClosedForm`` * - F17 - W's U_in without the row below - ``ZoneRateAndSourceEqualTheClosedForm`` * - F18 - K relaxed with theta's parent field - ``ZoneRateAndSourceEqualTheClosedForm`` * - F19 - The diagonal twice the rate - ``DiagonalIsTheSourcesDerivative`` * - F20 - The diagonal of w from the cell-centred rate - ``DiagonalIsTheSourcesDerivative``, ``ZoneRateAndSourceEqualTheClosedForm`` * - F21 - The source not added (hook removed) - ``DiagonalIsTheSourcesDerivative`` * - F22 - One ghost layer filled - ``GhostsAndFacePointsHoldTheParentsValues`` * - F23 - The normal velocity's face point not filled - ``GhostsAndFacePointsHoldTheParentsValues`` * - F24 - The homogeneous fill copies the parent - ``GhostsAndFacePointsHoldTheParentsValues`` * - F25 - The row without the parent's value - ``GhostsAndFacePointsHoldTheParentsValues`` * - F26 - The rows of the high faces missing - ``GhostsAndFacePointsHoldTheParentsValues`` * - F27 - The nest fill not called (the profile fill's values stay) - ``GhostsAndFacePointsHoldTheParentsValues`` * - F28 - A nest face without the parent's values not refused - ``GhostsAndFacePointsHoldTheParentsValues`` * - F29 - A linear blend (no smoothstep) - ``BlendedGroundIsTheParentsOnTheFaceAndThePatchsInside`` * - F30 - The blend measured from every lateral face, nest or not - ``BlendedGroundIsTheParentsOnTheFaceAndThePatchsInside`` * - F31 - The blend's two grounds swapped - ``BlendedGroundIsTheParentsOnTheFaceAndThePatchsInside`` * - F32 - ``bc.nest_relax_width`` not bounded by the patch - ``InputFaultsAreRefusedNamingTheKey`` * - F33 - ``terrain.nest_blend_width`` of half the patch accepted - ``InputFaultsAreRefusedNamingTheKey`` * - F34 - A nest face without bc.nest_parent accepted - ``InputFaultsAreRefusedNamingTheKey`` * - F35 - A nest face without the parent's field as the first guess accepted - ``InputFaultsAreRefusedNamingTheKey`` * - F36 - The restart record written as another version - ``RestartRecordIsCheckedAgainstTheInputs`` * - F37 - A restart with other nest settings not refused - ``RestartRecordIsCheckedAgainstTheInputs`` * - F38 - A record of another version read as this one - ``RestartRecordIsCheckedAgainstTheInputs`` * - F39 - The zone's diagonal not added (hook removed) - ``DiagonalIsTheSourcesDerivative`` * - F40 (by hand) - The correction not applied (F5) in a run - ``rt_nest_faces_hill_np1`` (the first pressure correction leaves a divergence of 9.8e-6, and the SIMPLEC pressure correction stops: a net source the boundaries cannot carry) * - F41 - The correction on the face plane only (the normal velocity's ghost layers keep the parent's value) - ``GhostsAndFacePointsHoldTheParentsValues`` * - F42 - The restart record without the parent's content - ``RestartRecordIsCheckedAgainstTheInputs`` * - F43 - The restart record with the nest faces only (not the other faces' types) - ``RestartRecordIsCheckedAgainstTheInputs`` * - F44 - The restart record without the patch's place in the parent - ``RestartRecordIsCheckedAgainstTheInputs`` * - F46 - A lateral no-slip wall beside a nest face accepted - ``InputFaultsAreRefusedNamingTheKey`` * - F47 - A Rayleigh layer on k towards the inflow profile accepted on a patch - ``InputFaultsAreRefusedNamingTheKey`` * - F48 - A sponge towards the inflow profile accepted on a patch - ``InputFaultsAreRefusedNamingTheKey`` * - F49 - No warning for a large net flux - ``SummaryWarnsAboveTheNetFluxThreshold`` * - F50 - The warning whatever the net flux - ``SummaryWarnsAboveTheNetFluxThreshold`` * - F51 - The warning when nothing is removed (an outflow face) - ``SummaryWarnsAboveTheNetFluxThreshold`` * - F52 - The content digest from the ``Header`` alone, not the fields' files (``Source/NestParent.cpp``) - ``RestartRecordIsCheckedAgainstTheInputs`` * - F53 - ``bc.nest_ratio`` not range-checked in the run's checks - ``InputFaultsAreRefusedNamingTheKey`` * - F54 - ``bc.nest_ratio`` without a parent accepted - ``InputFaultsAreRefusedNamingTheKey`` The one-line mutants of the nest inputs (``Source/Nests.cpp``), each run against ``Nests.*`` on two ranks with the unit-test flags by ``tools/nests_mutants.py`` (macOS arm64, AppleClang). All 20 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - NS1 - ``names`` accepted as a nest name - ``ReadErrorsNameTheKey`` * - NS2 - A corner given twice not refused - ``ReadErrorsNameTheKey`` * - NS3 - A margin of 1 outer cell - ``MarginOfTwoOuterCells`` * - NS4 - Nests that touch taken as overlapping - ``NestsMayTouchNotOverlap`` * - NS5 - A corner up to a whole outer cell off the faces accepted - ``PlacementOnTheOuterCellFaces`` * - NS6 - A nest of zero width accepted - ``PlacementOnTheOuterCellFaces`` * - NS7 - The nest at the outer cell size (no refinement) - ``MeshIsTwiceTheOuterCellsInXY``, ``InputsFromTheOuterDeck`` * - NS8 - The nest periodic where the outer domain is, whatever it spans - ``MeshIsTwiceTheOuterCellsInXY`` * - NS9 - The outer grid hierarchy kept - ``MeshIsTwiceTheOuterCellsInXY`` * - NS10 - The outer ``io.restart`` kept - ``InputsFromTheOuterDeck`` * - NS11 - The Rayleigh layer kept on k - ``BoundaryInputsFromTheOuterDeck`` * - NS12 - The outer relaxation zone kept - ``BoundaryInputsFromTheOuterDeck`` * - NS13 - A corner near an outer face kept as given (not moved onto it) - ``MeshIsTwiceTheOuterCellsInXY`` * - NS14 - A nest over the whole outer domain accepted - ``MarginOfTwoOuterCells`` * - NS15 - Nest faces where the nest is periodic - ``BoundaryInputsFromTheOuterDeck`` * - NS16 - The Agnesi hill at the domain centre whatever ``hill_centre`` says (``Source/TerrainSurface.cpp``) - ``AgnesiHillStaysAtTheOuterCentre`` * - NS17 - A nest on the outer high face not given that face exactly - ``MeshIsTwiceTheOuterCellsInXY`` * - NS18 - The outer forcing taken when the outer run kept none - ``OuterForcingReachesNest`` * - NS19 - The outer surface heat flux not taken - ``OuterForcingReachesNest`` * - NS20 - The outer y pressure gradient not kept - ``OuterForcingReachesNest`` Two mutants of the run, by hand against ``rt_nests_one_process``: ``hill_centre`` not set from the parent (``Source/App.cpp``) moves the ``edge`` nest's ground 50.3 m off the outer ground; the nest u compared with the outer cell one step over in x gives 0.561 m/s against the 0.12 m/s bound. Both fail the test. By hand against their deck tests: the nest's ``init.*`` record kept fails ``rt_nests_outer_init_keys``; the STF refusal off fails ``abort_nests_stf``; the nest steady verdict ignored fails ``abort_nests_nest_not_steady``; the checker's STF mirror off fails case ``nests_hill_stf`` of its self-test. The mutants of the two-way nests' restriction and defect source (``Source/NestDefect.cpp``), each run against ``NestDefect.*`` on two ranks with the unit-test flags by ``tools/nest_defect_mutants.py`` (macOS arm64, AppleClang). All 19 are killed (D11 came with the restriction of nests that touch, D12–D19 with the open-face-area weights of the restriction). .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - D1 - Cell values a plain mean (no :math:`J` weight) - ``RestrictionOfCellFieldsAndThePressureLevel`` * - D2 - u and v not divided by the parent face area - ``RestrictionConservesTheFluxesOnAHill``, ``RestrictionWeightsTheOpenFaceAreas`` * - D3 - :math:`\Omega` summed over one nest face row only - ``RestrictionConservesTheFluxesOnAHill``, ``RestrictionWeightsTheOpenFaceAreas``, ``TouchingNestsKeepTheRestrictedOmegaOnBothFootprints`` * - D4 - The pressure level not shifted to the parent's - ``RestrictionOfCellFieldsAndThePressureLevel`` * - D5 - The pressure shift with the wrong sign - ``RestrictionOfCellFieldsAndThePressureLevel`` * - D6 - A margin of one parent cell - ``RegionAndSource`` * - D7 - The margin also across a periodic direction - ``RegionAndSource`` * - D8 - The source over the whole footprint - ``RegionAndSource`` * - D9 - The source added, not subtracted - ``RegionAndSource`` * - D10 - u copied onto the parent without the periodicity - ``RestrictionSetsBothCopiesOfAPeriodicSeamFace`` * - D11 - Each nest restricted in full (u, v, then w) before the next (the earlier order) - ``TouchingNestsKeepTheRestrictedOmegaOnBothFootprints`` * - D12 - u: the nest's full face areas (``ax``) in the flux, in place of ``flux_area`` - ``RestrictionWeightsTheOpenFaceAreas`` * - D13 - u: the outer face's full area as the divisor - ``RestrictionWeightsTheOpenFaceAreas`` * - D14 - v: the nest's full face areas (``ay``) in the flux - ``RestrictionWeightsTheOpenFaceAreas`` * - D15 - v: the outer face's full area as the divisor - ``RestrictionWeightsTheOpenFaceAreas`` * - D16 - :math:`\Omega`: the nest's full face areas (``az``) in the flux - ``RestrictionWeightsTheOpenFaceAreas`` * - D17 - :math:`\Omega`: the outer face's full area as the divisor - ``RestrictionWeightsTheOpenFaceAreas`` * - D18 - u, v: a closed outer face divided by its zero area (no guard) - ``RestrictionWeightsTheOpenFaceAreas`` (crash: the FPE trap on 0 / 0) * - D19 - :math:`\Omega`: a closed outer face divided by its zero area (no guard) - ``RestrictionWeightsTheOpenFaceAreas`` (crash: the FPE trap on 0 / 0) The one-line mutants of the two-way nests' relaxation source (``Source/NestRelax.cpp``, ``relax`` and ``relax_consistent``), each run against ``NestRelax.*`` and ``NestRelaxConsistent.*`` on two ranks with the unit-test flags by ``tools/nest_relax_mutants.py`` (macOS arm64, AppleClang). All 18 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - X1 - The source with the wrong sign - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.DiagonalIsTheDerivativeOfTheSource``, ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.ResidualGainsTheSourceOnTheFootprintRows``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes`` * - X2 - k left out of the source - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.DiagonalIsTheDerivativeOfTheSource``, ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.ResidualGainsTheSourceOnTheFootprintRows``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes``, ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - X3 - A margin of three parent cells - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes``, ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes`` * - X4 - Cells measured from the face like face points - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.DiagonalIsTheDerivativeOfTheSource``, ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.ResidualGainsTheSourceOnTheFootprintRows``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes``, ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes``, ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - X5 - Faces also across a periodic span - ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - X6 - Overlapping footprints: the last one's rate, not the larger - ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes``, ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes`` * - X7 - The rate floored at 0.1 of its full value - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.ChangeOfTheTargetBetweenTwoSets``, ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes``, ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes`` * - X8 - :math:`U` from :math:`|u|` alone - ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes`` * - X9 - :math:`\Delta x` the larger horizontal cell size - ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes`` * - X10 - No diagonal - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.DiagonalIsTheDerivativeOfTheSource`` * - X11 - Only the first footprint's boxes kept by the box skip - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes``, ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes`` * - X12 - Boxes kept by the inner box, not the footprint - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.DiagonalIsTheDerivativeOfTheSource``, ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.ResidualGainsTheSourceOnTheFootprintRows``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes``, ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes``, ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - X13 - The source skips the boxes that touch a footprint - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly``, ``NestRelax.DiagonalIsTheDerivativeOfTheSource``, ``NestRelax.FootprintOnAPeriodicSeam``, ``NestRelax.PeriodicSpanHasNoFaces``, ``NestRelax.ResidualGainsTheSourceOnTheFootprintRows``, ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes`` * - C1 - The added term with the wrong sign - ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - C2 - The added term left out - ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - C3 - The residual not weighted - ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes``, ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - C4 - The residual weighted by w squared - ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes``, ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` * - C5 - The weight from a footprint one cell wider - ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes``, ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` By hand against ``rt_nests_relax``: k left out of the source (X2 in the application) leaves the nest's u error at :math:`f = 16` at 3.26e-2 against 3.27e-2, so the test does not detect it; the unit tests do. By hand against ``rt_nests_relax_consistent``: with the added term left out (C2) the factor-1 run is the ``relax`` run (160 exchanges, outer minus nest 1.000 of ``relax``'s), and the test fails. The one-line mutants of the two-way nests' injection (``Source/NestInject.cpp``, ``Source/Simplec.cpp``, ``Source/Poisson.cpp``), each run against ``NestInject.*`` and ``MaskedPoisson.*`` on two ranks with the unit-test flags by ``tools/nest_inject_mutants.py`` (macOS arm64, AppleClang). All 12 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - J1 - A factor above 1 accepted - ``FactorCheckNamesTheKey`` * - J2 - No blend: every exchange injects fully - ``InjectsTheRestrictedNestOnTheInnerBoxOnAHill`` * - J3 - The blend from :math:`q^*` towards :math:`q` - ``InjectsTheRestrictedNestOnTheInnerBoxOnAHill`` * - J4 - k's rows kept on the inner box - ``InjectedRunReachesSteady``, ``ResidualRowsOnTheHill``, ``ZeroRowsAndDifferencesOnUnevenBoxes`` * - J5 - No hold after the momentum predictor - ``InjectedRunReachesSteady`` * - J6 - No hold at the end of the iteration - ``InjectedRunReachesSteady`` * - J7 - The held faces open in the Poisson operator - ``InjectedRunReachesSteady``, ``PoissonHeldCellsAreData`` * - J8 - The held cells solved as fluid cells - ``PoissonHeldCellsAreData`` * - J9 - The inner box left out of the fluid mask - ``PoissonHeldCellsAreData`` * - J10 - The inner box's faces left out of the open masks - ``InjectedRunReachesSteady``, ``PoissonHeldCellsAreData`` * - J11 - A flux through the held faces - ``InjectedRunReachesSteady``, ``PoissonHeldCellsAreData`` * - J12 - :math:`\phi` shifted by its mean with a mask - ``EnclosedBlockOnABumpSolvesItsSystem``, ``PoissonHeldCellsAreData`` By hand against ``rt_nests_two_way``: ``nest.feedback = none`` in place of ``defect`` (no joint run) fails its log check, and the first two-nest layout (the crest nest ending at x = 900 m, on the lee slope) fails the nest ratio at 3.33. The one-line mutants of the conservative nest faces (``Source/NestFaceFlux.cpp``, and ``NestDefect::add`` in ``Source/NestDefect.cpp``), each run against ``NestFaceFlux.*`` on two ranks with the unit-test flags by ``tools/nest_face_flux_mutants.py`` (macOS arm64, AppleClang). All 8 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - F1 - The ring's sum with the wrong sign - ``LinearThetaUpwind``, ``LinearThetaVanLeerWithTheBlend``, ``SummedNestFluxesOnEveryFaceLocation``, ``SummedNestFluxesWithTheBlend`` * - F2 - The transverse trapezoid's end nodes at full weight - ``SummedNestFluxesOnEveryFaceLocation``, ``SummedNestFluxesWithTheBlend`` * - F3 - A cell-centred flux's normal average shifted by one nest cell - ``SummedNestFluxesOnEveryFaceLocation``, ``SummedNestFluxesWithTheBlend`` * - F4 - The nest's fluxes without the ghost exchange - ``SummedNestFluxesOnEveryFaceLocation`` (a crash) * - F5 - The upwind blend's term dropped - ``LinearThetaVanLeerWithTheBlend``, ``SummedNestFluxesWithTheBlend`` * - F6 - The diffusive flux added, not subtracted - ``SummedNestFluxesOnEveryFaceLocation``, ``SummedNestFluxesWithTheBlend`` * - F7 - The ring's face on the wrong side - ``LinearThetaUpwind``, ``LinearThetaVanLeerWithTheBlend``, ``SummedNestFluxesOnEveryFaceLocation``, ``SummedNestFluxesWithTheBlend`` * - F8 - The correction subtracted from the source (``NestDefect::add``) - ``DefectAddsTheCorrection`` By hand against ``rt_nests_feedback_flux``: ``nest.feedback_flux = outer`` in place of ``nest`` (the defect source alone) fails its log check, and on the nest ``crest`` ending at x = 900 m fails the nest ratio at 3.31 against the bound 1.6. Without the ring's suffix on the joint lines (``Source/JointRun.cpp``) it fails its log check. The one-line mutants of the canopy's drag field (``Source/Canopy.cpp``, ``Source/Canopy_K.H``), each run against ``Canopy.*`` on two ranks with the unit-test flags by ``tools/canopy_mutants.py`` (macOS arm64, AppleClang). All 18 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - C1 - Lower-branch polynomial coefficient :math:`12/6^3` changed to :math:`12/215` - ``LalicMihailovicProfileIntegratesToOne``, ``ThinCellGivesErfPointValue`` * - C2 - Upper-branch tail without the erfc term - ``LalicMihailovicProfileIntegratesToOne``, ``ThinCellGivesErfPointValue`` * - C3 - A cell across :math:`\eta_m` misses the lower branch's top - ``ColumnIntegralIsCdLai``, ``LalicMihailovicProfileIntegratesToOne``, ``ThinCellGivesErfPointValue`` * - C4 - Uniform profile not clipped at the canopy top - ``ColumnIntegralIsCdLai``, ``FollowsLocalGroundOnHill``, ``ThinCellGivesErfPointValue`` * - C5 - Cell value not divided by the cell's height - ``ColumnIntegralIsCdLai``, ``FollowsLocalGroundOnHill``, ``ThinCellGivesErfPointValue`` * - C6 - Heights from sea level, not from the local ground - ``FollowsLocalGroundOnHill`` * - C7 - A patch across the periodic seam not imaged - ``PatchesSameOnEveryLayoutAcrossSeam`` * - C8 - Overlapping patches replace instead of add - ``PatchesSameOnEveryLayoutAcrossSeam`` * - C9 - Ghost columns not imaged - ``PatchesSameOnEveryLayoutAcrossSeam`` * - C10 - Restriction without the fine :math:`J` - ``RestrictionKeepsLayerIntegrals`` * - C11 - Restriction not divided by the coarse :math:`J` - ``RestrictionKeepsLayerIntegrals`` * - C12 - Restart hash of the file name, not its contents - ``RestartRefusesAnotherCanopy`` * - C13 - Restart with another canopy accepted - ``RestartRefusesAnotherCanopy`` * - C14 - Patch height 0 accepted - ``PatchFileChecks`` * - C15 - ``canopy.laimax`` with the uniform profile accepted - ``OptionChecks`` * - C16 - Negative map values accepted - ``PatchFileChecks`` * - C17 - A patch wider than a periodic direction accepted - ``PatchFileChecks`` * - C18 - Cells above half the tallest patch skip the patch loop - ``PatchesSameOnEveryLayoutAcrossSeam`` The one-line mutants of the canopy's drag on the momentum equations (``Source/CanopyDrag.cpp``, ``Source/Residual.cpp``, ``Source/Canopy.cpp``), each run against ``Canopy.*`` and ``CanopyDrag.*`` on two ranks with the unit-test flags by ``tools/canopy_drag_mutants.py`` (macOS arm64, AppleClang). All 12 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - D1 - The sink with the wrong sign - ``SinkHasItsClosedForm``, ``DiagonalIsTheDerivativeOfTheSink`` * - D2 - x and y faces take one cell's :math:`f`, not the mean of two - ``SinkHasItsClosedForm`` * - D3 - z faces take the cell above only - ``SinkHasItsClosedForm`` * - D4 - The ``derivative`` diagonal without the :math:`u_c^2/|U|` term - ``DiagonalIsTheDerivativeOfTheSink`` * - D5 - :math:`|U|` without :math:`w` - ``SinkHasItsClosedForm``, ``DiagonalIsTheDerivativeOfTheSink`` * - D6 - :math:`v` at an x- or z-face not averaged over its four faces - ``SinkHasItsClosedForm`` * - D7 - The ``picard`` diagonal with the derivative's term - ``DiagonalIsTheDerivativeOfTheSink`` * - D8 - The residual without the drag - ``ResidualAndImplicitRowsCarryTheDrag`` * - D9 - ``implicit_rows`` without the drag diagonal - ``ResidualAndImplicitRowsCarryTheDrag``, ``PredictorTakesTheRowsOfTheLinearisationState`` * - D11 - The drag rows added to an off-diagonal coefficient - ``ResidualAndImplicitRowsCarryTheDrag``, ``PredictorTakesTheRowsOfTheLinearisationState`` * - D12 - ``canopy_rows`` takes the derivative whatever the option - ``DiagonalIsTheDerivativeOfTheSink`` * - D10 - A ``canopy.drag_diagonal`` other than the three names accepted - ``Canopy.OptionChecks`` The one-line mutants of the canopy terms of the k–L closure (``Source/CanopyTke.cpp``, ``Source/Closure.cpp``, ``Source/Closure_K.H``, ``Source/Residual.cpp``, ``Source/Canopy.cpp``), each run against ``Canopy.*``, ``CanopyDrag.*`` and ``CanopyTke.*`` on two ranks with the unit-test flags by ``tools/canopy_tke_mutants.py`` (macOS arm64, AppleClang). All 13 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - T1 - Wake production without :math:`\beta_p` - ``SourcesHaveTheirClosedForms`` * - T2 - Wake production with :math:`|U|^2` in place of :math:`|U|^3` - ``SourcesHaveTheirClosedForms`` * - T3 - The sink not on the Patankar diagonal - ``SourcesHaveTheirClosedForms`` * - T4 - The sink added to the exact derivative with the wrong sign - ``SourcesHaveTheirClosedForms``, ``ExactDerivativeMatchesDifferences`` * - T5 - The residual without the wake production - ``ZeroCanopyIsBitIdenticalAndResidualCarriesTheTerms`` * - T6 - The residual without the short-circuit sink - ``ZeroCanopyIsBitIdenticalAndResidualCarriesTheTerms`` * - T7 - The capped length not :math:`\alpha/f` - ``LengthCapActsOnlyInTheCanopy``, ``ExactDerivativeMatchesDifferences``, ``CapSwitchIsFrozen`` * - T8 - The live decisions without the canopy - ``LengthCapActsOnlyInTheCanopy``, ``ExactDerivativeMatchesDifferences``, ``CapSwitchIsFrozen`` * - T9 - The cap's switch not encoded (not frozen) - ``LengthCapActsOnlyInTheCanopy``, ``ExactDerivativeMatchesDifferences``, ``CapSwitchIsFrozen`` * - T10 - The capped decision taken against :math:`\alpha/(2f)` - ``LengthCapActsOnlyInTheCanopy``, ``CapSwitchIsFrozen`` * - T11 - :math:`P_b`'s derivative without :math:`d(c_\mu'/c_\mu)/dk` (the error fixed here) - ``ExactDerivativeMatchesDifferences`` * - T12 - ``canopy.beta_p`` outside [0, 1] accepted - ``Canopy.OptionChecks`` * - T13 - ``canopy.length_alpha`` with ``canopy.tke = off`` accepted - ``Canopy.OptionChecks`` The one-line mutants of the count behind the canopy's inflow-face and damping-layer warnings (``BoundaryConditions::canopy_in_boundary_zones``, ``Source/BoundaryDamping.cpp``), each run against ``CanopyTke.*`` by ``tools/canopy_zone_mutants.py``. All 8 are killed by ``BoundaryZonesCountTheCanopyCells``. .. list-table:: :header-rows: 1 :widths: 6 94 * - Mutant - Change * - Z1 - Every cell counted, not only canopy cells * - Z2 - The inflow face's second column counted in place of its first * - Z3 - The sponge left out * - Z4 - The Rayleigh layer left out * - Z5 - An outflow face counted as an inflow face * - Z6 - The x high face's second-last column counted * - Z7 - The y high face's second-last row counted * - Z8 - The Rayleigh layer counted when it damps only w The one-line mutants of the local step floor (``Source/PseudoTime.cpp``), the canopy in the column first guess (``Source/ColumnGuess.cpp``) and the canopy's column profile (``Source/Canopy.cpp``), each run against ``PseudoTime.StepFloor*``, ``ColumnCanopy.*`` and ``Canopy.ColumnProfile*`` on two and four ranks by ``tools/step_floor_mutants.py`` (macOS arm64, AppleClang). All 16 are killed. F3 and F4 survived the test's first mesh (one box, dx the smaller spacing); the test now uses four boxes with dy < dx. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - F1 - The floor ignored - ``StepFloorFollowsTheFastestCell`` * - F2 - :math:`U_{\max}` from u alone - ``StepFloorFollowsTheFastestCell`` (the motion in y) * - F3 - dx for min(dx, dy) - ``StepFloorFollowsTheFastestCell`` * - F4 - No all-reduce of :math:`U_{\max}` - ``StepFloorFollowsTheFastestCell`` (2 and 4 ranks) * - F5 - A negative floor accepted - ``StepFloorFollowsTheFastestCell`` * - C1 - The column's drag dropped - ``DeepCanopyBalancesAreClosedForms``, ``NoCanopyAndZeroCanopyAgreeBitForBit`` * - C2 - Picard drag (:math:`|W|` lagged) - ``DeepCanopyBalancesAreClosedForms`` (no convergence at the column's steps) * - C3 - No wake production - ``DeepCanopyBalancesAreClosedForms`` * - C4 - No short-circuit sink - ``DeepCanopyBalancesAreClosedForms``, ``KTermsOffKeepsTheDragOnly`` * - C5 - No length cap - ``DeepCanopyBalancesAreClosedForms`` * - C6 - The profile's size unchecked - ``ProfileMustBeOnePerLayer`` * - C7 - A non-uniform canopy accepted - ``ColumnProfileIsTheLayerMeanAndSpread`` * - C8 - The terrain unchecked - ``ColumnProfileIsTheLayerMeanAndSpread`` * - P1 - The layer sum, not the mean - ``ColumnProfileIsTheLayerMeanAndSpread`` * - P2 - The spread absolute, not relative - ``ColumnProfileIsTheLayerMeanAndSpread`` * - P3 - The spread from the maximum alone - ``ColumnProfileIsTheLayerMeanAndSpread`` The one-line mutants of ``simplec.theta = frozen`` (``Source/Simplec.cpp``, ``Source/Residual.cpp``, ``Source/Predictor.cpp``, ``Source/Sequencing.cpp``, ``Source/App.cpp``, ``Source/BoundaryConditions.cpp``) by ``tools/frozen_theta_mutants.py`` (macOS arm64, AppleClang): F1–F7 and F16–F19 against ``FrozenTheta.*`` on two ranks with the unit-test flags, F8–F15 and F20–F27 against the CTests ``rt_frozen_theta``, ``abort_simplec_theta_*``, ``rt_nests_flat_abl_buoyant`` and ``*nest_faces_frozen*`` (the wiring of the application, which the unit tests do not reach). All 27 are killed. .. list-table:: :header-rows: 1 :widths: 6 54 40 * - Mutant - Change - Killed by * - F1 - The buoyancy left in the momentum residual - ``ThetaHeldAndNoBuoyancyInMomentum`` * - F2 - The predictor's point-implicit buoyancy left in the :math:`w` rows - ``ThetaHeldAndNoBuoyancyInMomentum`` * - F3 - θ's residual not zeroed - ``ThetaHeldAndNoBuoyancyInMomentum`` * - F4 - θ swept although frozen - ``ThetaHeldAndNoBuoyancyInMomentum`` * - F5 - ``simplec.theta = frozen`` read as ``solve`` - ``ReaderAndRefusals`` * - F6 - Any value of ``simplec.theta`` accepted - ``ReaderAndRefusals`` * - F7 - The stage accepts residual inputs that do not match the option - ``StageRefusesMismatchedResidualInputs`` * - F8 - The residual inputs keep the momentum buoyancy with frozen θ - ``rt_frozen_theta`` (the stage refuses the run), ``rt_nests_flat_abl_buoyant`` * - F9 - The coarsest level not reset - ``rt_frozen_theta`` (no logged range for level 2) * - F10 - A prolonged coarse level not reset - ``rt_frozen_theta`` (no logged range for level 1) * - F11 - Level 0 not reset - ``rt_frozen_theta`` (no logged range for level 0; θ is the prolonged field) * - F12 - θ from the sounding by absolute height, not by height above the ground - ``rt_frozen_theta`` (θ against the sounding), ``rt_nests_flat_abl_buoyant`` * - F13 - Frozen accepted without grid sequencing - ``abort_simplec_theta_no_sequencing`` * - F14 - Frozen accepted with the Newton stage - ``abort_simplec_theta_newton`` * - F15 - Frozen accepted with a restart - ``abort_simplec_theta_restart`` * - F16 - The ground extension left out of the fill - ``GroundGhostsExtendTheFirstTwoCells`` * - F17 - The ground extension in homogeneous fills too - ``GroundGhostsExtendTheFirstTwoCells`` * - F18 - Only the first ghost layer extended - ``GroundGhostsExtendTheFirstTwoCells`` * - F19 - The extension's slope halved - ``GroundGhostsExtendTheFirstTwoCells`` * - F20 - θ frozen at the inflow profile's θ, not the stratified column's - ``rt_nests_flat_abl_buoyant`` (outer domain against the column) * - F21 - The turbulence plotfile's ``R_theta`` not zeroed - ``rt_frozen_theta`` * - F22 - The frozen θ read at the floored height (``init.z_agl_min``) - ``rt_frozen_theta`` (the file-profile run) * - F23 - The levels do not extend θ below the ground - ``rt_frozen_theta`` (first-cell Rt of the file-profile run) * - F24 - Frozen refused in a patch of a parent run (``init.first_guess = nest``) - ``rt_nest_faces_frozen``, ``rt_nest_faces_frozen_building``, ``rt_nest_faces_frozen_inflow``, ``abort_nest_faces_frozen_building_theta`` * - F25 - ``canopy.heat_frozen = blend`` accepted in a frozen patch - ``abort_nest_faces_frozen_canopy_blend`` * - F26 - A frozen patch's θ reset to 300 K after the interpolation - ``rt_nest_faces_frozen`` (θ against the parent's, level range), ``rt_nest_faces_frozen_building_theta``, ``rt_nest_faces_frozen_inflow_theta`` * - F27 - Frozen accepted with the unsteady stage in a patch - ``abort_nest_faces_frozen_unsteady`` The one-line mutants of the physical time term (``Source/TimeTerm.cpp``, ``Source/Residual.cpp``), each run against ``TimeTerm.*`` on two ranks with the unit-test flags by ``tools/time_term_mutants.py`` (macOS arm64, AppleClang). All 9 are killed. The order of the term against the boundary and building rows is checked for the wall-k rows (DT8) and the ground and top :math:`w` faces only; the test case has no open faces and no buildings. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - DT1 - The time term with the wrong sign - ``ResidualGainsTheClosedFormOnItsOwnRows``, ``DiagonalIsTheDerivativeOfTheTimeTerm`` * - DT2 - A factor 2 on :math:`1/\Delta t` in the residual - ``ResidualGainsTheClosedFormOnItsOwnRows``, ``DiagonalIsTheDerivativeOfTheTimeTerm`` * - DT3 - A factor 2 on :math:`1/\Delta t` on the diagonal - ``DiagonalIsTheDerivativeOfTheTimeTerm`` * - DT4 - :math:`q^n` taken from the current iterate - ``ResidualGainsTheClosedFormOnItsOwnRows``, ``DiagonalIsTheDerivativeOfTheTimeTerm`` * - DT5 - ``store()`` does not copy :math:`q` - ``NoChangeAtTheStoredState`` * - DT6 - The residual without the time term - ``ResidualGainsTheClosedFormOnItsOwnRows``, ``DiagonalIsTheDerivativeOfTheTimeTerm`` * - DT7 - ``implicit_rows`` without :math:`1/\Delta t` - ``DiagonalIsTheDerivativeOfTheTimeTerm`` * - DT8 - The time term added after the ``dirichlet`` wall-k rows - ``ResidualGainsTheClosedFormOnItsOwnRows`` * - DT9 - A denormal ``unsteady.dt`` (infinite :math:`1/\Delta t`) accepted - ``OptionsNameTheInput`` The one-line mutants of the time driver (``Source/TimeDriver.cpp``, ``Source/TimeTerm.cpp`` and the CFL ramp in ``Source/Driver.cpp``), each run against ``TimeDriver.*`` on two ranks with the unit-test flags by ``tools/time_driver_mutants.py`` (macOS arm64, AppleClang). All 16 are killed. TD7 and TD11 survived the first set of tests: every step there ended at the floor ``steady.residual_tol``, and on flat ground the ghost cells do not enter :math:`\Delta t`. The tests ``InnerStopIsRelativeToTheStepStart`` and ``StepFromTargetCflFillsTheGhostsFirst`` (a periodic bump) were added for them. That the application passes the time term to the stage (``res_in.time`` in ``Source/Sequencing.cpp``) is checked by ``rt_unsteady_hill2d``: without it every step stops at ``unsteady.max_inner``. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - TD1 - :math:`q^n` stored at the first step only - ``InnerStopIsRelativeToTheStepStart``, ``SteadyProblemReachedAndHeld``, ``StokesFirstProblemFirstOrder`` * - TD2 - The time term keeps the first step's :math:`\Delta t` - ``LastStepEndsAtStopTime``, ``StepFromTargetCfl`` * - TD3 - The last step not shortened - ``LastStepEndsAtStopTime``, ``TimeIsStepCountTimesDtAndNoSliver`` * - TD4 - A tolerance of 1e-6 on the last step (a sliver step is left) - ``TimeIsStepCountTimesDtAndNoSliver`` * - TD5 - The step from ``unsteady.cfl`` without the CFL - ``StepFromTargetCfl`` * - TD6 - The inner stop without the floor at ``steady.residual_tol`` - ``SteadyProblemReachedAndHeld`` * - TD7 - The inner stop's reference taken at every iteration - ``InnerStopIsRelativeToTheStepStart`` * - TD8 - One inner iteration more than ``unsteady.max_inner`` - ``MaxInnerIsReported`` * - TD9 - ``unsteady.inner_drop_orders`` above 15 accepted - ``OptionsNameTheInput`` * - TD10 - ``unsteady.dt`` with ``unsteady.cfl`` > 0 accepted - ``OptionsNameTheInput`` * - TD11 - The ghost cells not filled before :math:`\Delta t` - ``StepFromTargetCflFillsTheGhostsFirst`` * - TD12 - ``set_dt`` does not change :math:`1/\Delta t` - ``LastStepEndsAtStopTime``, ``StepFromTargetCfl`` * - TD13 - The time a sum of rounded steps for a fixed step - ``TimeIsStepCountTimesDtAndNoSliver`` * - TD14 - A target CFL over a field at rest accepted - ``StepDtChecks`` * - TD15 - A step that is not finite accepted - ``StepDtChecks`` * - TD16 - The CFL ramp of an unsteady run stops at a steady verdict - ``CflRampsOnWhenTheVerdictIsSteady`` The one-line mutants of the unsteady outputs and the restart (``Source/UnsteadyOutput.cpp`` and ``Source/TimeDriver.cpp``), each run against ``UnsteadyOutput.*`` and ``TimeDriver.Resume*`` on two ranks with the unit-test flags by ``tools/unsteady_output_mutants.py`` (macOS arm64, AppleClang). All 15 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - UO1 - The weight :math:`t^{n+1} - t^n` (the averaging start ignored) - ``AveragesAreTheWeightedSeries``, ``NothingAveragedBeforeTheStart`` * - UO2 - West's :math:`w/W` with :math:`W` before the add - ``AveragesAreTheWeightedSeries`` * - UO3 - :math:`M_2` from the old mean only - ``AveragesAreTheWeightedSeries`` * - UO4 - A tie takes the higher cell - ``ProbesTakeTheNearestCell`` * - UO5 - :math:`h` measured from :math:`z = 0`, not from the ground - ``ProbesTakeTheNearestCell`` * - UO6 - A point on the high face not given the last cell - ``ProbesTakeTheNearestCell`` * - UO7 - A restart drops the probe row at the checkpoint's time - ``ProbeFileOnRestart`` * - UO8 - A resumed fixed step summed from the checkpoint's time (the record's anchor dropped) - ``ResumeContinuesTheTime`` * - UO9 - Another step after a restart keeps the checkpoint's anchor - ``ResumeContinuesTheTime`` * - UO10 - A resumed run numbers its steps from 1 - ``ResumeContinuesTheTime`` * - UO11 - A clipped last step keeps the anchor (the next step at :math:`(n_0 + 1)\,\Delta t`) - ``ResumeContinuesTheTime`` * - UO12 - Every last step moves the anchor (a chain of restarts at full steps drifts by round-off) - ``ResumeContinuesTheTime`` * - UO13 - The record's anchor time not written - ``CheckpointRoundTrip`` * - UO14 - A kept probe file reported as new (the checkpoint's row written twice) - ``ProbeFileOnRestart`` * - UO15 - A restart without a probe file reported as kept (no first row) - ``ProbeFileOnRestart`` The one-line mutants of the immersed ground (``Source/BuildingForcing.H``, ``Source/BuildingForcing.cpp``, ``Source/ImmersedStrain.cpp``, ``Source/Residual.cpp``, ``Source/ImmersedTerrain.cpp``, ``Source/Inputs.cpp``, ``Source/Sequencing.cpp``, ``Source/Heights_K.H``, ``Source/LogShear.cpp``, ``Source/BoundaryDamping.cpp``, ``Source/Canopy.cpp`` and ``Source/CanopyTke.cpp``), each run against ``ImmersedTerrain.*``, ``LogShear.*`` and ``Inputs.ImmersedTerrain*`` on one rank (IT22 to IT27 on two ranks, see below), with a rebuild from the restored sources between two mutants (macOS arm64, AppleClang). All are killed. IT9 (the check of ``mesh.is_periodic`` dropped) is retired: the check was removed when inflow and outflow faces were allowed, and ``Inputs.ImmersedTerrainChecksNameTheInput`` now requires that such a deck is accepted. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - IT1 - The floor of 10 :math:`z_0` put back in the exact wall law - ``ExactLawReturnsTheLogProfilesUstar``; CTest ``rt_immersed_column_f09`` * - IT2 - The spacing :math:`s` set to 1 - ``CentroidSpacingAcrossTheCutCellsTopFace`` * - IT3 - :math:`s` left out of the viscous fluxes - ``CentroidSpacingAcrossTheCutCellsTopFace`` * - IT4 - The diagonal not raised with the couplings - ``CentroidSpacingAcrossTheCutCellsTopFace`` * - IT5 - The strain ratio :math:`R` set to 1 - ``StrainCorrectionFollowsTheFlatGround`` * - IT6 - The body forces on the whole face - ``BodyForcesActOnTheOpenPart``; CTest ``rt_immersed_column_f07`` * - IT7 - The restart hash without ``terrain.flat_height`` - ``RestartRecordRefusesAChangedGround`` * - IT8 - The refusal of ``solver.poisson_backend = mlmg`` dropped - ``RefusesWhatItDoesNotSupport`` * - IT10 - A restart with another ground accepted - CTest ``abort_immersed_restart_changed`` * - IT11 - A body-fitted restart from an immersed checkpoint accepted - CTest ``abort_immersed_restart_body_fitted`` * - IT12 - The ground's record not written to the checkpoint - CTest ``immersed_ground_restart`` * - IT13 - A ground inside the first layer accepted - CTest ``abort_immersed_first_layer`` * - IT14 - ``bc.surface_zref`` not reported as given - CTest ``abort_immersed_surface_zref`` * - IT15 - The refusal of ``buildings.type`` dropped - CTest ``abort_immersed_buildings`` * - IT16 - The solid inflow faces not set to 0 (``set_solid_faces`` not called) - ``InflowIsZeroOnSolidFaces``; CTests ``rt_immersed_open_faces`` and the four ``rt_immersed_open_faces_*`` * - IT17 - The cut layer's height taken at the layer's centre (the centroid branch never taken) - ``HeightInTheCutLayerIsItsOpenCentroid``; CTest ``rt_immersed_askervein_coarse`` * - IT18 - The wall law's gradient in the cut cell not applied (``ImmersedStrain::apply``) - ``StrainCorrectionFollowsTheFlatGround`` * - IT19 - The wall law's gradient in the cut cell not applied (``LogShear::apply``) - ``LogShear.ImmersedGroundIsExactFromTheCutCellUp`` * - IT20 - The absolute Rayleigh height measured from the mesh's lower face (``zorg = 0`` in ``damping_coef``) - ``AbsoluteRayleighHeightIsFromTheTerrainZero`` * - IT21 - The refusal of ``bc.outflow_transport = from_velocity`` dropped - ``RefusesWhatItDoesNotSupport`` * - IT22 - The cut cell's wall law reading the map in the box's first row or first column (``zf(i, 0)``, ``zf(0, j)`` in ``roof_rates``) - ``RoughnessMapEntersTheCutCellByColumn``; CTest ``rt_immersed_roughness_step`` (wall-cell :math:`k` 64 %) * - IT23 - The cut cell's strain reading the map in the box's first row or column (``ImmersedStrain.cpp``) - ``RoughnessMapEntersTheCutCellByColumn`` * - IT24 - The strain of the cell above the cut cell reading the map in the box's first row or column (``ImmersedStrain.cpp``) - ``RoughnessMapEntersTheCutCellByColumn`` * - IT25 - ``LogShear`` handing the uniform :math:`z_0` to the cut cell's strain in a run with a map - ``RoughnessMapEntersTheCutCellByColumn`` * - IT26 - The canopy's heights measured from the mesh's lower face (the ground's component 0 in ``fill_map_drag`` and ``fill_patch_drag``, ``Source/Canopy.cpp``) - ``Canopy.StandsOnTheImmersedGround``; CTest ``rt_immersed_canopy_homogeneous`` (drag integral over the fluid cells 2.5 % low, :math:`k` 19 %) * - IT27 - The rough-ground warning counting a column by its first cell (``count_rough``, ``Source/CanopyTke.cpp``) - ``Canopy.StandsOnTheImmersedGround`` IT1 to IT9 were run with a scripted pass over the sources (each change, a rebuild, the named tests, the file restored and touched), and IT10 to IT15 the same way against the CTests; the scripts are not in the repository. IT22 to IT25 were run on two ranks against ``ImmersedTerrain.RoughnessMap*``, and IT22 also against the CTest. IT26 was run on two ranks against ``Canopy.*`` and against the CTest (in ``fill_patch_drag`` alone it fails the patch comparison), IT27 on two ranks against the unit test. The one-line mutants of ``turb.shear_stencil = log_law`` (``Source/LogShear.cpp``, ``Source/Sequencing.cpp``), each run against ``LogShear.*`` on one rank, LS1 and LS7 also against ``rt_log_shear_column_f0`` and ``rt_log_shear_column_f07``, with a rebuild from the restored sources at the end (macOS arm64, AppleClang). All 9 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - LS1 - The central difference :math:`d_{k+1} - d_{k-1}` in the place of the log length - ``LogProfileGivesTheLogLawGradient``, ``ImmersedGroundIsExactFromTheCutCellUp``, ``RoughnessMapEntersByColumn``; CTest ``rt_log_shear_column_f0``, ``rt_log_shear_column_f07`` * - LS2 - :math:`z_0` not added to the distance - the same three unit tests * - LS3 - Immersed ground: the wall cell not left out - ``ImmersedGroundIsExactFromTheCutCellUp`` * - LS4 - Immersed ground: the solid cells not left out - ``ImmersedGroundIsExactFromTheCutCellUp`` * - LS5 - The gradient of :math:`v` taken from :math:`u` - the same three unit tests * - LS6 - The roughness map read as a uniform :math:`z_0` - ``RoughnessMapEntersByColumn`` * - LS7 - The option read but the correction not given to the closure - CTest ``rt_log_shear_column_f0``, ``rt_log_shear_column_f07`` (the unit tests do not run the application) * - LS8 - :math:`d_{k-1}` in the place of :math:`d_k` in the log length - the same three unit tests * - LS9 - The cell under the top cell left out - ``LogProfileGivesTheLogLawGradient``, ``ImmersedGroundIsExactFromTheCutCellUp`` LS1 to LS9 were run the same way; the scripts are not in the repository. The one-line mutants of the sloping immersed ground (``Source/BuildingsSurface.cpp``, ``Source/Heights_K.H``, the slope's wall-law file, since removed, and ``Source/ImmersedTerrain.cpp``), each run against ``ImmersedSurface.*`` on one rank the same way. All 12 were killed. IS6 to IS9 and IS12 changed the wall law along the ground's normal, which has been removed with its tests (:ref:`immersed-slope-forms`); they are no longer listed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - IS1 - The cell's moments from the footprint's centre height alone (a flat tile per cell) - ``TiltedPlaneMatchesTheClosedForm`` * - IS2 - The side-wall bits kept on a slope - ``TiltedPlaneMatchesTheClosedForm``, ``FlatSurfaceGivesTheFlatGroundsFields`` * - IS3 - :math:`d_2` from the reference cell's centre in place of its fluid's mean height - ``TiltedPlaneMatchesTheClosedForm``, ``FlatSurfaceGivesTheFlatGroundsFields`` * - IS4 - The x face's blocked part from the centre depth in place of the edge's mean - ``TiltedPlaneMatchesTheClosedForm`` * - IS5 - The helper's ground read as 0 (the mesh's lower face) - ``HeightAboveTheGroundOnAnAgnesiHill``, ``EveryConsumerReadsTheHelper`` * - IS10 - The restart hash without the line ``slope vertical`` (kept so that existing checkpoints keep their hash) - ``HashFollowsTheGroundsInputs`` (the default flat ground's hash is pinned) * - IS11 - The footprint's centre height from two opposite corners only - ``MomentsMatchAQuadrature`` (the twisted footprint) The one-line mutants of the wall value of :math:`k` beside buildings (``buildings.wall_k_bound``, ``buildings.wall_k_speed``: ``Source/BuildingTke.cpp``, ``Source/BuildingForcing.H``, ``Source/BuildingForcing.cpp`` and ``Source/Buildings.cpp``), each run against ``BuildingTke.*`` and ``BuildingLaw.*`` on two ranks with the unit-test flags by ``tools/wall_k_mutants.py`` (macOS arm64, AppleClang). All 15 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - K1 - The bound dropped: the law's value alone - ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K2 - A wall at low x reads the :math:`k` of the cell at lower x, not the one out along its normal - ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K3 - A roof takes the share of the walls along y - ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K4 - A fixed face: half of the open face's square in place of a third - ``OpenFaceMeanAndCellsBelowTheFloor``, ``CellMeanSpeedInACornerCellIsAThirdOfTheOpenFaces`` * - K5 - The rows of :math:`k` read the law's :math:`u_*^2` with ``cell_mean`` - ``CellMeanSpeedInACornerCellIsAThirdOfTheOpenFaces`` * - K6 - No line in the restart hash for ``buildings.wall_k_bound = impinging`` - ``OptionDefaultsAndRefusals`` * - K7 - ``cell_mean`` accepted with ``buildings.wall_speed = all_faces`` - ``OptionDefaultsAndRefusals`` * - K8 - The side at high y takes the open face's speed with ``cell_mean`` - ``CellMeanSpeedInACornerCellIsAThirdOfTheOpenFaces`` * - K9 - A flow that leaves the wall counts as one towards it - ``OpenFaceMeanAndCellsBelowTheFloor``, ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K10 - The share is of the speed, not of the kinetic energy - ``OpenFaceMeanAndCellsBelowTheFloor``, ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K11 - A side at high y takes towards as the positive y of a side at low y - ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K12 - The roof's share reads the wall cell, not the cell above - ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K13 - The shares are not filled - ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K14 - The share of a side at low x reads the wall cell's own wind - ``ImpingingBoundTakesTheKTheFlowCarriesOntoTheWall`` * - K15 - No line in the restart hash for ``wall_k_speed = cell_mean`` - ``OptionDefaultsAndRefusals`` The one-line mutants of the force on the buildings and the laminar closure (``Source/BuildingLoads.cpp``, ``Source/Residual.cpp`` and ``Source/Closure.cpp``), each run against ``BuildingLoads.*`` and ``Closure.Laminar*`` on two ranks with the unit-test flags by ``tools/building_loads_mutants.py`` (macOS arm64, AppleClang). All 9 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - BL1 - Faces shared by two boxes counted twice (``sum`` for ``sum_unique``) - ``FaceVolumeIsTheMeanOfItsTwoCells``, ``PressureGradientTelescopesThroughABlock``, ``ShearOverASolidLayerGivesThePlateDrag`` * - BL2 - The buildings' fixed rows kept in the residual of the force - ``PressureGradientTelescopesThroughABlock``, ``ShearOverASolidLayerGivesThePlateDrag`` * - BL3 - The faces on a non-periodic domain face counted - ``FaceVolumeIsTheMeanOfItsTwoCells``, ``PressureGradientTelescopesThroughABlock`` * - BL4 - The face volume from half the mean :math:`J` - ``FaceVolumeIsTheMeanOfItsTwoCells``, ``PressureGradientTelescopesThroughABlock``, ``ShearOverASolidLayerGivesThePlateDrag`` * - BL5 - ``turb.closure = none`` runs the k-L closure - ``LaminarClosureGivesTheMolecularDiffusivities`` * - BL6 - ``turb.nu_molecular = 0`` accepted with ``turb.closure = none`` - ``LaminarClosureGivesTheMolecularDiffusivities`` * - BL7 - k-L keys accepted with ``turb.closure = none`` - ``LaminarClosureGivesTheMolecularDiffusivities`` * - BL8 - :math:`k` diffuses with ``alpha_molecular`` in place of ``nu_molecular`` - ``LaminarClosureGivesTheMolecularDiffusivities`` * - BL9 - The face volume from one cell's :math:`J` (:math:`J_{i} + J_{i}` for :math:`J_{i-1} + J_{i}`) - ``FaceVolumeIsTheMeanOfItsTwoCells`` The one-line mutants of the force file in unsteady runs and restarts (``Source/App.cpp``, ``Source/BuildingLoads.cpp``), each run against the CTests ``force_file*`` (the cube with the wall law, four steps of 0.5 s on two ranks) by ``tools/force_file_mutants.py`` (macOS arm64, AppleClang). All 4 are killed. .. list-table:: :header-rows: 1 :widths: 6 50 44 * - Mutant - Change - Failing tests * - FF1 - The force evaluation changes the state (:math:`u + 10^{-12}`) - ``force_file_cube_bit_identical``, ``force_file_cube_restart_no_file_rows`` * - FF2 - A restart drops the force row at the checkpoint's time - ``force_file_cube_restart_rows`` * - FF3 - A restart that finds no force file reported as kept (no first row) - ``force_file_cube_restart_no_file_rows`` * - FF4 - A restart's force file of another header accepted - ``abort_force_file_restart_header`` The one-line mutants of the Newton stage (``Source/NewtonStage.cpp`` and the switch rules in ``Source/Driver.cpp``), each run against ``Driver.*`` and ``NewtonStage.*`` on two ranks with the unit-test flags by ``tools/newton_stage_mutants.py`` (macOS arm64, AppleClang). 13 of 15 are killed. N14 and N15 survive: they matter only where the SIMPLEC preconditioner loses GMRES at a large CFL (the full-size 2-D hill), which no unit test reaches in seconds; a Newton study on Askervein (not yet run) would measure them. .. list-table:: :header-rows: 1 :widths: 6 44 50 * - Mutant - Change - Failing tests * - N1 - The fallback waits for the hysteresis window - ``Driver.NewtonSwitchOnceAndFallback`` * - N2 - The forward switch ignores the monitors - ``Driver.NewtonSwitchOnceAndFallback`` * - N3 - The forward switch ignores ``accepts_switch`` - ``Driver.NewtonSwitchOnceAndFallback`` * - N4 - ``leave`` not called on a switch - ``Driver.NewtonSwitchOnceAndFallback``, ``HandsBackForTheFinalPassAfterTheSwap`` * - N5 - The monitor test against the window's first record, off by one - ``Driver.NewtonSwitchOnceAndFallback`` * - N6 - The fallback after one failure whatever the key - ``FallsBackAfterFailedSteps``, ``RestartInsideTheStage`` * - N7 - A failed step does not count - ``FallsBackAfterFailedSteps`` * - N8 - Converged before any accepted step - ``FallsBackAfterFailedSteps`` * - N9 - No hand-back for the final pass - ``HandsBackForTheFinalPassAfterTheSwap`` * - N10 - The continuation's start CFL not reset on entry - every ``NewtonStage`` test * - N11 - The continuation state not restored on restart - ``RestartInsideTheStage`` * - N12 - No limit on failed visits - ``FallsBackAfterFailedSteps`` * - N13 - No idle hand-back - ``HandsBackWhenConvergedWithoutAVerdict`` * - N14 - The Newton cap not used (the SIMPLEC cap, plain Newton after one step) - survives (above) * - N15 - The preconditioner of an infinite :math:`\Delta\tau` at the SIMPLEC cap - survives (above) The one-line mutants of the smoothness options (``Source/Smoothness.cpp`` and the floor freeze and stratification gate in ``Source/Closure.cpp``), each run against ``Smoothness.*`` and ``Closure.*`` on two ranks with the unit-test flags by ``tools/smoothness_mutants.py`` (macOS arm64, AppleClang). 12 of 13 are killed. S5 survives: it removes the gate from the decisions that ``freeze_switches`` and ``changed_switches`` take, and the floor scope's held bit does not depend on :math:`N^2` (``evaluate`` gates :math:`N^2` itself; S4 and S13 cover it there). .. list-table:: :header-rows: 1 :widths: 6 44 50 * - Mutant - Change - Failing tests * - S1 - The floor scope holds every decision - ``FloorScopeHoldsOnlyTheFloor``, ``NewtonCycleReturnsTheSimplecSolution`` * - S2 - ``changed_switches`` compares every bit - ``FloorScopeHoldsOnlyTheFloor``, ``NewtonCycleReturnsTheSimplecSolution`` * - S3 - The floor scope decides from the live state (frozen bits ignored) - ``FloorScopeHoldsOnlyTheFloor``, ``ModuleInputsAbortsAndCheckpoint`` * - S4 - The gate with :math:`S^2` not squared - ``RiGateClosedFormAndLimits`` * - S5 - The gate not applied in ``Closure::stratification`` - survives (above) * - S6 - ``turb.ri_gate`` not read - ``Closure.InputsAreReadAndChecked`` * - S7 - No limiter swap - ``ModuleInputsAbortsAndCheckpoint``, ``NewtonCycleReturnsTheSimplecSolution`` * - S8 - ``leave`` does not thaw - ``ModuleInputsAbortsAndCheckpoint``, ``NewtonCycleReturnsTheSimplecSolution`` * - S9 - ``enter`` freezes every decision - ``ModuleInputsAbortsAndCheckpoint``, ``NewtonCycleReturnsTheSimplecSolution`` * - S10 - The checkpoint's scope ignored on read - ``ModuleInputsAbortsAndCheckpoint`` * - S11 - A held cell decided at its own :math:`k`, not the floor (negative :math:`\nu_t`) - ``FloorScopeHoldsOnlyTheFloor``, ``ModuleInputsAbortsAndCheckpoint`` * - S12 - ``evaluate`` holds every decision under the floor scope - ``FloorScopeHoldsOnlyTheFloor`` (crash: NaN at :math:`k \le 0`) * - S13 - :math:`P_b` from the gated :math:`N^2` - ``RiGateClosedFormAndLimits`` The one-line mutants of the continuation (``Source/Continuation.cpp``, the SER law in ``Source/PseudoTime.cpp`` and the GMRES limit in ``Source/Newton.cpp``), each run against ``Continuation.*``, ``Newton.*`` and ``Driver.*`` on two ranks with the unit-test flags by ``tools/continuation_mutants.py`` (run on macOS arm64 with AppleClang). #36 reported 40 mutants killed but kept no list; these 40 are a new set. The first run left C20, C25 and C36 alive: C25 because ``LineSearchRejectsOvershoot`` no longer pins the trajectory, and C20 and C36 because no test covered them. ``LineSearchRejectsOvershoot`` now checks the :math:`k` floor, and ``RestoreCapsTheCflAndTheFloorIsChecked`` covers the other two. All 40 are killed with GCC; with Clang and AppleClang 39 are, and C2 cannot be told apart from the original. .. list-table:: :header-rows: 1 :widths: 6 44 50 * - Mutant - Change - Failing tests * - C1 - Armijo without the sufficient decrease (any decrease accepted) - ``ArmijoOnKnownQuadratic`` * - C2 - Armijo compares a NaN trial (no isfinite guard) - ``ArmijoOnKnownQuadratic`` with GCC (verified with GCC 16 on arm64, one process), whose compare with NaN raises the invalid flag the test checks (``fcmpe`` on aarch64, ``comisd`` on x86-64). Survives with Clang and AppleClang, which emit a quiet compare; the script reports it as expected there * - C3 - Backtracking factor fixed at 1/2 - ``ArmijoOnKnownQuadratic`` * - C4 - No lower bound on lambda - ``ArmijoOnKnownQuadratic``, ``GrowthBoundAtFiniteDtau``, ``LineSearchRejectsOvershoot`` * - C5 - Backtracks not counted - ``ArmijoOnKnownQuadratic``, ``LineSearchRejectsOvershoot`` * - C6 - Full-step residual not kept (the growth bound never passes) - ``ArmijoOnKnownQuadratic`` * - C7 - Growth bound strict at the bound - ``ArmijoOnKnownQuadratic`` * - C8 - Growth-bound step not re-evaluated (last trial kept) - ``ArmijoOnKnownQuadratic``, ``GrowthBoundAtFiniteDtau`` * - C9 - Growth-bound flag not recorded - ``ArmijoOnKnownQuadratic``, ``GrowthBoundAtFiniteDtau`` * - C10 - SER restarts from the stored CFL after infinite dtau - ``DtauRampFollowsSer`` * - C11 - Never switches to infinite dtau - ``DtauRampFollowsSer``, ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount``, ``LineSearchRejectsOvershoot``, ``RestartIsBitIdentical`` * - C12 - Last residual not stored - ``DtauRampFollowsSer``, ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount``, ``ReferenceResidualFromCaller``, ``RestartIsBitIdentical`` * - C13 - Accepted steps not counted - ``DtauRampFollowsSer``, ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount``, ``ReferenceResidualFromCaller``, ``RestartIsBitIdentical`` * - C14 - No CFL cut after a failed attempt - ``DtauRampFollowsSer``, ``LineSearchRejectsOvershoot``, ``SkippedStepCutsCflAndKeepsState`` * - C15 - No floor on the cut CFL - ``DtauRampFollowsSer`` * - C16 - A failed attempt keeps infinite dtau - ``DtauRampFollowsSer``, ``LineSearchRejectsOvershoot`` * - C17 - Growth bound also at infinite dtau - ``DtauRampFollowsSer`` * - C18 - Checkpoint drops the infinite flag - ``RestartIsBitIdentical`` * - C19 - Reader ignores r_last - ``RestartIsBitIdentical`` * - C20 - Restore keeps a CFL above a lowered ``steady.cfl_max`` - ``RestoreCapsTheCflAndTheFloorIsChecked`` * - C21 - ``set_reference_residual`` ignores its argument - ``ReferenceResidualFromCaller`` * - C22 - ``set_reference_residual`` accepts 0 - ``ReferenceResidualFromCaller`` * - C23 - No layout check in step - ``RestartIsBitIdentical`` (crash) * - C24 - :math:`|R_0|` never taken from the first step - ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount``, ``ReferenceResidualFromCaller``, ``SkippedStepCutsCflAndKeepsState`` * - C25 - Trial k not clipped at the floor - ``LineSearchRejectsOvershoot`` * - C26 - Accepted step not copied back to q - ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount``, ``LineSearchRejectsOvershoot`` * - C27 - Finite dtau even when infinite - ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount`` * - C28 - One retry fewer - ``LineSearchRejectsOvershoot``, ``SkippedStepCutsCflAndKeepsState`` * - C29 - ``run()`` never stops at the tolerance inside the loop - ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount``, ``ReferenceResidualFromCaller`` * - C30 - ``steady.newton_armijo_c`` accepted up to 1 - ``InputReadersAndRangeChecks`` * - C31 - ``steady.newton_max_retries`` = 0 accepted - ``InputReadersAndRangeChecks`` * - C32 - ``steady.newton_ptc_growth`` below 1 accepted - ``InputReadersAndRangeChecks`` * - C33 - ``steady.newton_ptc_growth`` not read - ``InputReadersAndRangeChecks`` * - C34 - ``steady.newton_dtau_inf_at_cap`` not read - ``InputReadersAndRangeChecks`` * - C35 - A repeated key accepted - ``InputReadersAndRangeChecks`` * - C36 - ``turb.tke_floor`` not checked - ``RestoreCapsTheCflAndTheFloorIsChecked`` * - C37 - SER without the growth limit - ``DtauRampFollowsSer``, ``HillSameOnAnyRankCount``, ``Driver.ReleasedHoldRampsFromTheFirstIteration``, ``Driver.SerRampFollowsTheLawAndItsCaps`` * - C38 - SER exponent sign flipped - ``DtauRampFollowsSer``, ``GrowthBoundAtFiniteDtau``, ``HillSameOnAnyRankCount``, ``ReferenceResidualFromCaller``, ``RestartIsBitIdentical``, ``Driver.ReleasedHoldRampsFromTheFirstIteration``, ``Driver.SerRampFollowsTheLawAndItsCaps`` * - C39 - GMRES iteration limit not applied - ``GmresIterationLimit`` * - C40 - ``steady.newton_gmres_max_iters`` = 0 accepted - ``InputReadersAndRangeChecks`` The tests run with the GPU CI flags (see :doc:`running`). Each test runs in a directory under ``/Tests/run/``: its own by default; the tests of a chain (a run and the checks of its output) share one. The tests whose check reads plotfiles or arrays with numpy (``rt_immersed_open_faces`` and ``rt_immersed_open_faces_*``, ``rt_immersed_roughness_step``, ``rt_immersed_canopy_*``, ``rt_immersed_askervein_coarse``, ``rt_nests_two_way``, ``rt_nests_relax``, ``rt_nests_relax_consistent``, ``rt_nests_feedback_flux``, ``rt_nests_inject``, ``rt_nests_flat_abl_*`` and ``speed_difference_selftest``) are registered only when the configure's Python has numpy; the configure names them when it leaves them out. Each case has its own folder ``Tests///`` with a ``README.md``, its input decks, its check script and its gold files (``Gold/``); ``Tests/README.md`` lists the groups. Check scripts used by more than one case and the test-only drivers are in ``Tests/Supporting_Files/``. Current tests ------------- .. list-table:: :header-rows: 1 :widths: 32 68 * - CTest - What it checks * - ``unit_np1``, ``unit_np2``, ``unit_np4`` - The GoogleTest suite on 1, 2 and 4 ranks (below). * - ``unit_notiling`` - The same suite with tiling off, as on a GPU. * - ``smoke_clean``, ``smoke_run``, ``smoke_restart``, ``smoke_restart_matches`` - A 2-rank run; a 3-rank restart on another box layout, whose log must show the restart; the two plotfiles identical under ``amrex_fcompare`` at zero tolerance. * - ``rt_abl_explicit``, ``rt_abl_named``, ``rt_abl_named_matches``, ``rt_abl_pressure_driven``, ``abort_abl_names``, ``abort_abl_contradiction``, ``abort_abl_deck_value``, ``abort_abl_no_inflow``, ``abort_abl_couette_stratified``, ``abort_abl_capped_no_sink``, ``abort_abl_no_stage`` - The named set-ups (``Tests/Infrastructure/Abl_Setup``, :ref:`named-setups`): a column under ``abl.drive = geostrophic_column`` equals the deck with the keys written out at zero tolerance; the neutral column under ``pressure_driven`` reaches :math:`u_*^2 = F H`; decks that contradict a name stop, naming the input. * - ``rt_immersed_column_f0``, ``rt_immersed_column_f03``, ``rt_immersed_column_f07``, ``rt_immersed_column_f09`` - The neutral column with the ground immersed in a flat mesh (``Tests/Canonical_RANS/Immersed_Column``, :doc:`immersed_terrain`), at cut-cell solid fractions 0, 0.3, 0.7 and 0.9 on two ranks: the steady verdict, identical columns, :math:`u_*^2` of the wall law at the exact distances equal to :math:`F D` to 1e-5, zero speed in the solid layers, and the three cells above the cut cell within 1 % and 2.5 % of the log law. At 0 the column equals the body-fitted column of 65 layers to 1e-6 in :math:`u` and :math:`k`. Double precision only. * - ``rt_immersed_along_vertical``, ``rt_immersed_ridge_vertical``; nightly: ``rt_immersed_hill_vertical`` - A sloping immersed ground against the terrain-following mesh (``Tests/Canonical_RANS/Immersed_Ridge_2D``, :doc:`immersed_terrain`) on four ranks: both runs reach the steady verdict, and the wind at 20, 40, 80 and 160 m above the ground is compared in every column (from the cells with no solid part; below the first of them, the log law through it). Wind along a ridge with slopes up to 18°: within 2 % of the far-field speed (rms 1.5 %). Wind across a ridge: crest speed within 4 %, lee minimum within 16 % and rms within 8 %. Round hill: 5 %, 27 % and 13 %. The limits across the ridge and over the hill are the measured differences with a margin (the case's README). Mutant: the wall cell's distance halved fails ``rt_immersed_along_vertical`` (7.4 % against 2 %). * - ``rt_immersed_ridge_lusgs`` - The wind across the immersed ridge with ``steady.sweep = lusgs`` (``inputs_immersed_ridge_lusgs``) on four ranks, in three runs: the body-fitted deck, the ``zjacobi`` immersed deck and the ``lusgs`` one. The ``lusgs`` run meets the limits of ``rt_immersed_ridge_vertical``; at 20, 40, 80 and 160 m above the ground its u and w are within 2e-4 % of the body-fitted far-field speed, and its k within 2e-4 % of the body-fitted far-field k, of the ``zjacobi`` run in every column (measured: at most 1.9e-5 %), and the two logs name different sweeps. About 2.5 min. Mutants: the earlier refusal of ``lusgs`` on an immersed ground restored fails the first run; ``bc.surface_z0 = 0.101`` in the ``lusgs`` deck fails at every height (u: 0.12 % at 20 m); ``steady.sweep = zjacobi`` in it fails the check of the sweeps' names. * - ``immersed_advice_run``, ``immersed_advice_restart`` - ``terrain.representation = immersed_forcing`` over the ridge (``inputs_immersed_advice``, two iterations): a fresh start prints the warning that recommends ``hybrid``; a restart from its checkpoint (``inputs_immersed_advice_restart``) does not. Mutants: the warning's print removed fails the first; the restart guard removed (``Source/App.cpp``) fails the second. * - ``rt_immersed_open_faces`` - Flat immersed ground between an inflow and an outflow face (``Tests/Canonical_RANS/Immersed_Open_Faces``, :doc:`immersed_terrain`) at cut-cell solid fractions 0, 0.5, 0.95 and 1 with ``turb.shear_stencil = log_law`` and ``terrain.small_volfrac = 0.1``, on one rank: the steady verdict, the flux through the outflow face equal to that through the inflow face within 1e-6, and the outflow column within 1.5 % in :math:`u` and 8 % in :math:`k` of the body-fitted channel at equal height above the ground (measured: 0.8 % and 5.5 % at 0.5). Double precision only. * - ``rt_immersed_roughness_step`` - A step of the roughness length (``bc.surface_z0_file``: 0.03 m, then 0.3 m from x = 1120 m) under the flat ground of the same channel (``Tests/Canonical_RANS/Immersed_Roughness_Step``, :doc:`immersed_terrain`): the immersed ground at solid fractions 0, 0.3 and 0.7 and the hybrid mesh's ground on the lower face and in mid-layer, against the body-fitted run with the same map, with ``turb.shear_stencil = log_law`` and ``terrain.small_volfrac = 0.1``, the runs on 2, 4 and 1 ranks in turn (8 boxes). The steady verdict; :math:`u` within 4 % in every column (measured 2.8 %); :math:`k` within 18 % away from the step (14.0 %) and within 13 % in the wall cells (10.2 %); the map changes :math:`u` of the body-fitted run by at least 20 % (24.3 %). :math:`k` above the wall cell in the first 400 m after the step is printed and has no limit. Double precision only. Mutant: the wall law reading the first column's :math:`z_0` of each box gives 64 % in the wall cells. * - ``rt_immersed_open_faces_sponge``, ``rt_immersed_open_faces_power_law``, ``rt_immersed_open_faces_wall_velocity``, ``rt_immersed_open_faces_rayleigh_absolute`` - The same channel and setting at solid fractions 0.5 and 0.95 with one option of the open faces each, against the body-fitted channel with that option: a sponge (320 m, 0.05), a power-law inflow, no-slip side walls moving at 8 m/s, and Rayleigh damping of :math:`u, v, w, k` above 700 m at the absolute height. Same checks; limits 1.5 % and 8 % (2 % and 10 % with the side walls; measured at most 0.83 % and 5.7 %, 1.41 % and 8.7 % with the walls). The fluxes are the means over :math:`y`. At most 1000 iterations. Double precision only. Mutant: the solid inflow faces not set to 0 fails all four at 0.95 (no steady verdict, flux difference 7.6e-5). * - ``rt_immersed_canopy_homogeneous``, ``rt_immersed_canopy_edge`` (``nightly``), ``rt_immersed_canopy_hill`` (``nightly``) - The canopy decks of ``Homogeneous_Canopy``, ``Forest_Edge`` and ``Forested_Hill`` (deep hill) as they are and with the ground offset (``Tests/Canonical_RANS/Immersed_Canopy``, :doc:`canopy`): the immersed ground at solid fractions 0, 0.3 and 0.7 of a layer (two more layers below the deck's) and the hybrid mesh's ground on the lower face and in mid-layer, with ``turb.realizability = 0.309``, ``turb.nut_relax = 0.5``, ``turb.shear_stencil = log_law`` and ``terrain.small_volfrac = 0.1``, the runs on 2, 4 and 1 ranks in turn. The steady verdict; against the body-fitted run at equal height above the ground, in percent of its largest value: :math:`u`, :math:`k` away from the canopy top and :math:`k` within 1.5 layers of the top within 0.5, 1 and 1 % (homogeneous; measured 0.23, 0.50, 0.46), 3, 13 and 5 % (edge; 1.83, 8.6, 2.8) and 5, 7 and 28 % (hill; 3.2, 4.6, 18.6); the canopy's drag integral over each column's cells with a part above the ground within 1e-6 % of :math:`C_d\,\mathrm{LAI}` of the body-fitted column's. Double precision only. Mutant: IT26. * - ``rt_immersed_askervein_coarse`` (``nightly``) - Askervein at 32 x 32 columns as a pair on four ranks (``Tests/Real_Terrain/Immersed_Terrain_Cases``): terrain-following mesh against the immersed ground, each with its own layers. Both reach the steady verdict; the speed at 10 m above the ground is compared over the columns more than 1000 m from the side faces and on the highest ground: rms difference below 22 % (measured 20.1 %), highest ground below 52 % (measured -48.7 %), of the mean body-fitted speed. The limits detect a change; at 188 m columns the hill top is a few cut columns wide. Label ``nightly`` (4.5 minutes on an idle laptop, up to 50 on a loaded one). Double precision only. Mutant: the cut layer's height at the layer's centre fails it (the immersed run stops in its first pressure solve). The cut cell's wall-law shear removed moves the rms difference by 0.2 points only; its unit tests catch it. * - ``rt_log_shear_column_f0``, ``rt_log_shear_column_f03``, ``rt_log_shear_column_f07``, ``rt_log_shear_column_f09`` - The same columns with ``turb.shear_stencil = log_law`` (:ref:`log-shear`): the wall stress to 1e-5, the cut cell within 0.2 % of the log law, the three cells above it within 0.5 %, and their :math:`k` within 1 %, 1.5 % and 2 % of the local balance :math:`u_*^2 (1 - d/D)/C_{\mu 0}^2` (``central``: 13 to 22 % above it in the first). At 0 the immersed column equals the body-fitted column with the option to 1e-6. Double precision only. At 0.9 the run solves the pressure to ``simplec.pressure_reltol = 1e-6``: with the default 1e-3 its :math:`u` and :math:`w` residuals level off near 2e-8. * - ``abort_shear_stencil_value``, ``abort_shear_stencil_buildings``, ``abort_shear_stencil_tucker``, ``abort_shear_stencil_no_surface_layer`` - The refusals of ``turb.shear_stencil``: a value that is not ``central`` or ``log_law``, buildings, the Tucker wall distance and a ground without a surface layer. Each stops naming the input. * - ``immersed_ground_clean``, ``immersed_ground_run``, ``immersed_ground_restart``, ``abort_immersed_restart_changed``, ``abort_immersed_restart_body_fitted``, ``abort_immersed_first_layer``, ``abort_immersed_buildings``, ``abort_immersed_canopy_heat``, ``abort_immersed_surface_zref`` - The immersed ground in the application (same folder): one iteration of the column on 2 ranks writes a checkpoint with the ground's record; a restart on another box layout and 3 ranks accepts it; a restart with another ``terrain.flat_height``, or with a body-fitted ground, stops naming ``io.restart``; a ground inside the mesh's first layer, ``buildings.type``, ``canopy.heat = fixed`` and ``bc.surface_zref`` stop naming the input. * - ``hybrid_ground_clean``, ``hybrid_ground_run``, ``hybrid_ground_restart``, ``abort_hybrid_restart_width`` - The hybrid mesh in the application (``terrain.representation = hybrid`` on the 2-D ridge of ``Tests/Canonical_RANS/Immersed_Ridge_2D``, without ``terrain.flat_height`` and ``terrain.hybrid_half_width``): the run on 2 ranks logs the default half-width (80 m, 2 cells) and writes a checkpoint; a restart on 3 ranks with the defaults again accepts it; a restart with ``terrain.hybrid_half_width = 100`` (the same 2 nodes, another value) stops naming ``io.restart``. Labels ``regression;smoke``. * - ``immersed_z0_map_clean``, ``immersed_z0_map_run``, ``immersed_z0_map_restart``, ``abort_immersed_z0_map_restart_other_map``, ``abort_immersed_z0_map_restart_uniform``, ``abort_immersed_z0_map_restart_neighbors``, ``abort_immersed_z0_map_missing``, and the same seven with ``hybrid`` for ``immersed`` - A roughness map under an immersed ground and under a hybrid mesh's ground (``Tests/Canonical_RANS/Immersed_Roughness_Step``): two iterations on 2 ranks log the map as the wall law's :math:`z_0` and write a checkpoint; a restart on another box layout and 3 ranks with the same map accepts it; a restart with another map file, with a uniform ``bc.surface_z0`` or with another ``terrain.idw_neighbors`` stops naming ``io.restart``; a map file that cannot be read stops naming ``bc.surface_z0_file``. * - ``canopy_clean``, ``canopy_run``, ``canopy_column_integrals``, ``canopy_check_detects_change``, ``canopy_restart``, ``canopy_restart_matches`` - The canopy's drag field (``Tests/Infrastructure/Canopy_Field``): four ERF-format patches on a stretched, periodic-in-x mesh of 12 boxes, 2 ranks. Every column's integral of ``canopy_drag`` is :math:`C_d` LAI of the patches over it (3e-16 in double precision; the check allows 5e-6) and 0 outside them (the vertical shape is checked by the unit tests; maps are covered by the unit tests only); the same check against the patch file with one LAI changed fails (expected); a 3-rank restart on another layout with the same canopy gives the same plotfile at zero tolerance. * - ``buildings_clean``, ``buildings_run``, ``buildings_column_volume``, ``buildings_check_detects_change``, ``buildings_restart``, ``buildings_restart_matches``, ``abort_buildings_restart_changed``, ``abort_buildings_restart_none``, ``abort_buildings_inputs``, ``abort_buildings_type``, ``abort_buildings_wall_inputs``, ``abort_buildings_wall_tke_form``, ``abort_buildings_z0_with_drag``, ``abort_buildings_wall_k_inputs``, ``abort_buildings_wall_k_no_tke``, ``abort_buildings_wall_k_speed_all_faces``, ``abort_buildings_restart_theta``, ``abort_buildings_theta_inputs``, ``abort_buildings_theta_surface``, ``abort_buildings_theta_surface_missing``, ``abort_buildings_theta_surface_unused``, ``abort_buildings_theta_form``, ``buildings_defaults_fraction_stress``, ``buildings_defaults_roof_stress``, ``buildings_defaults_drag`` (each with its ``_clean``) - The building geometry (:doc:`buildings`): each column's volume against the height map, the wall mask, a restart on another layout, the refusals (those of ``buildings.theta_mode`` and ``buildings.theta_surface`` among them, and a restart without theta's terms of a checkpoint written with them; those of ``buildings.wall_k_bound`` and ``buildings.wall_k_speed``: a value outside the list, either key without ``buildings.wall_tke = on``, and ``cell_mean`` with ``buildings.wall_speed = all_faces``), and the defaults of ``buildings.wall_speed``, ``buildings.wall_tke``, ``buildings.wall_k_bound``, ``buildings.wall_k_speed`` and ``buildings.theta_mode`` with each ``buildings.wall_form``, as the log gives them. * - ``snyder_cube_plain_clean``, ``snyder_cube_plain_run``, ``snyder_cube_plain_compare``, ``snyder_cube_lee_clean``, ``snyder_cube_lee_run``, ``snyder_cube_lee_compare``, ``snyder_cube_lee_nozone_clean``, ``snyder_cube_lee_nozone_run``, ``snyder_cube_lee_nozone_compare`` - The cube of Snyder and Lawson (1994) in a wind-tunnel boundary layer (``Tests/Canonical_RANS/Snyder_Lawson_Cube``), 20 mm cells and 5 mm layers to 0.3 m, against the 296 measured values of u digitized from Wise et al. (2026): the rms difference, the hit rate and the reattachment length behind the cube are pinned within 2 % for the plain closure (0.244 m/s, 0.882, 1.34 H; measured 1.36 H), for the lee options of the terrain decks with their zone around the cube (``buildings.limiter_zone``, default 3: the plain closure's answer) and for the same options without the zone (0.317 m/s, 0.713, 1.89 H). Minutes each on 4 ranks; not in ``-L smoke``. * - ``castro_cube_array_clean``, ``castro_cube_array_run``, ``castro_cube_array_compare`` - The staggered cube array of Castro et al. (2006) (``Tests/Canonical_RANS/Castro_Cube_Array``), one periodic tile, 2 mm cells, against 185 values of u and - digitized from Muñoz-Esparza et al. (2020): the run stops at 3000 iterations without the steady verdict (below the highest measured point its answer has settled) and the test expects that message; the rms difference of u (0.042 u_r) and its hit rate (0.724), the rms of - (1.707e-3 u_r²) and its peaks near the roof at P1 (10.45e-3) and P3 (5.97e-3) are pinned within 2 %. About 12 minutes on 4 ranks; not in ``-L smoke``. * - ``abort_buildings_limiter_zone``, ``abort_buildings_limiter_zone_wall_tke``, ``abort_buildings_limiter_zone_no_cap`` - ``buildings.limiter_zone`` out of its range, without ``buildings.wall_tke = on``, and given without ``turb.realizability`` > 0: each refusal's message. * - ``building_courtyard_clean``, ``building_courtyard_run``, ``building_courtyard_flow``, ``building_courtyard_all_faces_clean``, ``building_courtyard_all_faces_run``, ``building_courtyard_all_faces_flow``, ``building_courtyard_k_cell_mean_clean``, ``building_courtyard_k_cell_mean_run``, ``building_courtyard_k_cell_mean_flow`` - A courtyard open to the wind (``Tests/Canonical_RANS/Building_Courtyard``), whose inner corners are cells with two walls: the run converges, speeds in solid cells are 0 and k there is at its floor, the volume flux is constant along x, the two inner corners agree, and k in them keeps its value with the wall law's speed from the open faces (``buildings.wall_speed = open_faces``, the default). The same deck with ``all_faces`` keeps the values of the form before, and with ``buildings.wall_k_speed = cell_mean`` k in the corners has its own pinned values (0.0097 and 0.454 m²/s², against 0.0227 and 0.633). * - ``building_hill_clean``, ``building_hill_run``, ``building_hill_flow`` - One block on a ridge's windward flank (``Tests/Canonical_RANS/Building_Hill``): the run reaches the driver's stop, which needs the ground's ``w`` rows left to the boundary conditions; horizontal speeds in solid cells are 0, the volume flux varies by less than 5 %, the air reverses behind the block, u two cells above the roof's wall cell and k in that cell keep their values, and k in the solid cells is at its floor. * - ``building_cube_clean``, ``building_cube_run``, ``building_cube_flow``, ``building_cube_roof_stress_clean``, ``building_cube_roof_stress_run``, ``building_cube_roof_stress_flow``, ``building_cube_wall_tke_off_clean``, ``building_cube_wall_tke_off_run``, ``building_cube_wall_tke_off_flow``, ``building_cube_wall_k_impinging_clean``, ``building_cube_wall_k_impinging_run``, ``building_cube_wall_k_impinging_flow``, ``building_cube_wall_k_source_clean``, ``building_cube_wall_k_source_run``, ``building_cube_wall_k_source_flow``, ``building_cube_drag_clean``, ``building_cube_drag_run``, ``building_cube_drag_flow``, ``building_cube_smooth_walls_clean``, ``building_cube_smooth_walls_run``, ``building_cube_smooth_walls_length``, ``building_cube_smooth_walls_flow``, ``building_cube_heated_clean``, ``building_cube_heated_run``, ``building_cube_heated_heat``, ``building_cube_heated_flow``, ``building_cube_theta_none_clean``, ``building_cube_theta_none_run``, ``building_cube_theta_none_flow``, ``building_cube_heated_roof_clean``, ``building_cube_heated_roof_run``, ``building_cube_heated_roof_heat``, ``abort_buildings_theta_frozen``, ``abort_buildings_newton``, ``abort_buildings_lusgs``, ``abort_buildings_levels``, ``abort_buildings_mlmg`` - One block in a log-law wind (``Tests/Canonical_RANS/Building_Cube``): the run converges, speeds in solid cells are 0, the volume flux is constant along x, the air reverses behind and speeds up above, and a wall cell of the roof and one of a side keep their values, as does k in the roof's wall cell, and k in the solid cells is at its floor. The same deck with ``buildings.wall_form = roof_stress`` keeps the values it had before the sides took the wall law, and with ``buildings.wall_tke = off`` those from before the closure saw the buildings. k in a wall cell of the windward side is pinned at 0.0079 m²/s², and with ``buildings.wall_k_bound = impinging`` at 0.922 m²/s², with the roof's and the side's values within 0.01 m/s of the deck's. With ``bc.surface_wall_k = source`` the buildings' rows are added to the cells' equations, with their own pinned values. With ``buildings.wall_form = drag`` and no ``buildings.wall_tke`` the fixed rows act alone and the closure does not see the block. With walls smoother than the ground (``buildings.z0`` 0.01 m on ``bc.surface_z0`` 0.1 m) the turbulence plotfile's ``walldist`` in the wall cells is the wall's distance plus its own roughness less the ground's, 2.41 m. With walls 5 K warmer than the air and gravity on (``buildings.theta_mode = fixed``) the solid cells are at 305 K, the air stays between the inflow's and the walls' temperature, and the heat the walls give equals the heat carried through the planes downstream within 2 %; the same with the roof inside a layer (0.92 of its cells solid), where the wall cells' reference cells carry most of the exchange. With ``buildings.theta_mode = none`` the deck keeps its values, theta is solved inside the block (the deck's default holds it at 300 K there) and the log has no line with the walls' heat. The stages and back ends that have no buildings yet are refused. * - ``abort_canopy_restart_changed``, ``abort_canopy_restart_none``, ``abort_canopy_inputs`` - A restart with one patch's LAI changed, and one without a canopy, stop naming ``io.restart``; a deck of canopy mistakes stops, naming each input. * - ``abort_unknown_key``, ``abort_range``, ``abort_repeated_key``, ``abort_restart_mesh``, ``abort_restart_overwrite``, ``abort_restart_overwrite_spelled``, ``abort_column_guess_file_no_column`` - Decks that must stop, with the input named in the message. ``io.restart = ./smoke_chk00000/`` with ``io.chk_file = smoke_chk`` stops (before, the guard compared the strings, and the run moved the checkpoint it had read to ``smoke_chk00000.old.*``); ``io.column_guess_file`` without the column guess is refused. * - ``abort_repeated_turb_key``, ``abort_repeated_surface_key`` - The column deck with ``turb.max_geom_lscale`` and ``bc.surface_z0`` repeated on the command line: each stops, naming the key. Before, these two readers checked only the value count and the last value won. * - ``warn_w_vnn_cap_terrain``, ``warn_w_vnn_cap_terrain_margin``, ``warn_w_vnn_cap_terrain_below``, ``abort_w_vnn_cap_floor``, ``abort_w_vnn_cap_slope_margin``, ``abort_w_vnn_cap_slope_margin_alone`` - The thin-cell strip on a 50 m ridge (``Tests/Infrastructure/Input_Validation/inputs_w_vnn_cap_terrain``, max aspect ratio about 134), one iteration. With ``simplec.w_vnn_cap = 16`` and the default slope margin the run prints no warning and its banner names the margin (4); a margin of 0.5, or a margin given without the cap, is refused, naming the key. With ``simplec.w_vnn_cap_slope_margin = 0`` and a 0.7 m first cell the run exits 0 and prints the warning that names the key, the tested aspect ratio 50.78 and the slow convergence without the cap; with a 4 m first cell (aspect ratio below 50.78) it runs without the warning; with 4 it stops on the floor of 16. The flat strip of ``rt_thin_cell_w_vnn_cap`` (aspect ratio above 50.78, no slope) prints no warning. * - ``rt_askervein_mesh`` - ERF's Askervein mesh coarsened to 60 × 60 × 18 (20 m × 1.08 layers, BTF, ERF's terrain file): statistics of ``z`` and ``detJ`` and the quality report against ``Tests/Discretization/Terrain_Mesh/Gold/askervein_mesh.json``. Double-precision builds only: the statistics are compared at double-precision tolerances. * - ``rt_steep_ridge_quality`` - A 600 m ridge under STF: the report against its gold, including both warnings (STF capped, top not flat). Double-precision builds only. * - ``rt_hill2d_run``, ``rt_hill2d_matches`` - A run without a solve writes the mapped-grid plotfile of the 2-D hill; ``amrex_fcompare`` against ``Tests/Discretization/Terrain_Mesh/Gold/hill2d_plt00000`` at relative tolerance 1e-12 (1e-5 in single precision). The plotfile holds cell fields only, so the nodal heights are not compared here; ``Mesh.MetricsEqualErf`` compares them with ERF. The golds of the three mesh tests above were written by STEER itself (``Tests/Supporting_Files/check_mesh.py --write``): they detect changes, they do not show correctness. Correctness of the same code paths comes from ``Mesh.MetricsEqualErf`` (ERF's own output) and the closed-form unit tests. * - ``rt_askervein_hierarchy``, ``rt_askervein_hierarchy_level1_matches``, ``rt_askervein_hierarchy_level2_matches`` - The Askervein mesh of ``rt_askervein_mesh`` with STF and a three-level hierarchy (``inputs_mesh_askervein_hierarchy``: 60, 30 and 15 cells a side, the same 18 layers, 1 and 3 ground passes). In double precision, level 0's ``z`` and ``detJ`` statistics and every level's quality report against ``Tests/Discretization/Grid_Hierarchy/Gold/askervein_hierarchy_mesh.json`` (the per-level headers and the summary table included); in both precisions, ``z`` and ``detJ`` of levels 1 and 2 against ``Tests/Discretization/Grid_Hierarchy/Gold/askervein_hierarchy_level{1,2}_plt00000`` (relative 1e-12; 1e-5 in single precision). The golds were written by steer: they detect changes. The coarse grounds were checked against an independent rebuild (``MeshHierarchy.GroundSmoothingPasses``). * - ``rt_steep_ridge_hierarchy_quality`` - The steep ridge of ``rt_steep_ridge_quality`` on 32 × 4 × 16 cells with three levels: the report of every level against ``Tests/Discretization/Grid_Hierarchy/Gold/steep_ridge_hierarchy_mesh.json``, with the STF and top warnings (no coarse-level hint: levels 1 and 2 cap no more than level 0), and the per-level headers and summary table. Double precision only. The gold was written by steer: it detects changes. * - ``rt_askervein_hierarchy_hint`` - The Askervein hierarchy with unsmoothed coarse grounds (``terrain.hierarchy_passes = 0``): levels 1 and 2 cap STF at 9 and 10 z-levels against level 0's 8, so the report gives the coarse-level hint; against ``Tests/Discretization/Grid_Hierarchy/Gold/askervein_hierarchy_p0_mesh.json`` (written by STEER). Double precision only. * - ``rt_hierarchy_restart_first``, ``rt_hierarchy_restart``, ``rt_hierarchy_restart_level{1,2}_matches`` - A checkpoint of the Askervein mesh written without a hierarchy (2 ranks), restarted with three levels on 3 ranks: the rebuilt levels 1 and 2 against the golds of ``rt_askervein_hierarchy``. * - ``rt_hierarchy_restart_ratio4``, ``rt_hierarchy_restart_ratio4_matches`` - The same checkpoint restarted with two levels at ``mesh.hierarchy_ratio = 4`` (3 ranks): level 1 has the cells and the 3 smoothing passes of level 2 at ratio 2, so it is compared with the level-2 gold of ``rt_askervein_hierarchy``. * - ``abort_hierarchy``, ``abort_hierarchy_passes_unused``, ``abort_hierarchy_tool`` - ``MeshHierarchy.InvalidLayoutsAbort`` at the application: n_cell x not divisible by 4 for three levels, a box size not a multiple of 4 and passes out of range; passes given without a hierarchy; a test-only tool (``wall_distance``) given a hierarchy. Each message names its input. * - ``abort_hierarchy_ratio``, ``abort_hierarchy_ratio4``, ``abort_hierarchy_ratio_unused`` - ``mesh.hierarchy_ratio = 3``; ratio 4 with two levels, n_cell y = 30 and a box size of 6 (both valid at ratio 2); the ratio given without a hierarchy. Each message names its input. * - ``abort_sequencing_range``, ``abort_sequencing_coarsest``, ``abort_sequencing_unused``, ``abort_sequencing_value``, ``abort_sequencing_no_stage`` - Grid sequencing's inputs at the application (the truly neutral hill deck with overrides): a loose drop of 9 orders against the strict 8, a monitor tolerance of 1 and sequencing without a hierarchy, all three named in one abort; a coarsest level of 4 × 1 cells (64 × 16 over five levels); ``steady.sequencing_drop_orders`` without ``steady.sequencing = 1``; ``steady.sequencing = 2``; ``steady.sequencing`` without the stage. The range test also refuses ``steady.sequencing_cfl_start = previous`` with ``steady.sequencing_hold = 1``, and the unused test the two keys without sequencing. * - ``abort_simplec_theta_value``, ``abort_simplec_theta_newton``, ``abort_simplec_theta_restart``, ``abort_simplec_theta_no_sequencing`` - ``simplec.theta = fixed`` is refused, naming the key; ``frozen`` is refused with ``steady.stage = simplec_newton``, with ``io.restart`` and without grid sequencing or a parent run, each naming the reason. Frozen θ with a stratified column first guess and with nests runs in ``rt_nests_flat_abl_buoyant`` and ``rt_nests_flat_abl_neutral``; in a patch of a parent run in ``rt_nest_faces_frozen``. * - ``abort_sequencing_hold_value``, ``abort_sequencing_cfl_start_value`` - ``steady.sequencing_hold = 2`` and ``steady.sequencing_cfl_start = last``: each refused, naming its input. * - ``rt_sequencing_hold_kept``, ``rt_sequencing_hold_released``, ``rt_sequencing_cfl_previous`` - Old against new ``steady.sequencing_hold``, on the two-level restart deck of the truly neutral hill (only level 0 is seeded): with the hold (``1``) level 0's first three iterations run at ``steady.cfl0`` with r = 1; without it (``0``, the default) r < 1 from the first iteration and the CFL leaves ``steady.cfl0`` at the second; with ``steady.sequencing_cfl_start = previous`` level 0 starts at level 1's last CFL (4, after 150 iterations). Seconds. ``rt_sequencing_restart`` also checks that the restored level-0 history keeps the released hold. * - ``abort_poisson_options`` - ``poisson_projection`` with ``solver.poisson_reltol`` repeated and out of range: both named. (``abort_unknown_key`` checks that the application refuses ``solver.poisson_reltol``.) * - ``rt_poisson_askervein``, ``rt_poisson_askervein_matches`` - ``poisson_projection`` projects a fixed wind on the Askervein mesh (30 × 30 × 18). Iterations at most 10 % above ``Tests/Discretization/Poisson_Askervein/Gold/poisson_askervein.json``, divergence after below 10 × the printed tolerance of before, and :math:`\phi` against ``Tests/Discretization/Poisson_Askervein/Gold/poisson_askervein_plt00000`` at relative 1e-8. Double precision only (the golds are double-precision runs); the gold was written by STEER, so it detects changes. * - ``rt_poisson_askervein_mlmg``, ``rt_poisson_askervein_mlmg_matches`` - The same projection with back end B (MLMG, 6 iterations): iterations at most 10 % above ``Tests/Discretization/Poisson_Askervein/Gold/poisson_askervein_mlmg.json`` (written by STEER's first run) and the divergence check, and :math:`\phi` against back end A's gold ``Tests/Discretization/Poisson_Askervein/Gold/poisson_askervein_plt00000`` at relative 1e-8, since both solve the same operator. * - ``rt_walldist_hill2d``, ``rt_walldist_hill2d_matches`` - ``wall_distance`` on ERF's Neutral_Hill_2D mesh: ERF's wall-distance checks (``Tests/Discretization/Wall_Distance/check_walldist.py``: max relative ≤ 0.15, mean ≤ 0.03, ≤ 0.2 cells below 100 m, all finite), and the field against ``Tests/Discretization/Wall_Distance/Gold/walldist_hill2d_plt00000`` at relative 1e-8 (a gold written by STEER). Double precision only. * - ``rt_init_askervein``, ``rt_init_askervein_matches`` - The gold's ``tke`` is for the 100 m default of ``turb.max_geom_lscale`` (a run without the SIMPLEC stage refuses ``turb.*``, so the deck cannot give 30; the other fields did not change with the default). The mass-consistent initial field on the Askervein mesh (30 × 30 × 18; ``Tests/Initialization/Mass_Consistent_Askervein/inputs_init_askervein``: log law u* = 0.6 m/s, z₀ = 0.03 m along x, inflow at xlo, outflow at xhi, :math:`\alpha_h = 1`, :math:`\alpha_v = 0.5`; divergence 4.05e-1 → 1.1e-11 1/s). ``Tests/Supporting_Files/check_init.py askervein``: iterations at most 10 % above the gold's 13, divergence after at most 10 × ``solver.poisson_reltol`` times before, divergence before (the printed 10 digits), max :math:`|w|` and the largest horizontal speed at the gold's values (1e-6), :math:`\theta` = 300 K everywhere, :math:`p' = 0`, :math:`k > 0` (``Tests/Initialization/Mass_Consistent_Askervein/Gold/init_askervein.json``); the state against ``Tests/Initialization/Mass_Consistent_Askervein/Gold/init_askervein_plt00000`` at relative 1e-8. Two ranks; double precision only. :math:`\lambda` is not in the plotfile: the state plotfile is the regression artefact, and the unit tests pin :math:`\lambda`. * - ``rt_init_bump_trend`` - The hilltop speed-up over FastWindTerrain's bump (``Tests/Initialization/Bump_Speedup_Trend/inputs_init_bump``, ``Tests/Initialization/Bump_Speedup_Trend/terrain_bump_fwt.txt``: its ``regtests/phase6_solve_correction`` hill and power-law inflow) for :math:`\alpha_v` = 1, 0.7, 0.5, 0.3, 0.1 (five runs on two ranks), against FastWindTerrain's own at commit 648f8f1 (``Tests/Initialization/Bump_Speedup_Trend/Gold/init_bump_trend.json``, written from its plotfiles by ``Tests/Initialization/Bump_Speedup_Trend/fwt_bump_speedup.py``): the same ranking of the five values at 40, 80 and 150 m above the ground (at 20 m two values tie within 0.002 in both codes), every speed-up above 1 at 20, 40, 80 and 150 m, the two codes within 0.02, 0.01, 0.005 and 0.003 of each other at those heights (measured 0.010, 0.0051, 0.0018, 0.0007), and STEER's own values and iterations pinned (1e-6, 10 %). Double precision only (:doc:`initial_conditions`). * - ``rt_nest_patch_hill`` (fixtures ``rt_nest_patch_hill_clean``, ``rt_nest_patch_hill_parent``) - A nested patch at 2 2 1 over a 60 m round Agnesi hill (``Tests/Initialization/Nest_Patch_Hill``): the parent (32 × 24 × 16 cells of 50 m, periodic in y, stable sounding) runs on two ranks and writes a checkpoint; the patch (parent cells 8–23 by 6–17) starts from it with ``init.first_guess = nest`` on three ranks. ``check_nest.py``: without the adjustment, θ and k of every patch cell equal the bilinear interpolation per ζ-level of the parent's plotfile, computed in Python independently of ``Source/Transfer_K.H``, to a relative 1e-12 (measured 3.8e-16, 4.4e-16), and both vary along a level; with it, the log names the parent cells covered, the divergence after is at most 10 × 1e-10 × before, and on every ground face of the patch's checkpoint :math:`|\Omega| = |w - z_x u - z_y v|` (the code's averages, ghost row included) is at most 1e-12 × max :math:`|w|` there: no mass crosses the ground. Double precision only. * - ``abort_nest_placement``, ``abort_nest_inputs``, ``abort_nest_init_keys``, ``abort_nest_parent_missing``, ``abort_nest_parent_unused``, ``abort_nest_parent_not_a_checkpoint`` - A misplaced patch (shifted 10 m, 20 cells in y), ``nest`` with ``steady.sequencing = 1``, a profile key with ``nest``, ``nest`` without ``bc.nest_parent``, ``bc.nest_parent`` without ``nest`` and a directory with no checkpoint ``Header`` each stop the run, naming the key. * - ``rt_nest_validation_hill`` (fixtures ``rt_nest_validation_clean``, ``_parent``, ``_reference``, ``_d400``, ``_d600``) - One-way nesting against a uniform fine run (``Tests/Canonical_RANS/Nest_Validation``): a 150 m round Agnesi hill of half-width 250 m in 3200 m × 2400 m. The whole domain runs to steady on 100 m cells (the parent, 103 iterations) and on 50 m cells (the reference, 107), each in four boxes on two ranks, and 50 m patches of half-width 400 m (four boxes, two ranks) and 600 m (six boxes of 12 × 8 cells, three ranks) run to steady with four ``nest`` faces. ``nest_validation.py compare``: the RMS of the velocity-vector difference between the 600 m patch and the reference over the hill (within 250 m of the centre, below 100 m) is at most 0.2 % of the speed scale 7.313 m/s (measured 0.091 %), at most a quarter of the parent's (2.362 %), and not above the 400 m patch's (0.348 %). Double precision only. Mutants: six one-line mutants. Four fail it: the rows of the high nest faces missing and the face row without the parent's value (``Source/NestFaces.cpp``; the patches then miss the steady verdict), the script comparing one reference cell off in x, and the hill region misplaced. Two leave the three numbers unchanged to the digits printed: the ghost fill of the nest faces not called, and one ghost layer filled in place of all. The first guess (``init.first_guess = nest``) already puts the parent's values in both ghost layers and nothing overwrites them, so a run from the first guess does not exercise the fill of each iteration; a restart does, and ``rt_nest_faces_restart_matches`` fails on both. This test does not cover the ghost fill. * - ``rt_nest_validation_study`` (``nightly``; fixture ``rt_nest_validation_study_clean``) - The study of the case README on four ranks: the 25 m and 12.5 m references, one nest from a 50 m parent at half-widths 400 to 1000 m, the relaxation zone, a chain of three nests from 100 m, and the 600 m patch in four boxes on 1, 2 and 4 ranks. Targets T1 to T5 of the README are the verdict (:doc:`boundary_conditions`, *Where to put the nest faces*). * - ``rt_nest_shapes_cube`` (fixtures ``rt_nest_shapes_clean``, ``_cube_parent``, ``_cube_reference``, ``_cube_d70``) - A one-way patch around a building against a uniform fine run (``Tests/Canonical_RANS/Nest_Shapes``): the 30 × 30 × 20 m block of ``Building_Cube`` in 480 m × 240 m, periodic in y. The whole domain runs to steady on 10 m cells (the parent) and on 5 m cells (the reference), and a 5 m patch of half-width 70 m with four ``nest`` faces (walls 55 m from them) from the parent, each in four boxes on two ranks. ``nest_shapes.py compare``: the RMS of the velocity-vector difference between patch and reference around the cube (x in [100, 160] m, y in [90, 150] m, below 40 m) is at most 2 % of the speed scale 5.298 m/s (measured 1.394 %) and at most a quarter of the parent's (18.431 %). Mutant: the patch's buildings placed one cell off in x (``Source/Buildings.cpp``) fails it (10.823 %). * - ``rt_nest_shapes_cube_ratio4``, ``rt_nest_shapes_cube_chain2``, ``rt_nest_shapes_cube_ratio4_vs_chain``, ``rt_nest_shapes_cube_ratio4_ranks1``, ``rt_nest_shapes_cube_ratio4_ranks4`` (fixtures ``_cube_parent20``, ``_cube_r4``, ``_cube_r4_np1``, ``_cube_r4_np4``, ``_cube_c10``, ``_cube_chain``) - ``bc.nest_ratio``. The same cube from a 20 m parent: a 5 m patch at ratio 4 (half-widths 70 m by 60 m) and a chain of two ratio-2 patches (10 m at 90 m by 100 m, then 5 m at 70 m by 60 m), against the 5 m reference. ROI velocity RMS: ratio 4 at most 5 % (measured 3.969 %) and 0.15 of the parent's (42.03 %); chain at most 3.5 % (2.598 %) and 0.1 of the parent's; ratio 4 against the chain at most 2 % (1.399 %). The ratio-4 patch on 1 and 4 ranks matches its 2-rank run to 1e-8 of the speed scale on every patch cell (measured 0). Four boxes per run. * - ``rt_nest_shapes_study`` (``nightly``; fixture ``rt_nest_shapes_study_clean``) - The study of the case README on four ranks for the hill, the escarpment, the cube and the plate: the reference, the parent and patches at three distances from each shape, and the middle distance in four boxes on 1, 2 and 4 ranks for the hill and the cube. Targets T1 to T4 of the README are the verdict. The ridge, which misses T1 and T2 (README, *Expected Results*), is not run. * - ``rt_askervein_nest_study`` (``nightly``; fixture ``rt_askervein_nest_clean``) - One-way nesting on Askervein (``Tests/Real_Terrain/Askervein_Nest``) on four ranks: the 40 m parent, the 20 m reference and 20 m patches of half-width 1000, 1400 and 2000 m around the hilltop. The 10 m speeds at the 30 masts of lines A and AA against the reference: the patches of 1400 and 2000 m at most half the parent's RMS difference (measured 0.035 and 0.015 % against 1.208 %), no growth with the half-width, and no net-flux warning (targets A1 to A3). * - ``rt_nest_faces_flat``, ``rt_nest_faces_flat_zone`` (fixtures ``rt_nest_faces_clean``, ``rt_nest_faces_flat_parent``) - A patch at 2 2 1 with four ``nest`` faces on flat ground (``Tests/Canonical_RANS/Nest_Faces``). The parent (32 × 24 × 16 cells of 50 m, periodic in y, log-law inflow from 20°, neutral) runs to steady on two ranks (79 iterations); the patch (parent cells 8–23 by 6–17, boxes of at most 13 × 9 cells) starts from its checkpoint and runs to steady on three ranks (64 iterations), and on two ranks with ``bc.nest_relax_width = 4`` (63). ``check_nest_faces.py``: the log names the nest faces and the net flux as removed before the pressure solve, at most 1e-10 of the flux entering (measured 2.0e-13); the divergence after the first pressure correction is at most 1e-8 × before; the steady verdict; and the mean over the 2 × 2 patch cells of every parent cell is within 1e-3 m/s (u, v, w) and 2e-3 m²/s² (k) of the parent's value (measured 2.1e-4, 9.5e-5, 9.7e-5 and 3.5e-4). Double precision only. * - ``rt_nest_faces_flat_open`` - The flat patch with ``bc.xlo = nest``, ``bc.xhi = outflow`` and periodic y (parent cells 8–23 in x, the parent's whole width in y; 32 × 48 × 16 cells, boxes of at most 13 × 19, three ranks; ``inputs_flat_patch_open``). The log reports the net flux (−1.000 of the flux entering: all of it enters through the one nest face) as not removed, an outflow face carries it; the divergence after the first pressure correction is at most 1e-8 × before (1.8e-4, 9.0e-15); steady in 80 iterations; the 2 × 2 means are within 5e-3 m/s and 2e-3 m²/s² of the parent (measured 1.6e-3, 5.7e-4, 1.0e-3 and 3.8e-4, the largest in the cells beside the outflow face, which the parent does not have there). * - ``rt_nest_faces_hill_np1``, ``_np2``, ``_np4``, ``rt_nest_faces_hill_np2_matches``, ``_np4_matches``, ``rt_nest_faces_hill_zone`` (fixture ``rt_nest_faces_hill_parent``) - The same patch over a 60 m round Agnesi hill, with the parent's flow entering and leaving on every face. The parent is steady in 84 iterations, the patch in 103 (one rank) and 102 (two and four). The same checks, with the net flux between 1e-8 and 1e-3 of the flux entering (measured 6.3e-6, δ = 1.5e-5 m/s; the divergence 4.5e-2 before, 1.7e-12 after) and tolerances of 0.15 m/s and 0.06 m²/s² (measured 6.2e-2, 2.7e-2, 1.6e-2 and 2.4e-2: what the finer cells change over the hill). The final plotfiles on two and four ranks agree with one rank to 1e-6, relative or absolute (measured 5.0e-7 absolute, in p; not bit for bit, the line sweeps are local to a box). ``_zone``: ``bc.nest_relax_width = 4`` with ``terrain.nest_blend_width = 150`` passes the same checks (104 iterations). * - ``rt_nest_faces_restart_first``, ``_continued``, ``_straight``, ``_matches`` (fixtures ``rt_nest_faces_pair_a``, ``_pair_b``) - The hill patch with ``bc.nest_relax_width = 2`` and ``terrain.nest_blend_width = 100`` for 10 iterations, a restart to 20, and 20 straight, on the same boxes and two ranks: ``fcompare`` with zero tolerance. The restarted run's log must name the nest faces, the zone of 2 cells and the blended ground (moved by up to 0.12 m). The parents here are two runs of the hill parent for 30 iterations (``inputs_hill_parent_pair``), with u* = 0.4 m/s (``pair_a``, the chain's parent) and 0.6 m/s (``pair_b``). * - ``abort_nest_faces_restart_zone``, ``_restart_blend``, ``_restart_parent`` - A restart of that patch with ``bc.nest_relax_width = 3``, with ``terrain.nest_blend_width = 150``, or from ``pair_b`` (the same mesh, place and step, another flow) stops, naming ``io.restart``. * - ``abort_nest_faces_no_parent``, ``_no_guess``, ``_sequencing``, ``_widths``, ``_blend_width``, ``_keys_unused``, ``_blend_unused``, ``_buildings``, ``_damping`` - A ``nest`` face without ``bc.nest_parent``, without the parent's first guess or a restart, or with ``steady.sequencing = 1``; ``bc.nest_relax_width`` of half the patch or ``bc.nest_relax_factor`` = 0; ``terrain.nest_blend_width`` of half the patch; the three keys without a ``nest`` face; a building tile (``building_near_face.txt``, x in [425, 450] m) within the 50 m gap of the face ``bc.xlo`` (the case of the ``NestBuildings`` unit tests run end to end; the message names the tile, its top, the gap and the face); and a Rayleigh layer on u, v and k with no ``inflow`` face: each stops the run, naming the key. * - ``rt_nest_faces_building_inside`` (fixture ``rt_nest_faces_hill_parent``) - The hill patch with a 75 m × 75 m × 20 m block clear of its nest faces (``building_inside.txt``) runs five iterations on two ranks in nine boxes and writes its checkpoint; the log must report solid cells (9 solid, 9 partial and 33 wall cells; solid volume 112 500 m³) (before, buildings with a ``nest`` face stopped the run). * - ``rt_nest_faces_frozen`` (fixture ``rt_nest_faces_frozen_parent``), ``rt_nest_faces_frozen_building``, ``_building_theta``, ``rt_nest_faces_frozen_inflow``, ``_inflow_theta``, ``abort_nest_faces_frozen_canopy_blend``, ``_building_theta``, ``_unsteady`` - ``simplec.theta = frozen`` in a patch of a parent run. The hill parent with a sounding of 300 K at the ground and 304 K at 800 m, θ solved, is steady in 85 iterations. Its patch, whose own sounding is 310 K to 330 K, runs for 1 iteration and to steady (109 iterations) on two ranks in nine boxes: the log names the parent's θ as the held field; θ's residual is 0 in every iteration; θ is the same bit for bit in the two runs; θ equals the parent's θ interpolated bilinearly on each level within 1e-10 K (1.1e-13 K); θ varies by more than 0.01 K on every level (2.2e-2 K); the 2 × 2 means of u, v, w and k are within 0.15 m/s and 0.06 m²/s² of the parent (0.10 m/s, 0.038 m²/s²). With the block of ``building_inside.txt`` (5 iterations) and with an inflow face on xlo and an outflow face on xhi (``inputs_hill_patch_inflow``, 20 iterations), θ is the one-iteration run's bit for bit. ``canopy.heat_frozen = blend`` (``canopy_inside.txt``), ``buildings.theta_mode = ambient`` and ``steady.stage = unsteady`` each stop the run, naming the key. * - ``rt_nests_one_process`` - Nests in one run (``Tests/Canonical_RANS/Nests_One_Process``): the hill parent of ``Nest_Faces`` with a Rayleigh layer on every field above 400 m, and two touching nests given by ``nest.names`` and their corners only (32 × 24 × 16 and 12 × 12 × 16 cells of 25 m), on two ranks. ``check_nests_one_process.py``: the outer domain's final plotfile equals that of the same deck without nests, and each nest's that of its own deck with the derived settings (``inputs_nest``) from the outer run's last checkpoint, by ``fcompare`` with zero tolerance; the log names each nest after the outer run with its corners and that checkpoint; the steady verdict three times. Each nest's ground equals the outer ground on their shared nodes to 1e-6 m (the ``edge`` nest fails this if the hill is centred on the nest), and the nest's u averaged to the outer cells is within a pinned bound of the outer u. The Rayleigh layer checks that a nest keeps it on w and theta only. * - ``abort_nests_misaligned``, ``_margin``, ``_overlap``, ``_missing_corner``, ``_unknown_key``, ``_no_checkpoint``, ``_stage``, ``_layout_before_outer`` - A nest corner off the 50 m outer cell faces, 1 outer cell from ``xlo``, two nests sharing outer cells, a missing ``nest..hi``, an unknown ``nest..*`` key, ``io.write_checkpoint = 0``, ``steady.stage = none`` and a nest whose narrowest box is narrower than ``steady.line_overlap``: each stops the run before the outer domain starts, naming the key. * - ``abort_nests_outer_not_steady`` - The outer domain stopped at ``steady.max_iterations = 3``: STEER stops after the outer run, names its last checkpoint, and runs no nest. * - ``abort_nests_nest_not_steady`` - At ``steady.max_iterations = 90`` the outer domain (84 iterations) and the ``edge`` nest (73) reach steady and the ``hill`` nest (96) does not: both nests run, then STEER stops naming ``nest.hill`` and its last checkpoint. * - ``abort_nests_stf`` - ``Steep_Ridge_Thin_Cell`` (an Agnesi ridge, ``terrain.smoothing`` at its default 1) with a nest: stops before the run, naming ``terrain.smoothing``. * - ``rt_nests_outer_init_keys`` - The ``rt_nests_one_process`` deck with one nest and ``init.z_agl_min = 5``, a key of the outer profile first guess: the nest runs (it does not check the outer deck's ``init.*`` keys). * - ``rt_nests_two_way`` - Two-way nests (``Tests/Canonical_RANS/Nests_Two_Way``; ``nest.feedback = defect``): a 100 m Agnesi hill (half-width 150 m) on 50 m outer cells, the uniform 25 m run as the reference, on two ranks with the GPU-CI flags. With the nest ``hill`` and again with the touching nests ``crest`` and ``lee``: the joint log's start line, the largest :math:`|S|` per exchange and the steady line; the one-way plotfiles before the joint ones; the RMS of u against the reference over each nest at most 0.5 (``hill``; measured 0.247) or 0.7 (``crest`` 0.418, ``lee`` 0.606) of the one-way one, and over the outer cells outside the footprints at most 0.6 (0.340) or 0.9 (0.801). * - ``rt_nests_relax`` - Two-way nests by relaxation (``Tests/Canonical_RANS/Nests_Two_Way``, ``check_nests_two_way.py --relax``; ``nest.feedback = relax``): the ``rt_nests_two_way`` hill with the nest ``hill``, the defect run beside joint runs at ``nest.feedback_factor`` = 1, 4 and 16, on two ranks with the GPU-CI flags. Each run's start line names the factor; the outer domain minus the restricted nest under the nest (the log's last RMS of u) falls with the factor, and at 16 is at most 0.35 of its value at 1 (measured 0.19); at factor 1 the nest's u RMS against the 25 m run is at most 0.5 of the one-way one (0.41) and the outer domain's outside the footprint at most 0.6 (0.35). Old against new default: a run without the key names 0.5 on its start line, and its nest u RMS is at most 0.8 of the factor-1 run's (measured 0.694) and its outer one at most 1.05 (1.00). About 50 s alone on an Apple M-series laptop (about 2 minutes under ``ctest -j 4``), most of it the factor-16 run (508 exchanges). * - ``rt_nests_relax_consistent`` - Pressure-consistent relaxation (``check_nests_two_way.py --relax-consistent``; ``nest.feedback = relax_consistent``), old against new: the ``rt_nests_relax`` hill with the nest ``hill``, the defect run and ``relax`` at factor 1 beside ``relax_consistent`` at factors 1 and 4, on two ranks with the GPU-CI flags. The start line ends ``with the weighted residual of the target``; at factor 1 the outer domain minus the restricted nest (the log's last RMS of u) is at most 0.25 of ``relax``'s (measured 0.164), and falls from factor 1 to 4; at factor 1 the nest's u RMS against the 25 m run is at most 0.6 of the one-way one (0.515) and the outer domain's outside the footprint at most 0.45 (0.361). With the added term left out (mutant C2) the first bound fails (ratio 1.0). * - ``rt_nests_feedback_flux`` - Conservative nest faces (``Tests/Canonical_RANS/Nests_Two_Way``, ``check_nests_two_way.py --feedback-flux``; ``nest.feedback_flux``), old against new: the ``rt_nests_two_way`` hill, on two ranks with the GPU-CI flags, with the nest ``crest`` ending at x = 900 m on the lee slope, by the defect source alone (``outer``) and with the conservative faces (``nest``), and with the nest ``hill`` (``nest``). Only the ``nest`` runs log the first largest correction and end their joint lines with the ring's (``ring max |C|``). On the crest nest, the ``outer`` run's u RMS against the 25 m run is at least 2.0 times the one-way one (measured 3.31); the ``nest`` run's is at most 1.6 times over the nest (1.22) and 1.25 times over the outer cells outside it (0.96), and at most 0.6 of the ``outer`` run's (0.37 and 0.35). The hill keeps the same two bounds (0.26 and 0.33). * - ``rt_nests_flat_abl_neutral``, ``rt_nests_flat_abl_buoyant``, ``rt_nests_flat_abl_stable``, ``rt_nests_flat_abl_stable_joint`` - Nests on a flat, horizontally uniform ABL (``Tests/Canonical_RANS/Nests_Flat_ABL``, ``check_nests_flat_abl.py``), on two ranks with the GPU-CI flags: the doubly periodic outer domain starts from its steady column and a nest at 2 2 1 covers its middle. Neutral (Churchfield S) and buoyant (Churchfield B) freeze θ at the column's and damp u, v and w towards the column's table with ``nest.damping = outer``; stable (GABLS1, fixed surface flux) solves θ and damps w and θ only. The neutral and buoyant tests run one way then jointly (``nest.feedback = defect``), ``_stable`` one way only and ``_stable_joint`` (label ``nightly``, about 7 minutes) both. Each requires the steady lines (outer, nest, joint); each domain horizontally uniform in u, v and k, to 1e-6 for neutral and buoyant and to 1e-4 for stable on the levels whose mean k is above 1e-4 of the largest (above them k is about 0, u and v are not damped, and the joint run leaves a neutral roll of 4.0e-4 m/s, printed but not bounded); the outer level means within 0.3 m/s, 10 % of the largest k and 0.02 K of the column's; and the nest's level means within 1e-6 m/s (neutral, buoyant) or 2e-4 m/s (stable), 1e-4 of the largest k and 1e-5 K of the outer domain's (measured at most 6.5e-5 m/s, stable joint; 1.1e-7 m/s for neutral and buoyant). Mutants: θ frozen at the sounding in place of the column (the buoyant test, θ 5.1 K and u 1.46 m/s off the column) and the nests' layer cut back to w and θ with ``nest.damping = outer`` (the neutral joint run is not steady after 10000 exchanges; the buoyant nest has rolls of 4.5e-3 m/s). * - ``abort_nests_damping_value``, ``_two_values``, ``_twice``, ``_no_names``, ``_no_effect`` - ``nest.damping = all``; ``= outer w_theta``; given twice; without ``nest.names``; ``outer`` with ``bc.rayleigh_fields = w`` (no layer on u, v or k): each stops the run before the outer domain starts, naming ``nest.damping``. Each is killed by removing its check. * - ``abort_nests_canopy_heat_blend`` - ``nest.names`` with ``simplec.theta = frozen`` and ``canopy.heat_frozen = blend`` (forested escarpment): a nest would blend the outer domain's blended θ again. The run stops before the outer domain starts. Killed by removing the check. * - ``abort_nests_feedback_flux_value``, ``_unused`` - ``nest.feedback_flux = fine``; ``nest`` without ``nest.feedback = defect``: each stops the run before the outer domain starts, naming ``nest.feedback_flux``. * - ``rt_nests_inject`` - Two-way nests by injection (``Tests/Canonical_RANS/Nests_Two_Way``, ``check_nests_two_way.py --inject``; ``nest.feedback = inject``): the ``rt_nests_two_way`` hill with the nest ``hill``, the defect run beside a joint run at the default ``nest.feedback_factor`` (0.5), on two ranks with the GPU-CI flags. The start line names the factor and each exchange logs the outer state minus the injected nest; the nest's u RMS against the 25 m run is at most 0.55 of the one-way one (measured 0.513) and the outer domain's outside the footprint at most 0.42 (0.377). About 30 s. Mutant: the blend's weight forced to 0 (no feedback) fails it. * - ``abort_nests_feedback_factor``, ``_factor_nan``, ``_factor_unused``, ``_relax_damping``, ``abort_nests_inject_factor`` - ``nest.feedback_factor = 0``; ``= nan``; ``= 2`` with ``nest.feedback = defect``; ``relax`` with a Rayleigh layer on u, v and k; ``= 2`` with ``nest.feedback = inject`` (above 1): each stops the run before the outer domain starts, naming the key. * - ``abort_nests_relax_consistent_feedback_flux``, ``_factor`` - ``nest.feedback = relax_consistent`` with ``nest.feedback_flux = nest``; with ``nest.feedback_factor = -1``: each stops the run before the outer domain starts, naming the key, and not as an unknown ``nest.feedback`` value. * - ``abort_nests_inject_mlmg``, ``_periodic``, ``_feedback_flux`` - ``nest.feedback = inject`` with ``solver.poisson_backend = mlmg``; with a nest across the periodic y of the outer deck; with ``nest.feedback_flux = nest`` (the conservative faces are the defect source's): each stops the run before the outer domain starts, naming the key. * - ``rt_nests_joint_restart``, ``rt_nests_joint_restart_relax``, ``rt_nests_joint_restart_relax_consistent``, ``rt_nests_joint_restart_inject`` - A joint run stopped after 150 exchanges (``steady.max_iterations``) and restarted from the joint record its message names (``Tests/Canonical_RANS/Nests_Two_Way/check_joint_restart.py``): the record has the feedback, 150 exchanges, the factor and the nests in order; the restart logs ``restarted after exchange 150``, is steady after the straight run's exchanges with each domain's iterations over the run equal, and the last plotfile and checkpoint of every domain (state, node heights, closure history, nest faces, joint record; not the driver record's wall times) are byte for byte the straight run's. The nests ``crest`` and ``lee`` with the defect source on 3 ranks (254 exchanges); the nest ``hill`` with the relaxation on 2 ranks, stopped after 140 (158, at the default factor 0.5), with ``relax_consistent`` on 2 ranks, stopped after 140 (169; the added term is rebuilt from :math:`q^*`), and with the injection on 2 ranks, stopped after 150 (344). With the full injection after the joint loop also applied to a run stopped before steady, the inject restart is steady one exchange early, and fails. Mutants: with AMReX's default rank order for a joint nest's boxes (which follows each rank's memory in use) the relax test fails (the nest's plotfile differs; the 3-rank defect test passes by chance); without the ghost fill after the faces' refresh both fail (the outer plotfile differs, by up to 3.5e-12 in theta). The relax test also restarts for one exchange with ``nest.feedback_factor = 0.75``: the log gives 0.5 and 0.75 and says the window fills again, and the record it writes holds 0.75. One more such restart, from the record rewritten as version 2, logs that it holds no factor, restores the window and writes a version 3 record with 0.75. Mutants: the restart compared with the recorded factor in place of the deck's, a factor of 1 written for every mode, and the prior record's factor written back after a restart, each fail it. * - ``abort_nests_joint_restart_names``, ``_iterations``, ``_version``, ``_missing`` - ``io.restart`` with a joint record (written by the configure step into ``joint_records/``) that names the nest ``other`` for ``nest.names = a``; one of 5 exchanges with ``steady.max_iterations = 5``; one of version 4; one that names a nest checkpoint that is not there: each stops the run before the outer domain starts, naming ``io.restart``. * - ``abort_nests_feedback_value``, ``_no_nests``, ``_newton``, ``_damping``, ``_odd_boxes``, ``_narrow`` - ``nest.feedback = average`` (the message lists none, defect, relax, relax_consistent and inject); ``defect`` without ``nest.names``; with ``steady.stage = simplec_newton``; with a Rayleigh layer on u, v and k; with ``mesh.max_grid_size = 15 12``, which splits the nest's 32 cells into boxes of 11, 11 and 10; with a nest 4 outer cells wide in x: each stops the run before the outer domain starts, naming ``nest.feedback``. * - ``rt_bc_neutral_flat``, ``rt_bc_neutral_flat_matches`` - ``boundary_fluxes`` on ERF's Neutral_ABL_Flat mesh (8 × 8 × 64, 1000 m) with a fixed log-law state (u* = 0.35 m/s, z₀ = 0.1 m, 15°), the surface layer on the ground and a slip top: u* recovered at every ground cell to 1e-10, the ground stress :math:`u_*^2(\cos, \sin)` to 1e-10, :math:`k_w = u_*^2/C_{\mu 0}^2`; the residual of every cell equals its closed form (``Tests/Discretization/Boundary_Fluxes/check_bc.py``: arithmetic face ν times the log law's differences, the wall flux below, no stress through the slip top) to 1e-6 of :math:`u_*^2/\Delta z` for u and v (1e-13 measured) and 1e-9 K/s for θ (the sounding's diffusion with the top gradient), with the first cell's truncation −0.0971 and the top cell's lost flux +1.000 of :math:`u_*^2\cos/\Delta z` pinned; R_k and R_w zero; every field finite. The plotfile against ``Tests/Discretization/Boundary_Fluxes/Gold/bc_neutral_flat_plt00000`` at relative 1e-10 (a gold written by STEER). Double precision only. * - ``rt_closure_column``, ``rt_closure_column_matches`` - ``closure_column`` on ERF's Neutral_ABL_Flat mesh (8 × 8 × 64, neutral) with the wall law's equilibrium state (u* = 0.35 m/s, z₀ = 0.1 m, k = u*²/C_μ0²), the uncapped geometric length and the logarithmic face mean (``Tests/Discretization/Closure_Column/check_closure.py``): ν_t = κ u* (z + z₀) and L = κ (z + z₀) at every cell (1e-9), u* recovered (1e-10), R_u and R_v zero below the top cell (1e-10 of u*²/Δz; the top cell loses u*²/Δz through the slip top, 1e-8), P_s, ε and R_k = −(P_s − ε) equal to their closed forms from the discrete strain (1e-9 of ε; the second cell's P_s/ε = 1.45 is the centred difference of ln over 2Δz), R_θ and R_w zero. The plotfile against ``Tests/Discretization/Closure_Column/Gold/closure_column_plt00000`` at relative 1e-10 (a gold written by STEER). Double precision only. * - ``rt_steady_column`` - The application on the 1-D neutral column (``Tests/Canonical_RANS/Neutral_Column/inputs_steady_column``: 4 × 4 × 64, 1000 m, surface layer z₀ = 0.1 m, slip top, uniform θ, the force F = u*²/H with u* = 0.35 m/s, the log law with u* = 0.25 m/s as the first guess, CFL cap 50) to the steady verdict (6 orders, 1e-8). ``Tests/Canonical_RANS/Neutral_Column/check_steady_column.py``: the verdict; the residual of u down 6 orders from its reference (the ``Driver`` history of the checkpoint); mean u* = √(FH) to 1e-4 (the force balance); the first cell's speed the wall law's (1e-6); the second cell within 1 % of the log law and the lowest eight within 2 % (the stress of the force-driven column is u*²(1 − z/H) and the discrete strain overshoots, ``rt_closure_column``); the wall k = u*²/C_μ0² (1e-6); ν_t of the second cell within 6 % of κ u* (z + z₀); every column identical (1e-10); every field finite. Measured: 2231 iterations, u* = 0.3499999, second cell 0.9 % low, cells 2–7 1.3–1.9 % low. Double precision only (six orders and 1e-8 are below single's floor); the restart chain below runs in both. * - ``rt_steady_column_constants`` - The column of ``rt_steady_column`` with ``turb.kappa = 0.40`` and ``turb.Cmu0 = 0.55``: the same checks, with the wall law, the wall k and ν_t taken with those constants (``--kappa``, ``--cmu0``). The wall model now takes the closure's constants; before, it kept 0.41 and 0.5562, and the first cell was 2.4 % off the wall law (0.40/0.41 − 1). Double precision only. * - ``rt_steady_column_rough``, ``rt_steady_column_rough_floor_one`` - The column on rough ground (``inputs_steady_column_rough``: 4 × 4 × 64, 1 m layers, 64 m, z₀ = 0.5 m, F = u*²/H with u* = √0.125 = 0.354 m/s). The first centre, 0.5 m, is below (e − 1) z₀, where ln((d + z₀)/z₀) = ln 2 < 1. With the default ``bc.surface_denominator_floor = log_law``: the checks of ``rt_steady_column``, with the cells above the first measured against the profile of the shallow column's stress u*²(1 − z/H) (``--stress-profile``, a closed form). With ``one``: the first cell's speed is (u*/κ) max(ln((z + z₀)/z₀), 1) to 1e-6, 1/ln 2 = 1.44 times the log law's. Measured: 347 and 411 iterations; log_law second cell 0.70 % low, lowest eight within 0.92 %. The earlier wall law (the ``one`` floor) fails the first (first cell 0.862 m/s against 0.598). Double precision only. * - ``rt_steady_column_restart_first``, ``…_continued``, ``…_straight``, ``…_matches`` - 40 iterations of the column (``inputs_steady_column_restart``, the first guess on the command line), continued to 80 from the checkpoint (the driver and closure histories restored, the inflow keys of the deck accepted on the restart) against 80 straight on the same two ranks: the plotfiles identical under ``amrex_fcompare`` at relative 1e-14. * - ``rt_steady_hill2d_restart_first``, ``…_continued``, ``…_straight``, ``…_matches`` - The same chain over terrain: 5 iterations of the 2-D hill (``inputs_steady_hill2d_restart``), continued to 10 from the checkpoint, against 10 straight on two ranks: the plotfiles identical under ``amrex_fcompare`` at relative 1e-14. The stage fills the ghost cells before the first step, whose local Δτ reads u and v below the ground and above the top (Ω on those faces). Without that fill the runs differ by 8.5e-4 (v); with it but with a fill that is not a fixed point (before the wall model took the ground cell's w from the no-flux rule), by 1.5e-12. Both fail the test. Labels ``regression;smoke``, about 1.5 s on two ranks. * - ``rt_coriolis_repeat_first``, ``…_second``, ``…_plt_matches``, ``…_turb_matches`` - The 2-D hill with Coriolis (``inputs_steady_hill2d_restart``, ``steady.max_iterations=40``, ``init.first_guess=profile``) for 40 iterations, from empty directories, twice on the same two ranks and layout: the plotfiles and the turbulence plotfiles (residual fields, wall state) identical at zero tolerance. The Coriolis coupling's level mean of the other residual is a fixed-order sum since #60; before, the faces were added atomically, in an order that can change between runs on a GPU: with that sum put back, 5 of 5 pairs differed on Kestrel's H100s (up to 3.9e-13 relative in v, at nearly every point). On a CPU two runs agree either way (no OpenMP; two ranks' sums add in a fixed order): the test is for the nightly H100 job (:doc:`ci`). Labels ``regression;smoke``. * - ``rt_default_geom_lscale`` - The default of ``turb.max_geom_lscale`` through the application (``Tests/Canonical_RANS/Neutral_ABL_Flat/check_default_cap.py``): three runs of 40 iterations on the deck without its cap line. No key and 100 m are identical in every field; 30 m (the default before November 2026) differs in :math:`k` by more than 1 % of the largest :math:`k` (measured 0.127 against 0.374 m²/s²). Mutant: the default put back to 30 fails it. Double precision only. * - ``rt_steady_neutral_flat`` - The application on ERF's Neutral_ABL_Flat (``Tests/Canonical_RANS/Neutral_ABL_Flat/inputs_steady_neutral_flat``: 8 × 8 × 64, geostrophic wind 10 m/s at latitude 90°, f = 1e-4 1/s, the sounding's inversion from 700 m, slip top with 0.03 K/m, z₀ = 0.1 m, ERF's closure defaults; four sweeps, CFL cap 2, the log law with u* = 0.35 m/s as the first guess) to the steady verdict. ``Tests/Canonical_RANS/Neutral_ABL_Flat/check_steady_neutral.py``: the verdict, then ERF's own ``check_neutral.py --physics`` (``extern_erf/``) on the turbulence plotfile: every field finite, k ≥ 0, the capped κ(z + z₀) length (1e-3), the AL01 stability functions of R_t (1e-6), K_mv = c_μ √k L (5 %), ε = C_μ0³ k^1.5/L (5 %), the wall cell's k balance (1 %), u* within 0.35 ± 0.15 m/s, the wall k within 5 % of u*²/C_μ0², the log law in the lowest four cells within 10 %, K_mv of the second cell within 30 % of κ u* z. Measured: the verdict after about 2850 iterations (13 s on two ranks), u* = 0.377 m/s, every ERF check passing, on one to three ranks with both compilers (the bursts of an earlier version of the predictor's rotation step are explained and removed in :doc:`solution_algorithm`). Label ``regression`` (the run time); double only. The 1 % comparison with an ERF reference run is not in this version. * - ``rt_canopy_drag`` - The canopy's drag on the momentum equations, alone (``canopy.tke = off``; ``rt_canopy_tke`` adds the closure's terms) (``Tests/Canonical_RANS/Canopy_Drag``: neutral geostrophic flow over flat ground through a 20 m uniform patch with LAI 3 and a 25 m Lalic–Mihailovic patch with LAI 6, 16 × 16 × 40 cells, periodic, converged to 7 orders and 1e-8). ``check_canopy_drag.py`` runs it with ``canopy.drag_diagonal`` ``derivative`` and ``picard`` to the verdict: u, v, w, p and k of the two steady states agree to 1e-6 of each field's largest value; at 5.3 m, u in the dense patch is at most 0.6 times u on open ground; with ``none`` (the drag explicit) the residual norm is above 1 and above the implicit run's after 20 iterations; with grid sequencing over two levels the steady state is the same to 1e-6; a run of 40 iterations continued to 80 from its checkpoint equals 80 straight, bit for bit, and a restart with ``canopy.drag_diagonal = picard`` is accepted. Measured: 5710 and 5160 iterations, the fields within 1.4e-8 (p) and 2.6e-9 (velocities); with sequencing within 1.2e-8 (p) and 9.2e-11 (velocities); u 1.14 against 2.16 m/s (ratio 0.53); r = 3.1e3 explicit against 0.16 after 20 iterations. About 4 min on two ranks; label ``regression`` (the run time); double only. * - ``rt_homogeneous_canopy`` - A uniform canopy under a pressure gradient (``Tests/Canonical_RANS/Homogeneous_Canopy``): the momentum budget, :math:`U = \sqrt{F/f}` deep in the canopy, the exponential upper canopy, :math:`\beta`, and LAI 10 on 1, 2 and 4 ranks. ``regression``, MPI builds, double only. * - ``rt_forest_edge`` - A forest-clearing-forest pattern (``Tests/Canonical_RANS/Forest_Edge``): the momentum budget, the volume flux, the adjustment length at LAI 2 against Dupont and Brunet (2008), shorter at LAI 5, 1, 2 and 4 ranks. About 12 min, ``regression``, MPI builds, double only. * - ``rt_forested_hill`` - A canopy on cosine hills (``Tests/Canonical_RANS/Forested_Hill``): the lower-canopy balance of Finnigan and Belcher (2004), lee reversal on the geometry of Poggi et al. (2008) at four times its drag, 1, 2 and 4 ranks. About 3 min, ``regression``, MPI builds, double only. * - ``rt_forested_escarpment`` - A dense canopy on steep terrain with an inflow face (``Tests/Canonical_RANS/Forested_Escarpment``: a 200 m tanh escarpment in 2-D, steepest slope 22°, a canopy on the slope, stretched layers, inflow and outflow faces, LU-SGS with grid sequencing at the default CFL cap and step floor; before the floor the deck needed ``steady.cfl_max`` 2, :doc:`canopy`). ``check_forested_escarpment.py``: steady within 300 iterations on 2 ranks with no boundary-zone warning; the 1- and 4-rank runs within 1e-9 (velocities against the largest :math:`|u|`, p and k against their own largest values); 12 m above the ground, u in the forest below half of u upstream; a run of 40 iterations continued to 80 equals 80 straight, bit for bit; with the forest at the inflow face, the inflow-face warning with its count. Measured: 256 iterations on 1, 2 and 4 ranks, differences 1.6e-11 and 4.4e-11, u 0.72 against 3.52 m/s, 24 canopy cells at the inflow face (185 iterations at ``steady.cfl_max`` 2 before the floor). About 1 min on two ranks; label ``regression``; double only; MPI builds. * - ``rt_frozen_theta`` - ``simplec.theta = frozen`` on the forested escarpment with a stable sounding (``inputs_frozen_theta``: 300 K to 1000 m, an 8 K inversion to 1100 m, 3 K/km above). ``check_frozen_theta.py``: steady within 400 iterations on 2 ranks with a θ residual of 0 in every table row; θ at every cell of the final plotfile equals the sounding at the cell centre's height above the ground (1e-9 K), and on each sequenced level the logged minimum, maximum and mean equal the sounding's over that level's cells, the coarse levels on their own smoothed ground (the level plotfile's ``z_phys_nd``); the turbulence plotfile's ``R_theta`` is 0; the 4-rank run within 1e-9; with θ solved (the default) its residual is not 0. A second deck, ``inputs_frozen_theta_file``, takes the inflow from a table the script writes, whose θ (stable from the ground) differs from the deck's sounding, with ``init.z_agl_min = 5``, 3 iterations: θ is the table's at the unfloored height on every level (1e-9 K), and every first cell has Rt > 0 (the ground ghosts extend the first two cells; the neutral wall's mirror gives 0). Measured: 209 iterations on 2 and 4 ranks, θ within 6e-14 K, ranks within 1.7e-10. About 40 s on two ranks; label ``regression``; double only; MPI builds. * - ``rt_canopy_tke`` - The canopy terms of the k–L closure on ``Tests/Canonical_RANS/Canopy_Drag``. ``check_canopy_tke.py`` runs it with ``canopy.tke`` on and off to the verdict (and the turbulence plotfile): in every canopy cell :math:`L \le \alpha/f` with the terms on, with equality in some, and ``off`` exceeds it (the check is not vacuous); at the crown of the dense patch the eddy viscosity with the terms is at most 0.1 of that without. Measured: 5586 and 5710 iterations, 176 cells at the cap, :math:`\nu_t` 0.033 against 3.99 m²/s. The local balance :math:`k = \kappa_c|U|^2` is pinned by ``CanopyTke.CappedBalanceIsKappaU2``; at the crown the shear layer above adds production and transport. About 3 min on two ranks; label ``regression``; double only. * - ``rt_canopy_column`` - The column first guess with a uniform canopy (:doc:`initial_conditions`) on ``Tests/Canonical_RANS/Canopy_Drag`` (``inputs_canopy_column``, the drag deck without its canopy line, and a uniform map canopy of 20 m, LAI 3, :math:`C_d` 0.25 the script writes). ``check_canopy_column.py`` runs ``init.first_guess = column`` and ``profile`` to the verdict: the column run's first u and v residuals are below 2e-3 of the profile run's (the column is the stage's steady column: the drag, the k terms and the length cap are the 3-D ones on a flat column), the converged 3-D u and v (the mean over the periodic domain) are within 2e-3 of the column table at every level, relative to the table's largest speed, and the column run takes at most 0.7 of the profile run's iterations; the two-patch canopy with the column guess is refused, naming ``init.first_guess``. Measured: first residuals 1.4e-9 and 4.5e-10 against 1.2 and 2.4e-3, the 3-D column within 1.3e-3, 1082 against 2046 iterations. About 3 min on two ranks; label ``regression``; double only. * - ``rt_thin_cell_w_vnn_cap`` - The w rows' VNN cap on a flat inflow/outflow strip with a 0.7 m first cell (``Tests/Canonical_RANS/Thin_Cell_Flat/inputs_thin_cell_flat``: 16 × 2 × 40, dx/dz₀ = 134, line LU-SGS with two sweeps at CFL 16, the verdict at 6 orders and 5e-7). ``check_w_vnn_cap.py`` runs it with ``simplec.w_vnn_cap`` 0 and 16 to the verdict: both reach it, the banner names the cap, the capped run needs at most a fifth of the iterations, and u, v, w of the two steady states agree to 2e-4 m/s; then a capped run of 40 iterations continued to 80 from its checkpoint equals 80 straight in every field, bit for bit. Measured: 7038 and 322 iterations (22 times fewer; 7038 and 299 before the residual scales used the depth of the layers), u and w within 8.5e-9 and 5.8e-9 m/s (since the Rayleigh layer ends at the mesh's top level; before, 6487 and 687 iterations and 5.6e-5 m/s). About 50 s on two ranks; label ``regression``; double only. * - ``rt_steep_ridge_w_vnn_cap``, ``rt_steep_ridge_w_vnn_cap_margin_off`` - The slope margin of the cap on a steep ridge with a 0.4 m first cell (``Tests/Canonical_RANS/Steep_Ridge_Thin_Cell/inputs_steep_ridge_thin_cell``: 48 × 2 × 40, an Agnesi ridge 150 m high with a 150 m half-width, max slope 32.5°, max aspect ratio 372, the verdict at 3 orders), 3500 iterations at most. With ``simplec.w_vnn_cap = 16`` and the default margin the run is steady (1765 iterations; 1652 before the residual scales used the depth of the layers, 1895 before #44); with the margin off (the cap of #32) the pressure correction stalls and it is not. The run without the cap takes 2881 iterations (3983 before the Rayleigh layer ended at the mesh's top level, when it was not steady at 3500 either). Measured to 6 orders before that change: cap off 14154, margin 2 4142, and the steady states agree to 3e-8 m/s. Double only. * - ``rt_rampart_ground_step`` - The ground step of the mesh report on a 2-D rampart (``Tests/Canonical_RANS/Rampart_2D``): a tanh cliff 900 m high on 200 m cells, 80 × 2 × 60, with line LU-SGS, CFL cap 16 and ``simplec.w_vnn_cap = 16``. Three runs: the 750 m wide cliff under 2 m first layers and the 170 m wide one under 8 m to the verdict, the 170 m wide one under 2 m for one iteration. The reported ground step (62.85, 63.86 and 255.45 first layers) and aspect ratio (109.9 and 27.5) within 0.1 % of their closed forms; the warning above 64 on the last run only; the gentle cliff steady within 400 iterations (260), the steep one within 4000 (2570) and more than four times the gentle count. About 30 s on two ranks; label ``regression``; double only. * - ``rt_terrain_shapes_settle`` - The residual verdict against the wind at 2560 points on analytic 3-D terrain (``Tests/Canonical_RANS/Terrain_Shapes_3D``): a round butte 760 m high on 200 m cells, 80 × 64 × 40, 8 m first layers, with line LU-SGS, CFL cap 16 and ``simplec.w_vnn_cap = 16`` and ``steady.probes_file``. The 32° butte reaches the verdict within 250 iterations (136) with no ground-step warning. The 65° butte prints the warning (94) and has no verdict at 200 iterations, while every point stays within 0.5 m/s of the mean of rows 151 to 200 from iteration 40 at the latest (26) and within 0.25 m/s from iteration 100 (59), and no point moves more than 0.2 m/s between iterations 100 and 200 (0.087). The gentle butte's points are within 0.25 m/s of its last row from iteration 40 (29). The first guess is more than 1 m/s from row 200 somewhere, and the gentle butte's first probe ends within 0.02 m/s of the inflow log law at its cell centre (9.466 m/s at 72.65 m). Mutant: ``steady.cfl_max = 2`` gives 48 and 53 and fails both limits of 40. One to two minutes on two ranks; label ``regression``; double only. The matrix of fourteen shapes on 100 m cells is run by hand (the case's README). * - ``rt_aspect_ratio_hill`` - Thin first cells on a 2-D Agnesi ridge (``Tests/Canonical_RANS/Aspect_Ratio_Hill_2D``: 100 m high, 250 m half-width, dx = 100 m, the recommended setting of the realizability sensor): ``aspect_ratio_sweep.py --check`` runs dx/dz1 = 10, 100 and 200 and requires a relative residual below 1e-4 within 400 iterations (173, 161 and 284 measured). Without ``simplec.w_vnn_cap`` dx/dz1 = 100 and 200 do not reach it. Label ``regression``; double only. * - ``outflow_steep_terrain_prepare``, ``rt_outflow_steep_terrain_flat``, ``rt_outflow_steep_terrain_cut``, ``rt_outflow_steep_terrain_from_velocity`` - Steep terrain at an outflow face (``Tests/Canonical_RANS/Outflow_Steep_Terrain``): a 2-D domain ending on the steepest part of a rising cos² ridge. With the terrain levelled at the outflow face (the slope stays 26° just inside) the realizability limit is steady within 400 iterations (162 measured); with the face cutting the slope it is steady too (148 measured), the ghost cells' transport fluxes being the mirror image of the cells inside (``bc.outflow_transport = mirror``, :doc:`boundary_conditions`). ``_from_velocity`` keeps the condition up to v1.0.0 reachable: with ``bc.outflow_transport = from_velocity`` the cut slope alternates between two states (relative residual 0.176, checked above 0.1 at iteration 400); it is the mutant of ``_cut``. The fixture writes the two terrain files. Label ``regression``; double only. * - ``rt_steady_hill2d`` - ERF's Neutral_Hill_2D (``Tests/Canonical_RANS/Neutral_Hill_2D/inputs_steady_hill2d``: 128 × 1 × 64, the Witch of Agnesi of 100 m and 500 m, the flat deck's sounding and forcing, Rayleigh damping of w and θ from 700 m, 16 sweeps, CFL cap 4) to the steady verdict with a two-order drop of the u residual; ``Tests/Supporting_Files/check_steady_hill.py`` then runs ERF's ``check_hill.py --physics`` on the turbulence plotfile: the wall distance against the exact distance to the ridge, finite fields, k ≥ 0, the length-scale bound, the wall cell's k balance, the crest speed-up in the three lowest cells within 0.2–0.8 (Jackson and Hunt's 0.4), the speed-up positive in the lowest ten, the upstream u* within 0.25–0.55 m/s, the upstream log law in the lowest three cells within 15 %. Measured: the verdict after 4576 iterations (49 s on two ranks), speed-up 0.59/0.50/0.43, u* = 0.354 m/s, every check passing (:doc:`solution_algorithm`). Label ``regression``; double only. * - ``rt_unsteady_hill2d`` - The same hill as unsteady RANS (``Tests/Canonical_RANS/Unsteady_Hill_2D``): ten steps of 60 s from the log-law first guess, each to two orders below its first residual (at most 60 inner iterations), on 2, 1 and 4 ranks. Checks: ten steps of 60 s ending at 600 s, none at ``unsteady.max_inner``; the same inner counts on 1 and 4 ranks (measured 48 48 21 18 18 19 19 19 19 19) and the same fields within 1e-9 (measured 7e-14 and 0); one step of 1e-3 s converges within 20 inner iterations (measured 12; 60, the limit, without the time term in the stage); the plotfile's header carries 600 s; u at the hill top 50 m above the ground moves by more than 0.1 m/s over 600 s (0.134). It checks the driver's bookkeeping and rank independence, not a measured or closed-form answer (the order in :math:`\Delta t` is the unit test's). The outputs, with four probes, the averages from 90 s and a plotfile and a checkpoint every five steps: 11 probe rows; plotfiles at 300 and 600 s whose averages at each probe's cell equal the two-pass weighted mean and variance of its rows; the restart from the 2-rank checkpoint of step 5 continues at 300 s with steps 6 to 10 and the same inner counts, and its final plotfile and probe file are byte for byte the straight run's, as is its final checkpoint except the driver history's wall-clock columns. About 16 s. Label ``regression``; MPI builds; double only. * - ``rt_urans_mean_option`` - With ``rt_urans_mean_option_clean`` and ``rt_urans_mean_option_run``: the time-mean option of the column reader (``tools/askervein_lines.py``, ``Columns(mean=True)``; ``--mean`` of its ``sample`` and ``check`` and of ``rushil.py compare`` and ``plot``), which reads ``u_mean``, ``v_mean`` in place of ``u``, ``v``. Five steps of 60 s of the unsteady 2-D hill with two cells in y, on 2 ranks, with ``unsteady.average_start = 0`` and a plotfile every step. Checks (``Tests/Real_Terrain/URANS_Averages/check_mean_option.py``): in three columns the mean read with the option equals the arithmetic mean of the five steps' fields within 1e-10 of the largest \|u\| (measured 1.8e-15 m/s), and differs from the last step by more than 1e-3 of it (measured 0.207 m/s of 8.03 m/s); ``sample --mean`` at two masts gives the speed of those mean columns (4e-7 m/s) and differs from plain ``sample`` (0.084 m/s); ``check --mean`` passes against those speeds and plain ``check`` fails; ``rushil.py compare --mean`` prints the reference speed of the mean columns (4.049 m/s; 4.001 m/s without). Mutants that fail: the option ignored in the reader (``u``, ``v`` read); ``u_mean`` read for ``v_mean``; ``mean`` not passed on in ``sample``, in ``check``, in ``rushil.py compare``. ``rushil.py plot --mean`` is not run (it needs matplotlib). The Hill 5 and Askervein comparisons of :ref:`urans-time-mean` are not CTests. Label ``regression;smoke``; double only. * - ``rt_steady_hill2d_probes``, ``abort_steady_probes_with_unsteady``, ``abort_steady_probes_missing``, ``abort_steady_probes_empty`` - ``steady.probes_file`` on the steady 2-D hill with the four probes of the unsteady hill (``check_steady_probes.py``, 2 ranks). Ten iterations: the file is ``_steady_probes.csv`` with the column line ``iteration, p1_u, …`` and the rows 0 to 10; row 0 is the first guess (v = 0 and θ = 300 K exactly) and row 1 is not; row 10 is the final plotfile at the probes' cells (1e-12); every row differs from the one before. Five iterations and a restart to ten: the log keeps the rows up to iteration 5, the file continues byte for byte, has every iteration once, and rows 6 to 10 are the straight run's (1e-9). The three refusals: the key with ``steady.stage = unsteady``, a missing file named with ``steady.probes_file``, and an empty name. Unit test ``UnsteadyOutput.ParseProbes`` and the probe file test pin the key in the messages, the two file names and the two column lines, and that a restart on the iteration axis drops the rows after the checkpoint and leaves no temporary file. The CTest is registered in double precision only (θ leaves 300 K by less than single precision resolves). Mutants that fail: the row numbered by the iterations of this run instead of the run's count; the restart not keeping the file; the column line ``t``; no row before the first iteration; the unsteady file's name; no row per iteration. Label ``regression;smoke``. * - ``rt_unsteady_hill2d_from_steady`` - The unsteady deck restarted from the 5-iteration checkpoint of ``rt_steady_hill2d_restart_first``: two steps of 60 s to 120 s, the restart and the summary line matched. Label ``regression;smoke``. * - ``abort_unsteady_stop_time_missing``, ``abort_unsteady_dt_and_cfl``, ``abort_unsteady_steady_stop_keys``, ``abort_unsteady_hybrid``, ``abort_unsteady_key_without_stage`` - The refusals of ``steady.stage = unsteady``, each message matched: ``unsteady.stop_time`` missing, ``unsteady.dt`` with ``unsteady.cfl``, ``steady.max_iterations`` and ``steady.sequencing = 1`` with the unsteady stage, ``convection.hybrid_sigma_max`` > 0 with it, and ``unsteady.dt`` in a steady run. Label ``regression;smoke``. * - ``abort_unsteady_output_ranges``, ``abort_unsteady_interval_needs_output``, ``abort_unsteady_probes_missing``, ``abort_unsteady_probe_outside`` - The refusals of the output keys, each message matched: ``unsteady.average_start`` after the stop time and negative intervals; an interval with ``io.write_plotfile`` or ``io.write_checkpoint`` = 0; a probe file that does not exist; a probe outside the domain (two ranks). Label ``regression;smoke``. * - ``rt_unsteady_hill2d_chk``, ``abort_unsteady_restart_average_start``, ``abort_unsteady_restart_past_stop``, ``abort_unsteady_restart_probes`` - Two steps of 60 s with the four probes that write ``chk00096`` with its ``Unsteady`` record, and the refusals of a restart from it: another ``unsteady.average_start``, ``unsteady.stop_time`` not after the checkpoint's 120 s, and another probe file (``probes_restart_hill2d.txt``) than the one the probe CSV was written for. Label ``regression;smoke``. * - ``rt_steady_hill2d_lusgs`` - The 2-D hill with the line LU-SGS sweeps (``inputs_steady_hill2d_lusgs``: two symmetric sweeps, CFL cap 16) to the verdict with a two-order drop and ERF's ``check_hill.py --physics``. Measured: 3048 iterations (23 s on two ranks), every check passing, the steady state within the convergence tolerance of the Jacobi deck's (:doc:`results`). Label ``regression``; double only; it runs in the column test's directory (``run/rt_steady_hill2d_column``) so the spin-up check can read both histories. * - ``rt_steady_hill2d_column``, ``rt_column_guess_spinup`` - The 2-D hill LU-SGS deck started from the converged column (``inputs_steady_hill2d_column``) to the verdict with a two-order drop and ERF's ``check_hill.py --physics``; then ``Tests/Canonical_RANS/Neutral_Hill_2D/check_column_guess.py`` on the Driver histories of the profile run (``rt_steady_hill2d_lusgs``, now in the same run directory) and the column run: at iteration 300 the column run's u and v residuals at most half the profile run's, and fewer iterations to the verdict. Measured: 1237 iterations (60 under ctest, machine shared s on two ranks) against 3048 (1231 under ctest), residual ratios at iteration 300 of 0.084 (u) and 0.060 (v), every ERF check passing. Label ``regression``; double only. * - ``rt_steady_hill3d`` - ERF's Neutral_Hill_3D (``inputs_steady_hill3d``: 64 × 64 × 20, the hill of revolution, damping from 550 m, 16 sweeps, cap 4) to the verdict with ``check_hill3d.py --physics`` (the 3-D checks, speed-up against 1.6 h/L). Measured: 2092 iterations (148 s on four ranks), every check passing. Label ``nightly`` (minutes); double only. * - ``rt_steady_hill3d_neutral_zjacobi``, ``rt_steady_hill3d_neutral_lusgs``, ``rt_steady_hill3d_neutral_matches`` - A truly neutral Hill_3D (``inputs_steady_hill3d_neutral``: 32 × 32 × 16 over the same domain, θ = 300 K, ``forcing.gravity = 0``, damping of w alone, four boxes) run to near round-off (every residual below 1e-11 and eight orders down; ten orders put the θ and p residuals, which carry only the divergence, under the rounding floor once ``gmres_mlmg`` became the default) with 16 z-line Jacobi sweeps at a cap of 4 and with the box-local line LU-SGS sweeps (``inputs_steady_hill3d_neutral_lusgs``: zero ghosts, overlap 2, the diagonal ordering, two sweeps, cap 16); ``Tests/Canonical_RANS/Truly_Neutral_Hill_3D/check_line_match.py`` compares the two plotfiles at 1e-8 of each field's maximum (``rt_steady_hill3d_neutral_clean`` empties the run directories first, so a stale plotfile cannot be compared, and the checker requires exactly one plotfile per run). The conventionally neutral deck has no fixed point to this tolerance (it keeps entraining the inversion), hence the variant. Measured: 3495 iterations (70 s on four ranks) against 1792 (32 s); u, v, w, p and k agree to 9e-10 absolute (at most 3e-8 of the tolerance scale). θ has a free constant (no θ condition, no gravity) that drifts by 1e-4 K at round-off, so θ is compared after subtracting each run's mean: 3e-11 K. Label ``nightly``; double only. * - ``rt_poisson_default_gmres_fft``, ``rt_poisson_default_matches`` - The default ``solver.poisson_backend = gmres_mlmg`` against the previous default: the line LU-SGS deck of ``rt_steady_hill3d_neutral_lusgs`` run again with ``gmres_fft`` (``run/rt_steady_hill3d_neutral/lusgs_fft``) to round-off; ``check_line_match.py`` (the case folder) compares it with ``rt_steady_hill3d_neutral_lusgs`` (now ``gmres_mlmg``, the log pattern ``pressure gmres_mlmg`` checked) at 1e-8 of each field's maximum. Measured: both stop at 1789 iterations; u, v, w, p and k agree to 2.2e-13 absolute or better, θ − mean to 2.4e-11 K. Label ``nightly``; double only. * - ``rt_steady_hill3d_neutral_sequencing``, ``rt_steady_hill3d_neutral_sequencing_matches`` - The deck of ``rt_steady_hill3d_neutral_zjacobi`` with ``mesh.hierarchy_levels = 3`` and ``steady.sequencing = 1`` (8 × 8 and 16 × 16 to the loose stop, then 32 × 32 to round-off), its log checked for the loose stops of levels 2 and 1, the strict verdict and the summary table; ``check_line_match.py`` compares its plotfile with ``rt_steady_hill3d_neutral_zjacobi`` at 1e-8 of each field's maximum (the per-level plotfiles ``…_plt_level_`` are not counted). Measured: see :doc:`solution_algorithm` (grid sequencing). Label ``nightly``; double only. * - ``rt_steady_hill3d_sequencing`` - ``inputs_steady_hill3d`` with three levels (16 × 16, 32 × 32, 64 × 64) and sequencing, with the checks of ``rt_steady_hill3d``: the steady verdict, a two-order drop of the u residual from the criterion's reference (the coarsest level's; ``check_steady_hill.py`` reads it from the checkpoint, which for a run without sequencing is the largest of the first 100 residuals, as before) and ERF's ``check_hill3d.py --physics``. Label ``nightly``; double only. * - ``rt_steady_askervein`` - Askervein on the ERF grid of ``rt_init_askervein`` (``inputs_steady_askervein``: 30 × 30 × 18, the log-law inflow, outflow, slip sides, no Coriolis, four sweeps, cap 2) to the steady verdict. Measured: 175 iterations (156 with ``bc.inflow_tke_length = unbounded``). ``init.alpha_v = 0.5``, so the log must show the projection on ``gmres_fft`` and the stage on ``gmres_mlmg``. The 5 % comparison with ERF's URANS on lines A and AA is not in this version (Kestrel). Labels ``regression;smoke``; double only. * - ``rt_precursor_askervein_cnbl``, ``rt_precursor_askervein_cnbl_fixed``, ``rt_precursor_askervein_cnbl_table`` - The precursor column of the conventionally neutral Askervein case (``inputs_precursor_askervein_cnbl``: 4 × 4 × 26 on Askervein's 20 m × 1.08 levels, z0 = 0.03 m, the flat case's sounding, Coriolis at 57.2 N, geostrophic wind (17.028798, −7.380863) m/s) to the steady verdict. ``rt_precursor_askervein_cnbl_fixed`` runs the same deck to the step in the table's header (11087), with an unreachable drop criterion (the deck is written at configure time; a regenerated table carries its step). ``tools/make_inflow_table.py --check`` on that run: the plotfile step equal to the table's, the 10 m wind within 0.01° of +x, u* within 1e-3 of 0.6 m/s, and ``Tests/Real_Terrain/Askervein_CNBL/askervein_cnbl_inflow.txt`` within 1e-3 of the planar means (u, v relative to the geostrophic speed, θ in K, k relative to its maximum). **Why a fixed step.** Under the capping inversion θ has no fixed point: the inversion base cools by 1.35e-4 K per iteration as it rises, and the mixed layer warms by 1.5e-5 K. The verdict comes when the k residual leaves a limit cycle of about 600 iterations (the Poisson iteration count switching between 5 and 6), at an iteration that depends on the compiler's rounding: 11087 with Apple clang and 11073 with gcc-16, 1.7e-3 K apart in θ. At step 11087 the two builds agree to 2e-4 K. A build that left the cycle one cycle later would fail the table check, and the verdict run would show its step. Label ``regression``; double only. * - ``rt_steady_askervein_cnbl`` - Askervein in a conventionally neutral boundary layer (``inputs_steady_askervein_cnbl``: 30 × 30 × 26 to 1599 m, the precursor's table as inflow on xlo and yhi, outflow on xhi and ylo, Rayleigh damping of w and θ above 1200 m, four sweeps, cap 2) to the steady verdict. Measured: 220 iterations (175 for ``rt_steady_askervein``); u residual down four orders. Label ``regression``; double only. * - ``rt_askervein_210_inflow_table`` - ``Tests/Real_Terrain/Askervein_210/askervein_210_inflow.txt`` is the table ``tools/erf_inflow_table.py`` makes from ERF's Askervein inflow (``extern_erf/inflow_powerlaw.txt``, wind from 210°; w dropped, θ = 300 K, a z = 0 row added), to 1e-9. Label ``regression;smoke``; double only. * - ``rt_steady_askervein_210``, ``rt_askervein_210_erf_lines``, ``rt_askervein_210_lines_gold``, ``rt_askervein_210_level_history`` - Askervein with ERF's setup (``inputs_steady_askervein_210``: 300 × 300 × 18, the 210° inflow through xlo and ylo, outflow through xhi and yhi, Rayleigh damping of w in the top 250 m) with the line LU-SGS configuration (``steady.sweep = lusgs`` with its default CFL cap, the default reference window, grid sequencing over two levels, the last three on the command line) to the steady verdict; measured: 95 level-0 iterations and 34 on level 1 (four ranks). The 10 m speeds on lines A and AA (``tools/askervein_lines.py check``) must be within 5 % of ERF's URANS average (``Gold/erf_urans_lines_10m.csv``) up to 300 m past the hilltop, and within 10 % at the four lee masts beyond (measured: 4.31 % and 9.85 %; the lee margin is 0.15 points, so a change of the closure, the wall model or the advection that crosses it needs a review, not a wider tolerance. It was 4.00 % and 9.21 % before the wall model took the ground cell's wind parallel to the ground; against the 40 measured masts that change lowers the RMSE from 1.28 to 1.27 m/s and the lee bias from +2.39 to +2.36 m/s). ``rt_askervein_210_lines_gold`` checks the same lines against ``Gold/askervein_210_lines.csv`` to 1e-4 (the ERF tolerances alone would pass the run with the inflow k of ``bc.inflow_tke_length = unbounded``). The level history (cells, stop reasons, iterations within 10 %) and the stage switches must match ``Gold/askervein_210_level_history.json``. Label ``nightly``; double only. * - ``rt_steady_askervein_210_unbounded``, ``rt_askervein_210_unbounded_matches`` - Old against new for ``bc.inflow_tke_length``: the line LU-SGS run of ``rt_steady_askervein_210`` with the inflow length of before (``unbounded``) reaches that run's lines (``Gold/askervein_210_lines_unbounded.csv``) to 1e-4 (measured: identical to the six digits written, on the same machine). Label ``nightly``; double only. * - ``rt_steady_askervein_210_zjacobi``, ``rt_askervein_210_zjacobi_matches`` - Old against new: the same deck with the z-line Jacobi configuration of ``rt_steady_askervein`` (``zjacobi``, four sweeps, cap 2, a 100-iteration reference, one level; measured: 534 iterations, 565 with ``bc.inflow_tke_length = unbounded``) reaches the line LU-SGS run's lines to 0.1 % (measured: 1e-4 %). Label ``nightly``; double only. * - ``drift_check_selftest`` - The ``extern_erf`` drift check on a throw-away ERF repository (:doc:`extraction`). * - ``cmake_steer_omp_refused`` - A configure with ``-DSTEER_OMP=ON`` (with the parent build's generator and compilers) stops at the top-level check with "STEER_OMP was removed": STEER runs MPI and GPUs, not OpenMP. Label ``unit``. * - ``cmake_gust_omp_refused``, ``cmake_gust_option_alias``, ``cmake_steer_option_wins``, ``cmake_oldest_option_wins`` - The option names before the rename to STEER, each configure stopping before AMReX: ``-DGUST_OMP=ON`` is refused like ``-DSTEER_OMP=ON``; ``-DGUST_FFT=OFF`` warns and sets ``STEER_FFT=OFF``; with ``-DSTEER_FFT=OFF -DGUST_FFT=ON`` the new name wins and the old one is ignored with a warning; with ``-DGUST_FFT=ON -DABLSTEADY_FFT=OFF`` the older name wins. Label ``unit``. Mutant: with the given ``STEER_*`` not taking precedence, ``cmake_steer_option_wins`` fails. * - ``input_reference_current``, ``input_reference_selftest`` - ``tools/input_reference.py --check``: ``Tests/inputs_reference`` is what ``--write`` gives from the detailed tables of :doc:`inputs`; every table row names a key and no key appears twice; the quick-reference keys and their literal defaults match the detailed tables; every namespace has a section; and the keys of the tables are the keys the readers in ``Source/`` name (a ``ParmParse`` variable's or temporary's ``query``, ``get``, ``contains`` and ``count`` calls, the readers' key arrays and loop lists, and ``"ns.key"`` literals; a key passed to a helper is found through the reader's key array). The self-test runs the check on a throw-away tree: a key read but not documented (by ``pp``, another variable, a temporary, a key array or a loop list), a row with no reader, a placeholder key not read, malformed and duplicate rows, a quick-reference default that differs, a namespace with no section, a stale reference and a CRLF checkout. Label ``unit``. * - ``speed_difference_selftest`` - ``tools/speed_difference.py`` on hand-made fields: the counts strictly above 0.25, 0.5 and 1 m/s, the column interpolation to other heights (exact for a field linear in z), the 2 × 2 mean, the near-ground mask and the column maximum. Label ``unit``. * - ``nest_placement_selftest`` - ``tools/nest_placement.py`` on analytic terrains (dx 200 m): a channel through the inflow and outflow faces along the wind (clear, covering the nest's share of it) and at 35° (flagged), a 2 km wide one at 35° that the outer cells follow (clear), the 35° site scaled down four times with dx 50 m (the same verdict, every threshold a quarter: misfit 1.25 m, prominence and step rise 6.25 m, margin 500 m), an escarpment crossing the inflow face at 50° (a step, flagged), a ridge crossing only the south and north faces (clear for 270°, flagged for 0° and 180°), a channel bending 600 m beyond the outflow face (a note, not a flag), oblique waves where no position is clear (the warning, exit status 2), the margin kept by ``--recommend`` and noted by ``--nest``, a smooth hill (no high-misfit column), the 60° face-kind rule, the exit status of a check (1 flagged, 0 clear), terrain points that do not cover ``--domain`` and 21 input errors (each exits with status 3 and names the input). Registered when Python has numpy and scipy. Label ``unit``. The one-line mutants of ``tools/nest_placement_mutants.py`` each fail it: P1 angle rule off, P2 fixed thresholds, P3 no steps, P4 only the first wind direction, P5 a bend flags the face, P6 no warning, P7 the margin of before (4 dx), P8 side faces flagged, P9 misfit gate off, P10 a check always exits 0, P11 the face-kind cutoff of before (0.3), P12 terrain smaller than the domain accepted, P13 nest corners off the outer nodes accepted. All 13 are killed. * - ``hybrid_width_selftest`` - ``tools/hybrid_width.py``: the envelope against a direct loop over each node's square (cut and periodic faces), zero width giving the terrain, the envelope never above the terrain, the closed form on a ramp (lowered by :math:`p` cells), the calibration ridges (the gentle ridge at dx 64 m: 0 to 128 m; the steep ridge at dx 32 m: 64 m; the steep ridge at dx 64 m: no width, exit status 2, dx 32 m named), a deck giving the same answer as the arguments and 8 input errors (each exits with status 3 and names the input). Registered when Python has numpy. Label ``unit``. One-line mutants each fail it: no mean pass, the periodic square not wrapped, the slope rule off, the gap rule off, the relief doubled, a missing deck accepted. Dropping the final minimum with the terrain survives: the mean of the minima is never above the terrain, so that minimum only removes round-off (`Hybrid mesh`, :doc:`immersed_terrain`). * - ``rt_bolund_files_converter`` - ``Tests/Real_Terrain/Bolund_Terrain_Files/to_steer_xyz.py selftest`` on small made-up grids: a 3 × 2 grid of heights as an ESRI ASCII grid, a Surfer grid and a point file gives the same points (1e-9); a shift with a crop; the roughness modes (a water level with ``--land-x-min``, land-cover classes); a class without a roughness length and a zero roughness length are refused. Needs NumPy. Label ``unit``. * - ``erf_plotfile_selftest`` - ``extern_erf/erf_plotfile.py`` (a local change, :doc:`extraction`) on hand-made one-box plotfiles in double and float, little- and big-endian: every value read back exactly. The upstream reader fails the two float cases. Label ``unit``. * - ``refavg_snapshots``, ``refavg_build``, ``refavg_verify``, ``refavg_matches`` - ``steer_refavg`` end to end: three copies of the smoke plotfile at 0, 5 and 10 s are archived on 2 ranks with two inputs files; the archive verifies on 3 ranks with the expected metadata, AU and a zero half-window change; the average equals the smoke plotfile at zero tolerance. This checks the round trip; identical snapshots cannot check the weights, which ``Reference.TrapezoidWeights`` and ``Reference.AverageIsTheTrapezoidTimeAverage`` do. * - ``refavg_damage``, ``abort_refavg_damaged``, ``abort_refavg_inputs``, ``abort_refavg_verify_keys`` - A copy of the archive with one bit flipped is refused, naming the file; bad tool inputs stop the tool with each input named; a build key given with ``refavg.verify`` is reported. * - ``versions_check``, ``versions_check_selftest`` - ``external/VERSIONS`` is well formed and its ``amrex`` entry matches the submodule; the self-test shows a mismatch with a throw-away submodule is reported. * - ``kestrel_parse_*``, ``kestrel_dryrun`` - Not registered on Windows. The Kestrel scripts parse; a dry run with stub ``module``/``sbatch``/``srun`` checks the Askervein job script (run length, plot period, no 2-D plotfiles, ranks) and archives a fake finished run, averaging only the 3-D plotfiles in the final window and archiving the inputs but not the run's outputs; a second case with the default prefix ``plt`` keeps its ``plt2d_`` plotfiles out. * - ``kestrel_nightly_dryrun`` - Not registered on Windows. ``tools/kestrel/nightly_gpu.sh`` with stub ``git``, ``module``, ``sbatch``, ``srun``, ``cmake`` and ``ctest``: refused outside an allocation; a passing run builds with ``build_kestrel.sh gpu``, sets ``--gpus-per-task=1;--gpu-bind=none``, runs ``ctest -L smoke`` with a JUnit file, writes ``pass`` and keeps the newest ``STEER_NIGHTLY_KEEP`` logs; a smoke run of ``steer`` without the GPU runtime flags stops the job before the tests; failing tests give ``fail: tests`` and exit 1; a failed fetch gives ``fail: fetch`` in a new log, pruned as well; a second run while one holds the lock is refused; ``submit`` needs ``STEER_ACCOUNT`` and writes a singleton login-shell job that requests the GPUs; a ``STEER_NIGHTLY_GPUS`` other than 3 or 4 is refused, and so is a bad ``GUST_NIGHTLY_GPUS`` (the old name) unless ``STEER_NIGHTLY_GPUS`` is set, which wins. ``GUST_*`` variables of the caller are unset first. Twelve one-line mutants each fail it, and so does the ``GUST_*`` mapping removed. Label ``unit``. * - ``wn2019_timed_run`` - Not registered on Windows. The WindNinja2019 drivers' ``timed_run.sh`` writes one line ``real `` to ``time.txt``, the command's error output to ``err.txt``, returns its exit status and writes ``done`` only on success; an argument with spaces stays whole; ``sweep.sh`` run with stub ``mpirun``, ``steer`` and ``python3`` on a run directory with a space passes the terrain file whole and reports the time; ``run_all.sh`` with the same stubs runs an mc case (no extra argument, the empty array bash 3.2 calls unbound unless spelled ``${extra[@]+…}``) and a rans case with exactly the expected arguments, and skips an unknown case; neither driver calls ``/usr/bin/time``. Eight one-line mutants each fail it. * - ``rt_cylinder_re40_clean``, ``rt_cylinder_re40_run``, ``rt_cylinder_re40`` - The laminar cylinder (``Tests/Canonical_RANS/Cylinder_Laminar``, :doc:`buildings`): ``turb.closure = none`` at Re = 40 with 10 cells per diameter, steady on 2 ranks within 3000 iterations (about 2 minutes); ``compare_cylinder.py`` then requires the drag coefficient in 1.68–1.72, the lift within ±0.01 and the wake length in 1.93–2.00 diameters, bands pinned to this deck. Label ``regression``. The unsteady runs at Re = 40 and 100 are comparison runs, not CTests. * - ``abort_laminar_nu_zero``, ``abort_laminar_kl_key``, ``abort_laminar_cross_checks``, ``abort_laminar_other_options`` - The refusals of ``turb.closure = none`` (same folder), each naming its input: ``turb.nu_molecular = 0``; a k–L key (``turb.Cmu0``, ``turb.face_mean``); ``bc.zlo = surface_layer``, ``buildings.wall_form = fraction_stress`` and ``buildings.wall_tke = on``; ``canopy.type``, ``init.first_guess = column`` and ``steady.stage = simplec_newton``. * - ``abort_force_file_without_stage``, ``force_file_cube_clean``, ``force_file_cube_plain``, ``force_file_cube_file``, ``force_file_cube_bit_identical``, ``force_file_cube_first``, ``force_file_cube_stray_row``, ``force_file_cube_restart``, ``force_file_cube_restart_rows``, ``force_file_cube_restart_no_file``, ``force_file_cube_restart_no_file_rows``, ``force_file_cube_other_header``, ``abort_force_file_restart_header`` - ``buildings.force_file`` (:doc:`buildings`, Force on the buildings). Without a stage the key is refused. On the cube of ``Tests/Canonical_RANS/Building_Cube`` as an unsteady run of four steps of 0.5 s on 2 ranks: the run with the file and the run without it write the same plotfile; a restart at 1 s reproduces the uninterrupted file and drops a row written past the checkpoint; a restart that finds no file starts one at the checkpoint's time; a file with another header is refused. Label ``regression``; the first is also ``smoke``. * - ``abort_canopy_heat_inputs``, ``abort_canopy_heat_celsius``, ``abort_canopy_heat_frozen_unused``, ``rt_canopy_heat`` - The leaves' heat exchange (:doc:`canopy`). The refusals name the input: ``canopy.heat = fixed`` without ``canopy.leaf_theta``; a ``canopy.heat_frozen`` other than ``skip`` or ``blend``; a leaf temperature outside 150–400 K (25, a value in Celsius); ``canopy.heat_frozen`` without ``simplec.theta = frozen``. ``rt_canopy_heat`` (``Tests/Canonical_RANS/Forested_Escarpment``, ``check_canopy_heat.py``, about 2 minutes, label ``regression``): with :math:`\theta` solved and leaves cooler than the air, :math:`\theta` stays between the two and is the same on 2 and 4 ranks; with :math:`\theta` frozen, ``skip`` gives the frozen run bit for bit and ``blend`` changes :math:`\theta` in the canopy only; a run continued from its checkpoint equals the uninterrupted one. ``rt_canopy_heat`` is registered in MPI builds in double precision only. * - ``rt_column_target``, ``rt_column_target_mol`` - The column's target wind carried into the 3-D run (``Tests/Canonical_RANS/Column_Target``, ``check_column_target.py``, ``init.column_target_*``): the 3-D wind at 10 m is the target of 8 m/s to 0.5 %; with a stable column (:math:`L` = 1000 m, ``bc.surface_stability = heat_flux``) the 3-D surface's :math:`L` is 1000 m to 2 %. Label ``regression``. * - ``rt_column_inflow_*``, ``abort_column_inflow_no_record``, ``abort_column_inflow_no_face`` - ``bc.inflow_profile = column`` (``Tests/Canonical_RANS/Column_Inflow``, ``check_inflow_column.py``, 1-2 ranks, about 5 s, labels ``regression;smoke``): a hill run with inflow faces and a target wind gives the column table of the periodic column run to the last bit and the same forcing; its checkpoint holds the table, :math:`z_0` and forcing; a restart from iteration 2 to 4 equals the uninterrupted run bit for bit; a restart with no stage keeps the record in its own checkpoint; a checkpoint without the record and a deck without an inflow face are refused. * - ``abort_no_stage``, ``abort_stage_no_guess``, ``abort_newton_keys_no_stage``, ``abort_inflow_tke_length_value``, ``abort_sequencing_overlap`` - Input checks. Without ``steady.stage`` the solver keys (forcing, convection, SIMPLEC, closure, driver, ``io.turb_plot_file``, Newton keys) are refused as keys with no effect; ``steady.stage = simplec`` needs a first guess; ``bc.inflow_tke_length`` takes ``closure`` or ``unbounded`` only; an LU-SGS overlap that fits level 0's boxes but not a coarse level's stops, naming the level. * - ``rt_sequencing_restart_first``, ``rt_sequencing_z0map`` - ``rt_sequencing_restart_first`` writes the checkpoint of three sequenced iterations that ``rt_sequencing_restart`` continues. ``rt_sequencing_z0map``: on the two-level deck with a roughness map, each level's logged minimum, maximum and geometric mean match the Python values to three significant digits; level 1 is the geometric mean of level 0's 2 × 2 blocks. * - ``rt_iteration_log_full``, ``rt_iteration_table_confidence``, ``abort_iteration_log_value``, ``rt_iteration_table_columns`` - The iteration log (:doc:`output`). ``io.iteration_log = full`` writes the one-line form and no table header; with ``steady.confidence`` a table row adds the confidence share and height; a value other than ``table`` or ``full`` is refused. ``rt_iteration_table_columns`` (label ``regression``, about 15 s) pins the first two rows of the flat neutral case's table, which fixes the column of each residual. * - ``rt_case_setup_flat_sweep``, ``rt_case_setup_flat_nest``, ``rt_case_setup_column_target``, ``rt_case_setup_column_axis``, ``rt_case_setup_hill``, ``rt_case_setup_upstream`` - The case set-up tool end to end (``Tests/Infrastructure/Case_Setup``, :doc:`case_setup`): a YAML file becomes a case folder, its decks pass the deck checker, ``run.sh`` runs STEER on 2 ranks, and the result meets the closed forms the YAML file asks for. Not on Windows; registered only when the configure's Python has PyYAML and numpy. * - ``rt_library_hill`` - The wind library (``Tests/Infrastructure/Library_Hill``, :doc:`case_setup`): a hill sweep of five directions on 2 ranks; libraries of 260/280 and 265/275 degrees blended at 270 against the 270 run (more than 4 cells from the faces, under 1 % and 0.4 % of the reference speed), the 260/280 library at 265 and 275 against those runs (1 %), the interior mean of k at 270 (0.5 %), a stored sector returned unchanged, and the reference speed asked for. Label ``regression``, about 70 s. Not on Windows; registered only when the configure's Python has PyYAML and numpy. * - ``rt_library_ensemble`` - Ensemble statistics and WindNinja-format grids of the wind library (``Tests/Infrastructure/Library_Ensemble``, :doc:`case_setup`): a hill sweep of four directions on 4 ranks, placed by ``domain.center_lat_lon``; the statistics over 8 members in every column at 10 m and 50 m equal those computed from the runs' plotfiles (1e-12), the grids' header, UTM corner (1e-6 m), north row first and values, the ``.prj`` (UTM zone 13N), the CSV at the hilltop, and the ground grid's centroid at the hill's top (1 m). Label ``regression``, about 16 s. Not on Windows; registered only when the configure's Python has PyYAML and numpy. * - ``steer_input_checker_selftest``, ``steer_case_selftest``, ``steer_dem_selftest``, ``steer_window_selftest``, ``steer_library_selftest``, ``steer_ensemble_selftest``, ``steer_resume_selftest``, ``steer_fetch_selftest`` - The Python unit tests of the deck checker (standard library only), the case set-up tool, the terrain download (on tiles made in the test, no network), the case set-up window (offscreen; its window tests skip without PySide6 and pyqtgraph) and the wind library (on plotfiles written in the test: several boxes, single and double precision, ghost cells, a sloping ground; log lines, refused runs and library files), and resumable sweeps (``run.sh`` with a fake steer: finished directions skipped; unfinished, not steady, changed decks, data files or arguments, a missing patch plotfile and ``RESUME=0`` run again; the ``run.sh`` tests skip on Windows), and the upstream roughness from a regional map (``wind.upstream_roughness = auto``: a half-plane map, a uniform map, the closed form of the weight on a step map, two inflow faces, coverage, the decks of a sweep and the refusals), and the library's ensemble statistics and WindNinja-format grids (a hand-written two-sector library: closed-form mean, spread, percentiles, exceedance and reversal; the grid header, corner, ``.prj`` and a round trip; the command line's refusals). The last seven need PyYAML and numpy. Label ``unit``. ``steer_case_selftest`` also checks that ``Tests/inputs_yaml_reference`` is what ``tools/make_steer_case.py --write-yaml-reference`` writes and that, uncommented, it is YAML holding every key with its default. * - ``rt_coriolis_repeat_clean``, ``rt_askervein_210_clean``, ``buildings_defaults_fraction_stress_clean``, ``buildings_defaults_roof_stress_clean``, ``buildings_defaults_drag_clean`` - Fixtures: they empty the run directories of the tests they are set up for, so no check reads an earlier run's output. In a build without MPI (``STEER_MPI=OFF``, as in the Windows CI job) every test runs on one rank, so ``unit_np2`` and ``unit_np4`` repeat ``unit_np1`` and ``smoke_restart_matches`` does not change the rank count. MSVC does not trap floating-point exceptions, so ``amrex.fpe_trap_invalid=1`` has no effect there; the Linux GCC jobs keep that check. GoogleTest suite ~~~~~~~~~~~~~~~~ .. list-table:: :header-rows: 1 :widths: 30 70 * - GoogleTest - Check * - ``ImmersedTerrain.ExactLawReturnsTheLogProfilesUstar``, ``ImmersedTerrain.CentroidSpacingAcrossTheCutCellsTopFace``, ``ImmersedTerrain.StrainCorrectionFollowsTheFlatGround``, ``ImmersedTerrain.BodyForcesActOnTheOpenPart``, ``ImmersedTerrain.RefusesWhatItDoesNotSupport``, ``ImmersedTerrain.RestartRecordRefusesAChangedGround``, ``ImmersedTerrain.HeightInTheCutLayerIsItsOpenCentroid``, ``ImmersedTerrain.InflowIsZeroOnSolidFaces``, ``ImmersedTerrain.AbsoluteRayleighHeightIsFromTheTerrainZero``, ``ImmersedTerrain.RoughnessMapEntersTheCutCellByColumn`` - The immersed ground (:doc:`immersed_terrain`): the wall law at the exact distances returns :math:`u_*` of a log profile, also below 10 :math:`z_0`; the spacing :math:`s` at a cut cell of solid fraction 0.7, in the viscous flux and in the implicit rows, with the diagonal equal to the sum of the couplings, on boxes of 4 and of 2 cells; the strain correction is the identity at solid fraction 0 and gives :math:`R\,u_*/(\kappa (d_2 + z_0))` on a log profile at 0.3, 0.7 and 0.9, and the cut cell takes the wall law's gradient :math:`u_*/(\kappa (d_1 + z_0))`; a body force on the cut cell's faces is the open fraction times the force and zero on solid faces; each refusal names its input; the restart record changes with ``terrain.flat_height``, ``terrain.small_volfrac`` and ``bc.surface_z0``, with a map's contents, ``terrain.idw_neighbors`` and ``terrain.idw_power`` (not with the map's path, nor with ``bc.surface_z0`` when a map is given; a map that cannot be read stops naming the input) and refuses a changed ground and a changed representation; with a roughness map :math:`z_0 = 0.05\,(1 + i)(1 + j/2)` m and one wind profile in every column, the cut cell's :math:`u_*^2`, its strain, the strain of the cell above it and the ``log_law`` gradient equal the closed form with each column's :math:`z_0` at solid fractions 0.3 and 0.7 on boxes of 4 and of 2 cells, a uniform map gives the uniform value's rates bit for bit, and the law stops when the map it expects was not set or has no ghost column; the height above the ground in a cut layer is half its open height at the cell centre and at the x and y faces (solid fractions 0.3 and 0.9), and the centre's height elsewhere; with a layer promoted to solid by ``terrain.small_volfrac`` the inflow profile's wind on that layer's inflow faces is 0 and the faces above keep the profile, on boxes of 4 and of 2 cells. With ``bc.rayleigh_height = absolute`` the Rayleigh coefficient on :math:`w` follows :math:`0.05 \sin^2(\tfrac{\pi}{2}(z_a - 150)/(z_{top} - h_f - 150))` with :math:`z_a` the height above the terrain's zero, :math:`h_f` = 25 m above the mesh's lower face, in the seven layers from 155 to 215 m, on boxes of 4 and of 2 cells. * - ``ImmersedSurface.MomentsMatchAQuadrature``, ``ImmersedSurface.TiltedPlaneMatchesTheClosedForm``, ``ImmersedSurface.FlatSurfaceGivesTheFlatGroundsFields``, ``ImmersedSurface.HeightAboveTheGroundOnAnAgnesiHill``, ``ImmersedSurface.EveryConsumerReadsTheHelper``, ``ImmersedSurface.HashFollowsTheGroundsInputs``, ``ImmersedSurface.MapAfterAHybridSurfaceIsNotHybrid`` - The sloping immersed ground (:doc:`immersed_terrain`): the closed-form moments of a triangle and a segment equal a quadrature; on planes tilted by 10°, 30° and 45° along x and along y, on boxes of 8 and of 4 cells, the solid fractions, the fluid's mean heights, the face fractions, the slopes and the two wall distances equal the closed form of a rectangle cut by a line, only the roof bit is set, and the wall areas of a column add to 1; a flat surface gives the fields of the flat immersed ground (``terrain.flat_height``); the height above the ground on an Agnesi hill equals :math:`z - h(x, y)`, and each source file that needs a height reads the helper; the moments of a twisted footprint equal a sampling of its four triangles; the restart hash follows each of the ground's inputs, a file's contents and interpolation inputs included, the default flat ground's hash is pinned to its value before the wall-law options were removed, and a record of another version is refused by its version (``ImmersedTerrain.RestartRecordRefusesAChangedGround``); a ground filled from an xyz file returns the file's heights above ``terrain.flat_height``; a geometry rebuilt from a height map after a hybrid surface no longer reports a hybrid mesh. * - ``HybridTerrain.*`` (9 tests) - The hybrid mesh's envelope (``terrain.representation = hybrid``, :doc:`immersed_terrain`): on a plane the envelope is the plane shifted down; in a valley it is the mean of the minimum, not the minimum; a one-node spike is removed and the envelope is at most the ground; across a periodic face the square wraps; the half-width in nodes is floor(width/dx); without the keys ``terrain.flat_height`` is the first layer's thickness and ``terrain.hybrid_half_width`` 2 cells; the envelope on the mesh equals the host envelope at every node, ghosts included, on boxes of 16 and of 8 cells and 1, 2 and 4 ranks; the immersed-column mask is 1 where the first cell is cut, ghost columns included, with its count over all ranks; the solid-pressure fill on a mesh that follows a ramp of slope 0.3 gives every solid cell the value of the cut cell above it, so the x component of the pressure gradient of :math:`p = a x` is :math:`a` on the fluid's x faces to the metric's error. * - ``Inputs.ImmersedTerrainChecksNameTheInput``, ``Inputs.ParsesTheImmersedTerrainKeys``, ``Inputs.RemovedImmersedTerrainKeysAreUnknown`` - The three ``terrain`` keys of the immersed ground are read, and each of their range checks and refusals names its input; a hill passes; a deck with inflow and outflow faces passes. ``terrain.immersed_slope``, ``terrain.immersed_side_walls`` and ``terrain.immersed_wall_distance``, removed inputs, are each reported as unknown ``terrain`` keys. * - ``Reference.ArchiveRoundTripVerifies``, ``Reference.DamagedArchivesAreRefused`` - A reference archive written, verified and loaded: fields bit-identical to the average, metadata and field statistics unchanged; a changed byte, a missing file, an extra file, edited AU, and data changed together with its checksum are each found and named, and loading refuses. * - ``Reference.TrapezoidWeights``, ``Reference.AverageIsTheTrapezoidTimeAverage``, ``Reference.HalfWindowChangeMeasuresDrift``, ``Reference.NaNSnapshotIsRefused``, ``Reference.AverageRejectsBadSnapshotLists`` - The average equals a host-side recomputation bit for bit and, for fields linear in time, the mid-window value to 8 ε; trapezoid weights for uneven spacing; the half-window change is exact for a linear drift and zero for a steady field; a snapshot with a NaN, fewer than 3 snapshots and times out of order are refused (the first two with their messages); a trailing ``/`` is handled. * - ``Reference.AllocationUnits``, ``Reference.MetadataRangeChecks`` - AU = nodes × hours × rate (10 CPU, 100 GPU); metadata range checks name their inputs. * - ``Sha256.*`` - SHA-256 against the NIST example vectors, at every padding boundary and chunking; ``hex()`` can be called repeatedly. * - ``Mesh.VerticalLevels``, ``Mesh.ZLevelsFile`` - Vertical levels: uniform; solved ratio (top exact, ratio 1.0421553943273616 from an independent exact-rational bisection); fixed ratio (ERF's Askervein 20 m × 1.08, top 749.0048747962335 m); z-levels file and its errors. * - ``Mesh.FlatTerrainIsTheCartesianMesh`` - Flat terrain gives the Cartesian levels: bit for bit for STF and Sullivan, within 2 ulp for BTF. * - ``Mesh.FreeStreamIsPreserved`` - Free-stream preservation on round Witch-of-Agnesi and Gaussian hills, all three mappings: divergence below 1e-12 of :math:`(|U|+|V|)/\Delta x`. The cancellation is algebraic for any node heights, so this test does not detect wrong heights; ``Mesh.MetricsEqualErf`` does. * - ``Mesh.VolumesSumToTheDomain`` - Cell volumes sum to the column volumes above the ground to 1e-12, and to a 1 m quadrature of the domain above the hill to 1e-4 (the bilinear ground differs from the continuous hill by 2.4e-5 of the domain). * - ``Mesh.SmoothSurfaceKernel``, ``Mesh.SmoothSurfaceNonPeriodic`` - Smoothing: a constant is unchanged; a Fourier mode is damped by the analytic factor per pass; β ≥ 1/4 is refused. On a non-periodic domain, edge nodes use themselves as the outside neighbour and ghost nodes take the nearest domain node. * - ``Mesh.TerrainInterpolation`` - IDW returns input points and, with 4 neighbours, is exact on a plane at a symmetric query (with the default 6 the two extra neighbours break the symmetry and IDW is not exact on a plane); ERF's bilinear form is exact on planes anywhere, with ERF's edge fallback; ``terrain.idw_neighbors`` above the number of points is refused. * - ``Mesh.MetricsEqualErf`` - ``z_phys``, ``detJ`` and nodal heights equal ERF's own output for the same 2-D hill deck (BTF, STF, Sullivan; STF and Sullivan bit for bit on macOS, BTF to rounding because STEER keeps the ground layer as given, ``z_phys`` and ``detJ`` within 1e-13 and the nodal heights within 1e-12 elsewhere); STF capped at 2 of 16 levels, as ERF reports. * - ``Mesh.IdwMirrorTiesAreTheLowerIndex`` - The two mirror images of a query on the diagonal of a 0.1-spaced grid tie exactly, and the lower index wins, for k = 2 to 8 and both point orders. The squared distance is each square rounded, then added, so no build can fuse it; with ``dx * dx + dy * dy`` contracted to an fma the 64 tied queries here picked by the last bit, and a build that contracts differently picked the other point (0.23 m on Askervein). * - ``Mesh.IdwBucketsEqualBruteForce``, ``Mesh.TerrainAtMapCoordinates``, ``Mesh.FileTerrainSeamIsPeriodic``, ``Mesh.GroundLayerIsTheGivenSurface``, ``Mesh.TerrainThatFillsTheDomainIsRefused``, ``Mesh.QualitySlopeOfDiagonalRidge``, ``Mesh.RestartWithOtherTerrainIsRefused``, ``Mesh.QualityReportFlagsSteepTerrain``, ``Mesh.QualityGroundStepOfRamp``, ``Mesh.QualityReportWarnsOnAbruptGround`` - The IDW bucket search picks the brute-force neighbours; results agree to 1e-13 (random cloud with far queries, a regular grid with exact distance ties, a tie across a bucket edge, a transect queried from a 2-D domain, one point); UTM-sized coordinates are read and interpolated in double; file terrain on a periodic domain has one seam height; every mapping keeps the ground layer as given; ground at the top and inverted cells stop the run; the slope of a diagonal ridge is reported in full; a restart with changed terrain is refused; the report of a steep ridge carries both warnings; the ground step of a ramp in x and in y is the closed form, counted in the thinner of the two first layers, and the report warns above 64 first layers and not below. * - ``ConvectionMMS.UnlimitedMusclIsSecondOrder``, ``ConvectionMMS.LimitedMusclOrder``, ``ConvectionMMS.UpwindIsFirstOrder`` - Convection on a manufactured flow over a 120 m cosine hill (BTF, geometric layers, 16 × 12 × 8 to 64 × 48 × 32 cells), ghost nodes continuing the layers: the unlimited MUSCL reconstruction (van Albada slope with :math:`\epsilon` above every difference) is second order for q (conservative and bounded forms) and for the u, v and w control volumes, L2 order ≥ 1.9 on both pairs and max-norm order ≥ 1.9 on the finest. With ``van_leer`` and ``van_albada``: L1 order ≥ 1.5 on the finest pair and an L1 error at most a quarter of first-order upwind's (a limiter is first order at smooth extrema). First-order upwind converges at order 1.0 ± 0.1. * - ``DiffusionMMS.ScalarIsSecondOrder``, ``DiffusionMMS.MomentumIsSecondOrder`` - Scalar diffusion with a variable :math:`\gamma`, and momentum diffusion with the full stress tensor and a variable :math:`\nu`, on the same meshes: L2 order ≥ 1.9 on both pairs, max-norm order ≥ 1.9 on the finest, for q, u, v and w. * - ``ConvectionProperties.BoundedUpwindKeepsKPositive``, ``ConvectionProperties.BoundedFormOfConstantIsZero`` - Random :math:`k \ge 0` (a third of the points zero) and random transport fluxes of ±50 m/s: the step :math:`k - C(k)/a_P` with the bounded upwind form leaves every :math:`k \ge 0`; the conservative upwind form goes below −0.1 in the same step. The bounded form of a constant is zero for every limiter and location. * - ``ImplicitOperator.DiagonallyDominantForRandomWindAndNu`` - Random transport (±20 m/s) and diffusivity (0 to 50 m²/s, a fifth zero) over the hill: every neighbour weight of :math:`A_1` is ≥ 0 and :math:`a_P` equals their sum (1e-14; single 1e-6), for cells and the three velocity components. * - ``SmoothLimiter.DerivativeIsContinuous``, ``SmoothLimiter.CloseToVanLeerOnSmoothData``, ``ConvectionOptions.InvalidEpsIsRejected`` - The van Albada slope's derivative changes by less than 0.1 across every point where van Leer switches (:math:`a = 0`, :math:`b = 0`, :math:`a = -b`, the origin), in three directions; van Leer's jumps by more than 1. On the manufactured flow (64 × 48 × 32) the two limiters differ by less than 1 % (L2) for q, u, v and w. Invalid ``smooth_eps`` (0, negative, NaN, infinite) is refused. * - ``ImplicitOperator.ConvectionPartIsBoundedUpwind``, ``ImplicitOperator.DiffusionPartIsTheFlatOperator``, ``ImplicitOperator.WeightsAreOneDimensionalFluxes``, ``ImplicitOperator.IndependentOfBoxLayout`` - :math:`A_1` is the explicit operators' first-order part: bounded upwind convection equals :math:`A_1 q` for random q and transport (1e-12; single 1e-5), and on a flat mesh :math:`-D(q) = A_1 q` for the scalar and :math:`-D_c(u) = A_1 u_c` for each velocity component with random :math:`\nu`. Over the hill, every weight equals the explicit face flux of a field that varies along one index direction only (this pins the :math:`1 + \delta_{cd}` and :math:`|\mathbf{n}|^2 + n_c^2` factors on sloping faces). MUSCL convection, both diffusions and :math:`A_1` agree to round-off (1e-13) on 16² and 8² column boxes, and boxes that share a face point agree there (not bit for bit: GCC on arm64 contracts multiply-adds inside vectorised loops only). * - ``MassFluxMMS.DivergenceAndGradientAreSecondOrder``, ``MassFlux.GradientIsMinusTheAdjointOfTheDivergence``, ``MassFlux.GradientIgnoresTheGhostBelowTheGround`` - The divergence (through :math:`\Omega`) and the three components of :math:`G p` over the 120 m hill (BTF, geometric layers, 16 × 12 × 8 to 64 × 48 × 32 cells): L2 order ≥ 1.9 on both pairs, max-norm order ≥ 1.9 on the finest (single precision 1.8). :math:`\langle Gp, U\rangle = -\langle p, DU\rangle` with control-volume weights to 1e-12 of either side (7e-12 against 3.3e4), for random p and a random velocity that vanishes near the ground and top. :math:`G` does not read the ghost cells below the ground. * - ``MassFlux.DivergenceIsThePoissonLayers``, ``MassFlux.OmegaAndWRoundTrip`` - The continuity residual is bit for bit ``face_divergence`` of :math:`(u, v, \Omega)`; after a projection (Poisson fluxes added to :math:`u, v, \Omega`, w from ``w_from_omega``) the divergence falls from 1.19 to 2.4e-11, the solve's residual. ``omega_from_w`` and ``w_from_omega`` are inverses. * - ``LineJacobian.MatchesFiniteDifferenceJacobian`` - ``line_jacobian`` for u, v, w, θ and k in x, y and z against a finite-difference Jacobian of the first-order operator (transport frozen), per coefficient: relative difference < 1e-6 (1e-13 measured; single 1e-3), over the hill with convection, and on a flat mesh with convection and a random diffusivity. * - ``Residual.RestOverSteepTerrainIsBalanced`` - Rest over a 300 m hill (slopes up to 0.94), θ = θ_ref(z) stratified, Coriolis on: the momentum, continuity and k residuals are below 1e-14. With a constant reference the hydrostatic :math:`p(z)` balances only to truncation (R_u 1.6e-3 m/s², 0.5 % of the buoyancy; R_u and R_w on interior faces below 1 % of the buoyancy). * - ``Jvp.*`` - ``jvp`` on a laterally uniform column (affine residual) equals :math:`R(q+v) - R(q)` to 1e-5 (single 1e-2). On the hill with MUSCL convection, against a central difference, L1 error below 1e-5 (2.7e-6) while a step 1e5 times larger misses (1.8e-4); the result is the same without ``R0``; the step is the same on 16² and 8² column boxes and scales with each field (k and its scale times 100 leave it unchanged). * - ``Residual.SourcesHaveTheirClosedForms``, ``Residual.IsTheSumOfItsParts``, ``Residual.InvalidInputsAreRefused`` - Sources in closed form: Coriolis with the :math:`\cos\varphi` terms and geostrophic forcing on a uniform wind (:math:`f = 7.27221\times10^{-5}` 1/s at 30°, T = 86400 s), buoyancy of a uniform excess; the geostrophic wind is balanced. The residual equals its operators applied one by one (momentum, continuity, θ, k) on the hill with a general state. Invalid options (latitude, period, geostrophic forcing at latitude 0 or with the forcing off, θ₀, gravity, profiles that do not increase) and missing inputs stop with a message. * - ``Mesh.SharedNodesAgree`` - Node heights shared by two boxes (or periodic images) are equal, for BTF, STF and Sullivan, periodic and not (under gcc each box's copy differed by up to 1e-13 m before ``Mesh`` synchronised them). * - ``Mesh.NodeHeightsDoNotDependOnTheLayout`` - The same mesh in one box and in boxes of at most 8 x 8 and 12 x 4 cells (``mesh.max_grid_size``) has the same node heights, bit for bit, at every node a box holds (every box's copy of a seam node, and the ghost nodes). BTF, STF and Sullivan, periodic and not. Under gcc-16 the BTF heights differed by up to 4.5e-13 m before the BTF formula was rearranged (each box's copy differed, and ``OverrideSync`` kept the owner's). * - ``Mesh.GhostNodesStandForTheirImages`` - Every ghost node in x and y, at every k (the rows below the ground and above the top included), equals the node it stands for, bit for bit: its periodic image, or the edge node of its row at a non-periodic face. BTF, STF and Sullivan; periodic in x only, y only, both and neither, and a layout split in z; on 1, 2 and 4 ranks; every copy of a domain node agrees. Before ``fill_ghost_columns`` the corners outside a wall and a periodic side held the clamped corner column (up to 8 m off) and the row below the ground of periodic ghost columns was extrapolated from the clamped columns (STF, Sullivan). * - ``Mesh.AgnesiGhostNodesWrapInPeriodicDirections`` - The Agnesi ground as written, before any exchange: each ghost node in a periodic direction is its periodic image, bit for bit, and outside a non-periodic face the face node. Round hill and both ridges on a domain not centred at the origin, x periodic and then y. Before, the periodic ghosts were clamped (2.5 m and 4.1 m off). * - ``SimilarityFunctions.MatchTheReferenceTable`` - ERF's similarity functions (the copied ``ERF_MOSTUtils.H``, byte-identical by the drift check): Businger–Dyer ψ and φ and Jimenez ψ against a Python table of the same formulas, z/L from −5 to 5, to 1e-14 (single 1e-6); :math:`d\psi/d\zeta = (1-\phi)/\zeta`. * - ``SurfaceLayer.ReferenceIntervalIsHalfOpen`` - Reference-height lookup on the ERF#3982 column (dz₀ = 10 m, ratio 1.1, 40 layers): centres belong to the interval above, faces (10 m included) to the interval that holds them, the last centre to the last interval; heights below the first or above the last centre are refused. * - ``SurfaceLayer.LogLawFrictionVelocityOnAStretchedColumn``, ``SurfaceLayer.MostFrictionVelocityWithAHeatFlux``, ``SurfaceLayer.RoughWallFollowsTheLogLaw``, ``SurfaceLayer.DenominatorFloorKeyIsChecked`` - u* from a log-law state (u* = 0.45, z₀ = 0.1 m) on that column: within 2e-5 at the first centre, at 10 m, at 55.3 m and on a centre. With a heat flux, u* matches an independent bisection to 1e-10 for unstable, stable and low-wind convective cases, and is positive. On rough ground (z₀ = 0.5 m, 1 m first layer, ln((d + z₀)/z₀) = ln 2): u* from the log law at the first centre and at 0.8 m with ``bc.surface_denominator_floor = log_law``, 0.45 ln 2 with ``one``; with a heat flux both floors match the bisection with their floor to 1e-10. An unknown floor stops the run, naming the key. * - ``SurfaceLayer.WallKAndWallViscosity`` - :math:`k_w = u_*^2/C_{\mu0}^2` exactly (neutral); Axell's buoyant form with a heat flux; the wall eddy viscosity equals :math:`C_{\mu0}\sqrt{k_w}\,\kappa(d+z_0)`. * - ``SurfaceLayer.ColumnsOverTheHill``, ``SurfaceLayer.WallModelInTheResidual``, ``SurfaceLayer.WallRowsOfTheLineJacobian``, ``SurfaceLayer.WallKRowAtLowWind``, ``SurfaceLayer.InvalidOptionsAreRefused`` - Over the hill: the columns' distances and areas from their nodes; the wall stress along the ground with magnitude :math:`u_*^2|A|`. In the residual, R_u, R_v and R_θ change only in the first cells, by the wall flux minus the interior flux over the cell volume; the k rows are the wall-k rows (both modes). The ``line_jacobian`` rows lose the ground neighbour and gain the wall terms. At low wind the wall-k row uses u* ≥ 0.01 m/s. Invalid options and a reference height outside the columns stop with a message. * - ``SurfaceLayer.ImmersedColumnsOfAHybridMesh`` - A hybrid mesh's immersed columns (every third column of the hill masked, ghost columns included): the stress and the drag are 0 there and the wall-k rows of R_k and of the implicit coefficients are left as they were; the other columns equal the run without the mask. * - ``Canopy.LalicMihailovicProfileIntegratesToOne``, ``Canopy.ThinCellGivesErfPointValue`` - The profile's :math:`N` in closed form against quadrature (``scipy.integrate.quad``) for :math:`\eta_m` = 0, 0.3, 0.8, 0.95 to 1e-11; the shape integrates to :math:`N` (Simpson, 1e-8); :math:`F` is continuous at :math:`\eta_m`, rises from 0 to 1 with slope :math:`P/N`; the fraction between two heights equals :math:`F(b) - F(a)` and stays positive just below the top. A thin cell gives ERF's point value :math:`C_d\,\mathrm{LAI}\,P/(hN)`; a cell across the top takes the part below it. * - ``Canopy.ColumnIntegralIsCdLai``, ``Canopy.FollowsLocalGroundOnHill`` - Every column's sum of :math:`f J \Delta\zeta` is :math:`C_d` LAI with a height and LAI that vary over the domain and the top inside stretched cells, both profiles, :math:`C_d` constant and from a map; :math:`f` is 0 exactly above the canopy and > 0 below. On a 50 m hill (BTF) the same holds and the first cell is :math:`C_d \mathrm{LAI}/h` in every column (heights from sea level would leave the hill bare). * - ``Canopy.StandsOnTheImmersedGround`` - The drag field over an immersed ground (the second component of the node heights): a flat ground at cut fractions 0, 0.3, 0.7 and 0.999 of the third layer, both profiles, and a sloping ground. Every column's sum of :math:`f J \Delta\zeta` is :math:`C_d` LAI; the cells below the ground hold 0; with the uniform profile each cell holds :math:`C_d \mathrm{LAI}/h` times its overlap with the canopy above the ground over its whole height; the log line and the rough-ground warning count every column. On the sloping ground the same with a map, and a round patch 400 m across holds the map's values in its columns. The errors are reduced over the ranks. * - ``Canopy.PatchesSameOnEveryLayoutAcrossSeam`` - Three patches give the same field, bit for bit, on 1, 16 and uneven boxes; the patch across the periodic seam reaches the columns on the other side; overlapping patches add, and a layer above the shorter patch holds the taller one's drag alone; the ghost column is the periodic image in x and the nearest column in y. * - ``Canopy.RestrictionKeepsLayerIntegrals`` - On a hill smoothed differently on each level (levels 1 and 2, gathered on one box or not), each layer's integral of :math:`f` over the coarse cells equals that over level 0. * - ``Canopy.RestartRefusesAnotherCanopy``, ``Canopy.OptionChecks``, ``Canopy.PatchFileChecks`` - The same canopy restarts; one changed LAI, a canopy where the checkpoint has none and none where it has one are refused; the hash follows the contents, not the file name. The option checks, the patch file's lines (named by number), negative map values and a patch wider than the periodic domain are refused with the input named. That ``canopy.type = none`` leaves every answer bit-identical is shown by the existing suite and its golds, unchanged by the canopy. * - ``CanopyDrag.SinkHasItsClosedForm`` - On linear velocity fields (so every four-point mean is the value at the face) through a uniform patch, each face's residual is :math:`f_c |U| u_c` with :math:`f_c = C_d\,\mathrm{LAI}/h` or 0 in closed form, on 1 and 16 boxes (the faces on box edges read the ghost column), the ground z-faces taking the first cell. * - ``CanopyDrag.DiagonalIsTheDerivativeOfTheSink`` - On sign-changing periodic velocities, the ``derivative`` diagonal equals the central difference of the sink in the face's own component (1e-8 relative), ``picard`` equals the sink over :math:`u_c`, ``none`` adds nothing, ``canopy_rows`` holds the same diagonal, and every diagonal is :math:`\ge 0`. * - ``CanopyDrag.ResidualAndImplicitRowsCarryTheDrag`` - The residual's momentum rows gain exactly the sink and ``implicit_rows``' :math:`a_P` exactly the diagonal (the off-diagonal coefficients and the :math:`\theta` rows unchanged); without the drag's rows ``implicit_rows`` refuses a canopy. * - ``TimeTerm.ResidualGainsTheClosedFormOnItsOwnRows`` - On the 2-D hill (k–L closure, wall law with ``dirichlet`` wall-k rows, slip top, Rayleigh damping, four boxes) with a smooth non-uniform :math:`q - q^n`, the residual of :math:`u, v, w, \theta, k` gains :math:`(q - q^n)/\Delta t` (1e-12 relative) on every row that keeps its residual, and nothing on the ground and top :math:`w` faces and the first cells' wall-k rows; :math:`p` is bit-identical. * - ``TimeTerm.DiagonalIsTheDerivativeOfTheTimeTerm`` - ``implicit_rows``' off-diagonal coefficients are bit-identical with and without the term; :math:`a_P` gains exactly :math:`1/\Delta t`, or nothing on the identity rows (counted); the change of the time term's residual along a direction equals :math:`a_P`'s change times that direction (one-sided difference, exact for a linear term up to round-off; 1e-6 relative). * - ``TimeTerm.NoChangeAtTheStoredState``, ``TimeTerm.OptionsNameTheInput`` - At :math:`q = q^n` the residual is unchanged in value. That the steady path (no time term) is bit-identical is shown by the regression tests, whose golds are unchanged. ``unsteady.dt`` of 0, :math:`-1`, :math:`\infty`, NaN and the smallest denormal (infinite :math:`1/\Delta t`) are refused with the input named. * - ``TimeDriver.StokesFirstProblemFirstOrder`` - A lid started impulsively at 1 m/s over fluid at rest (:math:`\nu` = 0.01 m²/s, 1 m deep, 64 layers, four boxes) to :math:`T` = 1 s with :math:`\Delta t` = 0.1, 0.05 and 0.025 s. The differences between successive runs halve: observed order 0.998, within 0.85–1.15. Against Stokes' first problem, :math:`u = U\,\mathrm{erfc}((H - z)/(2\sqrt{\nu T}))`, the error at 0.025 s is 4.2e-3, below 1.5 times the last difference (3.5e-3, the backward-Euler error); the Richardson value :math:`2u_{\Delta t/4} - u_{\Delta t/2}` is within 8.2e-4 (the space error), below 1.5e-3. Double precision only. * - ``TimeDriver.SteadyProblemReachedAndHeld`` - The same channel from rest with :math:`\Delta t` = 10 s to 300 s reaches the Couette profile :math:`u = Uz/H` within 1.6e-9 (bound 1e-8; single 1e-3). Started on the profile, each of three steps takes one inner iteration and the profile does not change (1e-10). * - ``TimeDriver.LastStepEndsAtStopTime``, ``TimeDriver.StepFromTargetCfl``, ``TimeDriver.MaxInnerIsReported``, ``TimeDriver.OptionsNameTheInput`` - 0.25 s in steps of 0.1 s is 0.1, 0.1, 0.05 s, ending at 0.25 s, with the time term's :math:`\Delta t` and :math:`1/\Delta t` those of the last step. ``unsteady.cfl = 0.5`` on the Couette profile gives :math:`\Delta t = 0.5\,\Delta x/u_\mathrm{top}` from ``advance`` (which fills the ghost cells) and from ``convective_dt``. With ``unsteady.max_inner = 2`` and an unreachable stop, both steps take 2 inner iterations, are counted as unconverged and their log line says so. Each range check names its key: ``stop_time`` missing, 0, :math:`-1`, :math:`\infty`, NaN; ``dt`` missing or 0; ``dt`` with ``cfl`` > 0; ``cfl`` :math:`-1` or NaN; ``inner_drop_orders`` 0, 16 or NaN; ``max_inner`` 0. * - ``TimeDriver.TimeIsStepCountTimesDtAndNoSliver``, ``TimeDriver.StepDtChecks``, ``TimeDriver.CflRampsOnWhenTheVerdictIsSteady`` - 1.00005 s in steps of 0.1 s is ten steps, the last 0.10005 s (within 0.1 % of the time left), not eleven with a sliver; the time of step :math:`n` is exactly :math:`n` times 0.1 in double (nine sums of 0.1 are not). A :math:`\Delta t` of 0, :math:`\infty` or NaN is refused naming ``unsteady.dt`` or ``unsteady.cfl``, and ``convective_dt`` over the channel at rest gives a step refused as "at rest". With a steady criterion met at once (tolerance 1e30, no drop, window 2) and ``steady.ser_max_growth = 1.1``, the verdict is Steady and the CFL still ramps above 2 over the Stokes run (from rest to 1 s in steps of 0.1 s). * - ``UnsteadyOutput.AveragesAreTheWeightedSeries``, ``UnsteadyOutput.NothingAveragedBeforeTheStart`` - A non-uniform state that changes with time on four boxes, six irregular steps (0.1 to 2.5 s) with ``unsteady.average_start`` = 1 s inside the second step. The running mean and variance of every cell and field equal a two-pass weighted mean and variance (1e-14 and 1e-11 relative), with the weights :math:`t^{n+1} - \max(t^n, t_a)` and the first step left out; the plot names are ``u_mean`` … ``tke_var``. Steps all before the start leave :math:`W = 0` and every plotted field 0. * - ``UnsteadyOutput.CheckpointRoundTrip`` - The averages read on another box layout and the ``Unsteady`` record (values with no short decimal form, step counts above :math:`2^{31}`, the time anchor) come back bit for bit; a directory without a record reads as none. * - ``UnsteadyOutput.ParseProbes`` - Comments and blank lines are skipped; two numbers, a word, NaN, :math:`h = 0` and four numbers are each refused with ``unsteady.probes_file``, the line and the reason; a file with no probe is refused. * - ``UnsteadyOutput.ProbesTakeTheNearestCell`` - On flat ground with layers of 0.125 m, :math:`h` = 0.3 takes the cell at 0.3125 m, the tie :math:`h` = 0.25 the lower cell (0.1875 m), the domain's high corner the last cell and the low corner the first; a probe samples its cell's closed-form values. On a bump the cell is the one nearest :math:`h` above the local ground, from a host scan of the node heights. * - ``UnsteadyOutput.ProbeFileOnRestart`` - A new file has the header and one row per call; reopened with the time 1, it keeps the rows up to 1, and the rows written after it make the file equal to the run without the restart. ``open`` reports the kept file (true) and a new file (false, also for a restart that finds no file: then only the header is written). * - ``TimeDriver.ResumeContinuesTheTime`` - A driver resumed after step 3 of 0.1 s numbers its steps 4 to 10 and gives the times of the run without the restart bit for bit; with 0.05 s after the checkpoint, the times are :math:`t_0 + n \cdot 0.05` and the run ends at its stop time. After a clipped last step (0.3 s steps to 1 s, anchor (1 s, 4)) a restart to 2 s ends its first step at 1.3 s, not 1.5 s. A chain of restarts (0.1 s to 0.3 s, then 0.05 s to 0.6 s and on to 1 s) gives the steps and times of one restart (0.05 s to 1 s) bit for bit. * - ``CanopyTke.SourcesHaveTheirClosedForms`` - With a uniform 5 m/s wind, :math:`P_c = \beta_p f |U|^3` and :math:`D_c = \beta_d f |U| k` on every cell; where :math:`k = \beta_p |U|^2/\beta_d` they balance; the Patankar diagonal gains :math:`\beta_d f |U|` and the exact one loses it. * - ``CanopyTke.CappedBalanceIsKappaU2`` - With the cap: in a uniform wind (no shear production), neutral, every capped canopy cell has :math:`P_c = D_c + \varepsilon` at :math:`k = \kappa_c |U|^2`, :math:`\kappa_c` the root of :math:`\beta_d \kappa + C_{\mu0}^3 \kappa^{3/2}/\alpha = \beta_p` (0.1728 for the defaults). * - ``CanopyTke.LengthCapActsOnlyInTheCanopy`` - :math:`L = \min(L_\text{free}, \alpha/f)` where :math:`f > 0` and :math:`\varepsilon` follows it; the same bits where :math:`f = 0` or with :math:`\alpha = 0`; both capped and uncapped canopy cells occur. * - ``CanopyTke.ExactDerivativeMatchesDifferences`` - With the switches frozen, :math:`dS_k/dk` by central differences equals ``dSdk_exact`` in stably stratified cells with and without canopy (capped cells among them). It found that ``dSdk_exact`` held :math:`c_\mu'/c_\mu` fixed in :math:`P_b` since the closure was added (8c0d883); fixed here. * - ``CanopyTke.ZeroCanopyIsBitIdenticalAndResidualCarriesTheTerms`` - A canopy with a zero drag field leaves every closure field bit for bit; the residual of :math:`k` gains exactly :math:`D_c - P_c`. * - ``CanopyTke.BoundaryZonesCountTheCanopyCells`` - The count behind the inflow-face and damping-layer warnings: a patch covering only the first column of the inflow face is counted there; with a 100 m sponge on the inflow and outflow faces and a Rayleigh layer above 15 m, the canopy cells whose centre lies in either are counted (the Rayleigh layer on w alone is not); patches in the first column or row of each of the four faces are counted with that face inflow; an outflow face and no damping count nothing. * - ``CanopyTke.CapSwitchIsFrozen``, ``CanopyTke.RoughGroundUnderTheCanopyIsCounted`` - A capped decision held for a smaller :math:`k` keeps :math:`L = \alpha/f`; on the field the moved decisions are counted and the frozen evaluation keeps the cap. The ground-:math:`z_0` warning counts every canopy column when :math:`z_0` = 1 m and none when 0.05 m. * - ``CanopyDrag.PredictorTakesTheRowsOfTheLinearisationState`` - The momentum predictor's :math:`a_P` is that of the run without a canopy plus the rows computed at the state before the step, on all three components (the v and w rows do not see the u the step has just updated); a step on an increment from zero, as the Newton preconditioner takes, has the same :math:`a_P`. * - ``FrozenTheta.ReaderAndRefusals`` - ``simplec.theta``: ``solve`` by default, ``frozen`` when given; ``Frozen``, ``fixed``, an empty value and ``1`` refused naming the key, as are a repeated key and two values. * - ``FrozenTheta.ThetaHeldAndNoBuoyancyInMomentum`` - Three iterations of the laminar stage from a random state whose θ is up to 5 K from the reference, on 4 boxes: with θ frozen, θ is unchanged to the last bit and its residual is 0 at every iteration, and u, v, w, p and k are bit for bit those of the frozen stage with gravity off; with θ solved, θ moves and w differs. * - ``FrozenTheta.ClosureKeepsTheBuoyancy`` - With the k–L closure and θ frozen at a stable 10 K/km, one iteration gives a total :math:`\nu` below 0.9 times that with gravity off (the closure's :math:`N^2`). * - ``FrozenTheta.StageRefusesMismatchedResidualInputs`` - The stage refuses frozen θ with the momentum buoyancy on, and the momentum buoyancy off without frozen θ. * - ``FrozenTheta.GroundGhostsExtendTheFirstTwoCells`` - With the ground extension on, θ's two ground ghost layers are :math:`2\theta_0 - \theta_1` and :math:`3\theta_0 - 2\theta_1` on uniform layers, in every column of 4 boxes (lateral ghost columns included); off, and in a homogeneous fill with it on, the slip ground's mirror (:math:`\theta_0`, :math:`\theta_1`). * - ``BoundaryTypes.PoissonTypesMatchErfGetFftBc`` - The Poisson boundary types of every face type on every face it may take, periodic directions included, equal ERF's ``get_fft_bc`` (the copied ``ERF_SolverUtils.H``). * - ``BoundaryFill.InflowFollowsTheGroundHeight``, ``BoundaryFill.RulesPerFaceType``, ``BoundaryFill.NarrowDomainFillsTheLowFaceFirst``, ``InflowProfile.*`` - On a ridge whose height varies along the inflow face: every inflow ghost point (both layers, u, v, θ, k) takes the profile at its own height above the ground, the inlet wind varies along the face by more than 0.05 m/s, and the outflow face points of u are not Dirichlet rows. The ghost values of every rule for every face type (even, odd, value, profile, gradient, the Dirichlet face points, the top's θ gradient); the analytic profiles and their equilibrium k and :math:`\nu_t`, and a file table with and without a k column. On a domain two cells wide in x with slip walls on both x faces, the low face is filled first: :math:`u(-2) = -u(2)` before the high face sets :math:`u(2) = 0`, and :math:`u(4) = -u(0) = 0` (one launch for both faces would read the other face's points; a CPU build, which runs the tags in order, fails if the split is lost). * - ``BoundaryFill.GroundGradientIsTheWallLaw``, ``BoundaryImplicit.FoldsMatchTheHomogeneousFill``, ``BoundaryResidual.DirichletRowsAndIdentityLines``, ``BoundaryDamping.*``, ``BoundaryInputs.KeysAreReadAndChecked`` - Over a 120 m hill with a stable heat flux, the ground ghosts of u, v and θ give MOST's gradient at the first centre (u* φ_m/(κ(d₀ + z₀)) along the stress, −q φ_h/(κ u* (d₀ + z₀))) in both layers, on the two lateral ghost columns too (the periodic images of the neighbouring boxes; this catches a gradient slab with too few ghost columns under ``init_snan``); k is even; the homogeneous fill gives zero gradients and keeps even rules. The implicit folds: :math:`A_1` on the interior values with the folds equals the unfolded :math:`A_1` on the homogeneously filled state, for u, v, w, θ and k, every lateral type and a geostrophic top (1e-12; single 1e-5); Dirichlet face points carry identity rows. The residual's Dirichlet rows are :math:`q - V`; ``line_jacobian`` gives the identity there. The Rayleigh and sponge coefficients have their shapes (the :math:`\sin^2` ramp, zero below :math:`z_d`; the quadratic sponge, zero at its inner edge and on faces that are not inflow or outflow) in the residual and on the implicit diagonal. Every ``bc`` key is read into its field, and each out-of-range, ineffective (the other kinds' inflow keys, surface keys without a surface-layer ground, a layer without a coefficient) or inconsistent key is named. * - ``Closure.KernelsMatchErfBitForBit`` - ``closure_point`` equals ERF's composition of the copied AL01 relations (``ComputeTurbulentViscosityRANS``, ρ = 1) bit for bit on 20 000 random (k, N², d): L, ε, R_t, c_μ, c_μ', ν_t, ν_t', across the neutral, stable, unstable, smoothed and floored cases (each exercised). * - ``Closure.TurbulencePlotfileStabilityFunctionsAreErfs`` - The turbulence plotfile's ``cmu`` and ``cmu_prime`` equal ERF's AL01 ``cmu`` and ``cmu_prime`` of the plotted ``Rt``, in a stable and an unstable layer (R_t ≠ 0 checked), to 4 ulp (the plotfile kernel and the reference are compiled apart and may contract to FMA differently). The plotfile and the closure share ``closure::stability_functions``. Mismatches are counted on every rank and all-reduced. * - ``Closure.MatchesKynemaKLAxellWhereTheyCoincide`` - Kynema's ``KLAxell`` (transcribed) where the formulations coincide (neutral, z = d, λ = 30 m, no z₀, ρ = 1): L, ν_t, ε and P_s to 1e-12. * - ``Closure.DefaultGeomLengthCapIs100m`` - The default of ``turb.max_geom_lscale`` is 100 m in its four places (the closure's options, the kernels' constants, the inflow profile, the facts of ``abl.setup``); the capped length at κz = 100 m is 50 m with it and 23.08 m with the earlier 30 m. Mutant: the default put back to 30 fails it. The decks and unit tests that relied on the 30 m default now give ``turb.max_geom_lscale = 30``, so their answers and golds are unchanged. * - ``Closure.SmoothingLimitsAndLargeRichardsonNumbers`` - ``smooth_Rt``: identity above R_t^crit, continuous at it, within (R_t^min, R_t^crit] and monotone down to R_t = −1e30; the unstable length finite and below its bound for k down to 1e-16 under N² to −1e3; the same decision as ERF's. * - ``Closure.PointImplicitUpdateStaysPositive`` - The point-implicit update k + S_k/(1/Δτ + ∂S_k/∂k) with the Patankar diagonal stays ≥ 0 (> 0 with production) for 1/Δτ = 1, 1e-3 and 0 on 5000 random states; without the diagonal a decaying state goes negative. * - ``Closure.SourceJacobianMatchesFiniteDifferences`` - The dual-number dS_k/dk and dν_t/dk against central finite differences on 3000 random states (branches held): relative 1e-6 (single 1e-2); the dual value part equals the Real evaluation to a few ulp. * - ``Closure.InputsAreReadAndChecked`` - Every ``turb`` key is read into its field and the constants follow (the floor, C_μ0³); each invalid value is refused with its key named, and the constructor refuses it before forming the constants. * - ``Closure.WallDistanceIsCheckedOnce`` - :math:`d + z_0 > 0` is checked once per level, where the wall distance is made, the ghost cells included: a zero ghost distance is refused with :math:`z_0 = 0` and accepted with 0.1, −0.1 with 0.1 is refused. ``evaluate`` repeats the check only with ``STEER_DEBUG_CHECKS`` (Debug builds and ``STEER_TESTING`` builds). * - ``Closure.FaceMeanIsLogarithmicAcrossVerticalPairsOnly``, ``Closure.LogarithmicFaceMeanReproducesTheLogLawFlux``, ``Closure.ResidualWithClosureIsTheResidualWithItsFields``, ``Closure.RelaxationCheckpointAndFrozenSwitches`` - The logarithmic mean against (a − b)/ln(a/b) on random pairs (1e-13; single 1e-5), equal values, zero, continuity across its series switch; on a log-law column the logarithmic face mean gives the wall flux u*² at every interior u face (1e-12) where the arithmetic mean misses the first by 2–12 %; the implicit operator with the same mean satisfies A₁u = −D(u). Over a 120 m hill the residual with the closure equals the residual with the closure's own fields given minus the sources bit for bit, the k line Jacobian's diagonal differs by dSdk exactly, every field is finite with positive diffusivities, misuse (fields given with a closure, no wall distance) is refused, and ``height_above_ground`` is the node-mean height above the column's ground. Relaxation: ν_t = 0.6 new + 0.4 stored exactly, unrelaxed without history, and the history survives a checkpoint round trip onto other boxes (identical relaxed evaluation); frozen switches hold the floor decision after k drops below it. * - ``Poisson.ManufacturedSecondOrderAllBCs`` - Manufactured :math:`\phi` on a stretched STF mesh over a 60 m hill: every lateral BC (periodic, Neumann, Dirichlet) with a Dirichlet or Neumann top, 2-D (y periodic) at three resolutions, and a 3-D case (Neumann in x, Dirichlet in y, two resolutions): order ≥ 1.9 (single precision: 1.8 coarse, 1.6 fine), residual below 10 × tolerance. The solution has zero gradient at the ground and level side faces, so it measures the order away from the ground's cross terms; the next row tests a tangential gradient at sloped ground. * - ``Poisson.GroundNeumannIsSecondOrderOnSlopes`` - With a tangential gradient at sloped ground: order ≥ 1.9 on flat ground and over 60 m and 120 m hills (64 → 128 → 256 cells), and a fine-mesh error over the 120 m hill less than twice that over the 60 m hill (1.33 measured). Double precision only. With the even ghost used before, the hill orders were about 1 and the ratio about 4 (slope²). Pins the ground treatment (:doc:`solution_algorithm`). * - ``Poisson.NeumannGroundGhostIsExtrapolated`` - ``PoissonSolver::fill_ghosts`` with a Neumann ground and a Dirichlet top, every lateral combination (periodic, Neumann, Dirichlet in x and y), 8 × 6 cells in 4 × 3 boxes, a field varying in i, j and k: the ghost below the ground is :math:`s\,(2\phi_0 - \phi_1)`, with :math:`s = -1` for each Dirichlet side crossed, to 1e-12 (expected values from the cell indices); a domain one cell tall keeps the even copy. Fails with the even copy below the ground. * - ``Poisson.VariableCoefficientsSecondOrder`` - The anisotropic operator with :math:`\beta_v/\beta_h` = 1, 0.5, 0.1 (``z_cross`` set) on flat ground and over the hill, and a spatially varying :math:`\beta` over the hill: order ≥ 1.9 (single: 1.8, 1.6). Without ``z_cross`` the hill error is more than 5 times larger. * - ``Poisson.UnitCoefficientsAreThePlainOperator`` - :math:`\beta = 1` gives the no-coefficient path bit for bit (iterations, solution, fluxes); :math:`\beta = 2.5` on every face gives :math:`\phi/2.5` and the same fluxes (to 1e-9; single 1e-4). Both paths are this layer's; there is no separate plain projection to compare with. * - ``Poisson.NeumannFacesCarryNoFlux`` - On a ramp (slope 0.15) crossing the Neumann faces, their fluxes and the ground's are exactly zero, and :math:`\sum J\,A\phi` equals the flux out of the Dirichlet top (1e-12; single 1e-4). * - ``Poisson.OperatorMatchesFluxDivergence`` - Operator and fluxes agree cell by cell, :math:`A\phi = -\nabla_h\cdot F` (1e-12 of :math:`\max|A\phi|`; single 1e-4), with varying coefficients and ``z_cross`` on the ramp, Dirichlet and Neumann top. * - ``Poisson.ProjectedFieldIsDivergenceFree`` - Projection: the divergence of :math:`u + F` is below 10 × tolerance of the divergence of :math:`u`, and equals the residual of the solve. * - ``Poisson.MirrorSymmetry`` - Symmetric hill and right-hand side: :math:`\phi` mirror-symmetric to 1e-12 of :math:`\max|\phi|` (single 1e-5), Neumann and Dirichlet sides. * - ``Poisson.PreconditionerCutsIterations``, ``Poisson.SingularProblemRemovesTheMean``, ``Poisson.ChecksNameTheInput`` - Preconditioner, with bounds 10 % above the counts measured: 19 iterations isotropic (more than 10 times as many without it); 16 for :math:`\beta_v/\beta_h = 0.1` told the ratio (at most 3 more than isotropic; not told, more than 1.5 times as many); 29 for :math:`\beta` varying over 100 times. A singular problem reports and removes the mean. Option and BC checks, coefficients that are not positive, MultiFabs on another layout and a solve that does not converge each stop with the input named. ``tools/poisson_ms_check.py`` (sympy, not run by CI) checks the manufactured solutions' boundary conditions. * - ``PoissonB.ManufacturedSecondOrder`` - Back end B (``mlmg`` and ``gmres_mlmg``): every lateral BC × Dirichlet/Neumann top × Neumann (zero-gradient solution) / Dirichlet ground, 2-D (y hidden) at three resolutions (two in single precision), and a 3-D case: order ≥ 1.9 (single: 1.8, 1.6). * - ``PoissonB.DirichletGroundSecondOrderBackendA`` - Back end A with a Dirichlet ground: order ≥ 1.9 for every lateral BC and top. * - ``PoissonB.BackendsAgreeWithVariableCoefficients`` - Spatially varying coefficients, Neumann and Dirichlet ground, 3-D with non-periodic sides (Neumann x, Dirichlet y and top): both back ends solved to 1e-12 give :math:`\phi` within 1e-9 of max :math:`|\phi|` (single: 1e-5 and 1e-4), and the fluxes satisfy :math:`\nabla_h\cdot F = -\mathrm{rhs}` to the residual. * - ``PoissonB.UnsupportedCombinationsAreRefused`` - ``z_cross`` with back end B, ``z_cross`` with a Dirichlet ground, ``apply`` with back end B, an unknown back end, ``solver.poisson_precond`` with back end B, ``solver.poisson_restart`` with ``mlmg`` and a non-converging MLMG solve each stop with the input named. * - ``WallDistance.FlatGroundIsTheHeight``, ``WallDistance.FlatGroundSecondOrder``, ``WallDistance.RidgeWithinErfTolerances``, ``WallDistance.Hill3dWithinErfTolerances``, ``PoissonBWallDistance.*`` - Tucker distance against the exact distance with ERF's tolerances on ERF's decks: flat ground (max relative ≤ 3e-3, ≤ 0.1 m below 100 m; single 1e-2 and 0.5 m), 2-D ridge and 3-D hill (max relative ≤ 0.15, mean ≤ 0.03, ≤ 0.2 cells below 100 m); the 3-D hill with periodic and Neumann sides; both back ends (back end B on 64-cell boxes, under CI's trap). Single precision solves to 1e-4. On flat ground the error converges at second order (32, 64, 128 layers; double precision). * - ``Mesh.NoSentinelNodesLeft``, ``WallDistance.GhostFillFollowsTheBoundaryConditions`` - No node of ``z_phys_nd`` (ghosts included) holds ERF's ``bogus_large_value``, for BTF, STF and Sullivan with periodic and non-periodic sides; ``fill_ghosts`` fills every ghost cell, corners and between-box ghosts included, with odd copies below a Dirichlet ground and even copies at Neumann faces. * - ``Initializer.EqualAlphasAreThePlainProjection`` - :math:`\alpha_h = \alpha_v = 1`: the initial field equals the Poisson layer's plain projection of the same first guess (the solve without coefficients, applied the same way) bit for bit, :math:`\lambda` included; :math:`\alpha_h = \alpha_v = 2` gives the same velocity within 1e-9 of max :math:`|u|` and :math:`\lambda/4` (single: 1e-4); the scalar state is untouched by the correction. Scaling the whole z flux by :math:`\alpha_v^2` instead of the cross part by :math:`\alpha_h^2` gives a different field; with periodic sides the hill case is divergence-free as a singular problem and the seam ghost of :math:`u` is the corrected periodic image; a :math:`\lambda` handed in with garbage is zeroed first; the divergence after is measured, not assumed. * - ``Initializer.*`` - The divergence after the correction is below 10 × ``solver.poisson_reltol`` times the divergence before, in the solver's own operator (``velocity_divergence``), in every initializer test. * - ``Initializer.FlatTerrainLeavesTheProfile`` - Flat terrain, open and periodic sides: the profile is divergence-free, so :math:`\lambda`, :math:`w` and the divergence stay below 1e-12 and :math:`u` equals the log law at every x face's height (single: 1e-4, 1e-5). * - ``Initializer.D4SymmetryOnTheRoundHill`` - D4 symmetry: on a square domain with a Gaussian hill, the wind along ±x and ±y (its own inflow and outflow faces each time) gives fields that are the eight transforms of each other: the cell-centred velocity vector maps with the transform's matrix, :math:`w` and :math:`\lambda` as scalars, within 1e-12 of the maxima (single 1e-5), with the solve converged to round-off (``reltol`` 3e-15). * - ``Initializer.SummitSpeedUpDecreasesWithAlphaRatio`` - The speed-up above the summit (four central cells a quarter of the depth up, over the profile at their height) falls by more than 0.01 at each step of :math:`\alpha_v` = 1, 0.7, 0.5, 0.3, 0.1 (1.015, 0.998, 0.975, 0.943, 0.913 on the 1 km test domain, whose open faces are 500 m from the summit), and :math:`\alpha_h = 2, \alpha_v = 1` gives the same value as :math:`\alpha_v = 0.5` (the ratio alone matters; 1e-9). The preconditioner is told the ratio: at most 21 GMRES iterations at every ratio (13 to 19 measured). * - ``Initializer.FirstGuessByHeightAboveGround`` - The first guess over sloping terrain: :math:`u` at every x face, the two ghost layers included, and :math:`v` at every y face equal the profile at the face's height above its column's ground with the 3 m floor (the floor acts on the ground faces and the ghosts below); :math:`\theta` equals the sounding by absolute height; :math:`k` the profile's value with the decay above 200 m, and :math:`u_*^2/C_{\mu 0}^2` everywhere without it; :math:`p' = 0`; :math:`w_0 = 0` except on the ground faces, which carry no flux (:math:`\Omega_0 = 0` to round-off); every ghost cell of the state is written (no NaN from the allocation); the O'Brien pass refuses a layout whose boxes do not span the column. * - ``Initializer.OBrienColumnCorrection`` - O'Brien: :math:`\Omega_0` vanishes at the ground and the top exactly, the divergence left in every cell is the weight difference :math:`f_{k+1}^2 a_{z,k+1} - f_k^2 a_{z,k}` (:math:`f` the height fraction, which the test shows differs from the index fraction on the stretched mesh) times the column's residual (1e-11), the column sum equals the residual flux, the residual the function returns equals the largest column's; through the initializer the correction starts from a different divergence than without O'Brien (not a lower one: the terrain-following first guess is already consistent at the ground) and gives a different :math:`w`. * - ``Initializer.InputsAndPoissonTypes`` - Inputs: :math:`z_{agl,\min} < 0` or NaN, :math:`\alpha_h \le 0` or infinite, :math:`\alpha_v < 0` or NaN, :math:`z_i < 0`, and any key other than ``first_guess`` given without ``first_guess = profile`` are refused with the key named, by the checks and by both entry points; ``first_guess = none`` leaves the state untouched; the reader takes every key and refuses an unknown ``first_guess``, ``obrien = 2``, a repeated key and the keys without the first guess; the Poisson types of the correction are Dirichlet on inflow and outflow faces, Neumann elsewhere, periodic where the mesh is; a face set that does not fit the mesh is refused. * - ``Poisson.SplitOperatorKeepsTheMirrorSymmetries`` - The split anisotropic operator (``z_cross`` set, :math:`\beta_v = 0.36`) on a Gaussian hill varying in x and y keeps the mesh's x and y mirror symmetries within 1e-12 of max :math:`|\phi|`; the cross kernel's first transcription broke the y symmetry at the 1e-4 level. * - ``PseudoTime.StepFloorFollowsTheFastestCell`` - The step floor (``steady.dtau_floor``): with half the domain moving at U in x and the rest at rest, the cells at rest get CFL min(dx, dy)/(φ U) and the moving cells keep CFL dx/U (dx = 62.5 m, dy = 50 m, so min(dx, dy) is not dx; 16 × 16 × 8 cells in four 8 × 8 boxes); with the motion in y the rest cells follow V; φ = 0 gives CFL/1e-12 at rest; a negative, NaN or infinite floor is refused. On 2 and 4 ranks whole ranks are at rest, so the maximum needs its all-reduce. * - ``PseudoTime.LocalStepMatchesTheAnalyticLimits`` - The local pseudo-time step on known fields: uniform :math:`(u, v, w)` and :math:`\nu` on a flat uniform mesh give :math:`\mathrm{CFL} / (|u|/\Delta x + |v|/\Delta y + |w|/\Delta z + 2\nu(1/\Delta x^2 + 1/\Delta y^2))` in every cell to 1e-14 (single 1e-6; the hill cases 1e-12 and 1e-5), without :math:`\nu` the diffusive term is gone, a field at rest without diffusion gets the floored step, :math:`u` varying in :math:`x` gives the face mean per cell, a terrain-following field (:math:`\Omega = 0`) over a 120 m hill has no vertical term and a plain :math:`w` over it the term :math:`|w| / (J \Delta\zeta)` cell by cell; a non-positive or NaN CFL and a face layout are refused. * - ``Driver.SerRampFollowsTheLawAndItsCaps`` - The SER ramp on a geometric residual (rate 1/4): CFL 1, 1, 1, 4, 16, 64, 64, 64 (``cfl0`` through the two reference iterations, then the law capped by the growth 4 and ``cfl_max`` 64), :math:`p = 2` without caps 256, 4096, 65536, a growth cap of 1.5 binding every iteration, :math:`p = 0` holding the CFL, a residual of exactly 0 reaching the cap through the growth cap; the stage's :math:`\Delta\tau` follows the CFL. * - ``Driver.SwitchRulesHaveHysteresis`` - Switch rules on scripted residuals (:math:`W` = 5, threshold 0.01, back growth 10): a residual alternating about the threshold never switches; five iterations below switch forward at iteration 5 with the reason naming ``steady.switch_residual``, the residuals and the stage's ``init`` recorded; a 20× growth of the second stage's residual switches back at iteration 11 (the window compared must lie within the second stage, entered at 6); every pair of switches is at least :math:`W` apart; the records carry each iteration's stage; one stage never switches. * - ``Driver.HistoryRecordsTheResidualNorm`` - A new run records the norm (driver history format 4) and a write and a read keep it; a format-3 file reads as not recorded, and a restore from it says so in the log; a norm other than 0 or 1 is refused. * - ``Mesh.RestartAcceptsHeightsWithinAFewUlp`` - Node heights one ulp above this build's, or ±32 ulp of the top level's height, restart, and the run continues on this build's heights; ±128 ulp, 64 000 ulp and a NaN node stop it (before, any difference did). * - ``Mesh.KeepsTheSmallestJacobian`` - The mesh keeps the smallest :math:`J` when it makes its metrics (the pressure correction reads it every iteration). After ``build``, a restart check and ``adopt`` it equals the field's minimum bit for bit; on flat ground it is the first layer over the computational spacing, 40/100. * - ``Driver.HistoryIsRestartableBitForBit`` - The history written to ``/Driver`` and read back is equal field by field (records, switches with their reasons, accounts, the criterion's history); a two-stage run interrupted after 6 iterations and continued by a new driver from the file on the saved state gives the same records (stage, CFL, relative residual, residuals, monitors), switches and verdict iteration as the uninterrupted run; the AU of Kestrel CPU on 2 nodes equal 20 × wall hours; the history is identical on every rank; a truncated file, a missing file and a history for another number of stages are refused. * - ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` - A residual that becomes infinite or NaN stops the run as ``Diverged`` with no arithmetic on it (the traps); ``max_iterations`` bounds a run that never settles and a second ``run`` does nothing; no stages, a null stage and stages that disagree on residual names are refused (a null first stage too); ``restore`` refuses a NaN CFL, a switch state or iteration count that does not fit the records, and brings the CFL within changed bounds; every ``steady.*`` range check names its key; the reader takes every key, its defaults, and refuses a repeated key, an unknown machine and a bad value. * - ``Predictor.APIsTheDiagonalPlusThePseudoTimeTerm`` - :math:`a_P` on every x-, y- and z-face equals :math:`1/\Delta\tau` plus the diagonal of ``line_jacobian`` exactly, with a random :math:`\Delta\tau` field over a 60 m hill with random diffusivities (both diagonals come from ``implicit_rows``, whose coefficients ``LineJacobian.MatchesFiniteDifferenceJacobian`` pins: the statement is the :math:`1/\Delta\tau` addition and the face step); the diagonal exceeds :math:`1/\Delta\tau`; the two copies of the periodic seam face have identical rows and identical corrections; the pressure and scalars are untouched and :math:`u` changes by exactly the z-line solve's correction. * - ``Predictor.ZLineJacobiConvergesToTheDenseSolution`` - The z-line solve (the vertical upwind weights of :math:`A_1` included) against a dense direct solve of the same system, assembled independently from the coefficient fields: on a single column (1 × 1 × 12, periodic sides, the lagged neighbours are the column itself) to 1e-12 after 60 sweeps (single 1e-4), and on a 3-D problem (4 × 4 × 6, periodic, :math:`\Delta\tau` = 20 s) to 1e-10 after 400 sweeps (single 1e-4); in both cases the error falls at every doubling of the sweeps (1, 2, 4, 8, 16), the last sweep's change is below the same tolerance and the ghosts outside the domain stay 0. * - ``Predictor.UnderRelaxationIsAPseudoTimeStep`` - :math:`\alpha_u` relaxation equals pseudo-time relaxation: with :math:`\Delta\tau = \alpha_u/(1-\alpha_u)/ \mathrm{diag}(A_1)` on every face, :math:`a_P = \mathrm{diag}(A_1)/\alpha_u` to 1e-12 (single 1e-5) and the converged correction of u, v and w equals the dense solve of the relaxed system to 1e-12 (single 1e-4). * - ``Predictor.AConvergedStateIsAFixedPoint`` - Fixed point: a uniform wind over flat ground with uniform pressure has a residual of exactly zero and the predictor changes nothing (:math:`|\Delta q| = 0`; with a zero right-hand side the solve is zero for any coefficients, so this follows from the residual); a perturbation of :math:`u` at one face is pulled back: one predictor step with :math:`\Delta\tau` = 10⁴ s and 50 sweeps lowers max :math:`|R_u|` below 0.75 of its value (0.56 measured; the pressure and the transport are frozen in the step). * - ``Predictor.FaceStepRefusalsAndRankIndependence`` - ``face_dtau`` is the mean of the two cells, the one cell at a wall, the ground and the top, and the periodic image across the seam; one sweep's change is the whole correction; ``sweeps < 1``, a non-positive step (one NaN cell on one rank too) and wrong layouts are refused. A non-positive step at the faces is refused by the predictor in debug builds only (``face_dtau`` checked the cells). * - ``Predictor.DirichletRowsAreSetExactly`` - With boundary conditions (inflow at xlo, outflow at xhi, slip ground and top), the Dirichlet rows (the inflow face of u, the ground and top faces of w) have :math:`a_P = 1`, :math:`d = 0`, and one predictor step sets them to the boundary value exactly for any :math:`\Delta\tau` (the inflow faces then have a zero residual row); every other row has :math:`a_P = 1/\Delta\tau + \mathrm{diag}(A_1)` and :math:`d = a_P - \sum a_{nb} > 0`. * - ``Predictor.IndependentOfTheBoxLayout`` - The same state on one box and on 2 × 2 boxes (the lagged neighbours cross the box seams through the ghost exchange) gives the same corrected u, v, w, :math:`a_P`, :math:`d` and face step to 1e-12 (single 1e-5). * - ``Predictor.CoriolisMeanIsRankIndependent`` - With the Coriolis coupling on, six boxes on their ranks and in reverse give the same u and v update bit for bit (the level mean is a fixed-order sum; with the atomic sum it differed by 2.2e-16 on 2 and 4 ranks). On one rank the two maps are the same, so only the 2- and 4-rank runs can fail. The mean's value is pinned by ``Simplec.PointImplicitCouplingsArePinned``. * - ``Predictor.WVnnCapAddsToTheWDiagonalAndD`` - The w rows' VNN cap (``simplec.w_vnn_cap``, :doc:`solution_algorithm`) on the boundary-condition state of ``Predictor.DirichletRowsAreSetExactly`` with :math:`\Delta\tau` of 400–1600 s (an uncapped VNN above the cap): with :math:`V = 16` every interior w row has :math:`a_P = 1/\Delta\tau + (a_{ZM} + a_{ZP})/V + \mathrm{diag}(A_1)` and :math:`d` larger by :math:`(a_{ZM} + a_{ZP})/V` (1e-13; single 1e-5), the Dirichlet ground and top rows keep :math:`a_P = 1` and :math:`d = 0`, the effective VNN stays below :math:`V`, and the w correction is the z-line solve with the capped diagonal; u and v, and every field with the cap 0, are bit-identical to the call without the argument; a negative, NaN, infinite or subnormal cap is refused. On 1, 2 and 4 ranks (2 × 1 boxes). * - ``Predictor.WVnnCapSlopeMarginKeepsThePressureOperatorDefinite`` - The slope-aware cap (``simplec.w_vnn_cap_slope_margin``) on a steep manufactured hill (150 m over 1000 m, :math:`h^2` up to 0.12) with VNN up to about 70, :math:`V = 16`, margin 10: on every interior w row :math:`a_P` and :math:`d` gain :math:`\min(K/V, \max(0, 1/(s r_c) - 1)/\Delta\tau)` (the slope from the face's node heights, computed in the test; 1e-13, single 1e-5), the limit binds on some rows and not on others, :math:`1/(1 + \text{term}\,\Delta\tau) \ge s r_c` on every sloped row, the u and v rows are bit-identical to the call without the margin; with margin 100 (:math:`s r_c > 1` on the steepest rows) those rows get no cap and no row gets less than none; a margin of 0.5, NaN or infinity is refused; on 1, 2 and 4 ranks. :math:`r_c` is pinned at :math:`a = 0.18` (0.04135501, the smaller root of :math:`a r^2 - (2a + 4) r + a`). ``Predictor.IndependentOfTheBoxLayout`` also runs the cap with margin 4 on one box and on 2 × 2 boxes (w, :math:`a_P` and :math:`d` of the w rows agree to 1e-12). * - ``Predictor.WVnnCapSlopeMarginIsBitIdenticalOnFlatGround`` - On flat ground (several boxes) the cap :math:`V = 20` with margin 4 and with margin 0 gives the same w rows (:math:`a_P`, :math:`d`) and the same u, v and w, bit for bit; the cap itself changes :math:`a_P`. :math:`1/20` is inexact, so a regrouped term would differ. * - ``Simplec.OneCorrectionRemovesTheDivergence`` - One pressure correction of a predicted velocity (random wind, slip ground and top, periodic sides) leaves a divergence below the Poisson tolerance of the predicted one (0.1 and 1e-10, 2-norms), the ground and top faces of w untouched (:math:`d = 0`), :math:`p` changed from a random start by :math:`\alpha_p` times the potential (:math:`\alpha_p` = 1 and 0.7); the stage's iterate reports the same divergences and six residual norms. * - ``Simplec.PoiseuilleToMachinePrecision`` - Poiseuille flow between no-slip walls (uniform mesh, 16 layers, :math:`\nu` = 10 m²/s, F = 1e-4 m/s²): the stage at CFL 10 reaches the discrete closed form :math:`u_k = (F/2\nu)(z_k(H - z_k) + \Delta z^2/4)` (the odd mirror of the walls) to 1e-13 of :math:`u_{\max}` (single 1e-5) in under 400 iterations; w, v exactly 0, :math:`p'` at round-off, θ and k untouched; one more iteration changes u by less than 1e-14 (the fixed-point check, also run on a uniform state in ``Simplec.AUniformStateIsAFixedPoint``). * - ``Simplec.LidDrivenCavityRe100`` - The lid-driven cavity at Re 100 (64 × 64 in x–z, two periodic cells in y, no-slip walls, the lid at U = 1, :math:`\nu` = 0.01) run by the driver (four sweeps, CFL 1 → 4) to its verdict: u on the vertical centreline and w on the horizontal one within 0.01 U of Ghia, Ghia and Shin (1982) at their tabulated points (measured 0.0045 and 0.0083; 1760 iterations, 14 s); nothing varies in y. * - ``Simplec.CorrectionTendsToTheProjectionAsDtauGrows`` - With :math:`d = 1/\Delta\tau` on every interior face and :math:`\Delta\tau` = 1e3, 1e6, 1e9, the corrected velocity equals the plain projection's to 1e-9 of U (single 1e-4), :math:`\Delta\tau\,p'` equals the projection's potential to 1e-8, and the divergence falls to the solver tolerance: no breakdown as :math:`\Delta\tau \to \infty`. * - ``Simplec.KStaysAboveTheFloor`` - With the closure and a strong random wind, k stays at or above the floor after each of five iterations: a floor of 1.5 above most of the initial k (the clip acts and its count is reported) and a floor of 1e-6 below every value (the natural case: no cell is clipped), every field finite. * - ``Simplec.AUniformStateIsAFixedPoint`` - A uniform wind with slip walls has a residual at round-off and a full iteration changes every field by less than 1e-14 of its scale (the Poisson solve of a zero right-hand side returns round-off); the monitors are the speed and the mean k. * - ``Simplec.PointImplicitCouplingsArePinned`` - The point-implicit buoyancy and rotation of the predictor pinned against their formulas on a random stratified rotating state, with ``rotation_relax`` 1 and 0.3: :math:`a_P` and :math:`d` of u, v, w, the stiffness rows, and the corrections equal to the z-line solves of the modified rows (1e-13; single 1e-4). * - ``Simplec.MovingLidAndLateralWalls`` - The moving lid and lateral walls: the ghost of u above a moving top is 2U − u, the ghost of w beyond an x wall is −w, u is 0 on the x walls (2 n_y n_z Dirichlet rows), and the checks refuse a wall velocity on another face type, a normal component and a non-finite value, and a lateral surface layer. * - ``Simplec.InputReadersAndRefusals`` - The readers of ``simplec.*``, ``forcing.*`` and ``convection.*``: values, defaults, range checks naming the key (``rotation_relax`` in (0, 1] and ``w_vnn_cap`` 0 or finite and ≥ 16 included), repeated keys, keys with no effect (``ug`` without Coriolis and without geostrophic forcing, ``theta0`` without gravity, ``smooth_eps`` without the van Albada limiter), the value counts; the stage's refusals (sweeps < 1, no boundary conditions, a closure not the inputs', :math:`\alpha_p` out of range, a negative or non-finite SIMPLEC denominator, each of the three named in the message, a scalar sweep of a velocity, a negative floor; a non-positive step in debug builds only). * - ``Simplec.WallKRowsAreFolded`` - The wall-k rows folded into the implicit rows: with a surface layer the first cells' k rows are, for ``bc.surface_wall_k = dirichlet``, the diagonal :math:`\max(u_*, u_{*,\min})/d_0` alone with every neighbour zero, and for ``source`` the plain rows without the ground neighbour plus that diagonal. * - ``Terrain.GroundAndTopCarryNoFlux`` - Over a 60 m hill (and over flat ground) the ground and top faces of w take the no-flux value after the fill: Ω vanishes on every ground and top face to 1e-12 (it is 0.1 or more before the fill on a random w), the two ghost layers mirror about the face value, the lateral ghost columns of the face rows are the periodic images of the valid faces, the Dirichlet rows of the residual vanish, and the homogeneous fill of a perturbation gives the same linear relation; over flat ground the value is 0. * - ``Terrain.RayleighFieldsAndHeight`` - The Rayleigh layer's fields and height: with ``bc.rayleigh_fields = w theta`` the residual and the implicit diagonal of u, v and k stay 0 and those of w and θ do not; θ's residual is c(θ − θ_s) with the sounding at the absolute height (and at the height above the ground with ``bc.rayleigh_height = above_ground``) at every damped cell (1e-12; single 1e-4); the readers of the two keys, the refusal of an unknown field name and of a bad height word, and the no-effect check without a layer. * - ``Predictor.LusgsSweepMatchesTheDenseReference``, ``Predictor.LusgsOnTwoBoxesConvergesAndIsRankIndependent`` - One and two symmetric line LU-SGS sweeps on a 6 × 3 × 4 box (cells and x faces; non-periodic, and periodic cells where the seam couplings are the previous pass's values) equal a dense block-triangular reference (the forward and backward solves with the lower or upper x/y couplings and every z coupling in the matrix, the rest on the right-hand side) to 1e-12 of the solution; 40 sweeps reach the dense solution of the full system to 1e-11. * - ``Predictor.LusgsOnePassIsExactAlongTheWind`` - Pure first-order upwind convection along x on a non-periodic box, wind in +x or −x: one symmetric sweep equals the dense solution to 1e-12, a second sweep changes nothing (1e-13), and two z-line Jacobi sweeps are still 1e-3 off (the lag). * - ``Predictor.LusgsConvergesForEitherWindSign`` - The real :math:`A_1` of u (implicit vertical advection and diffusion, the principal diffusion) on a periodic 4 × 4 × 6 hill mesh with a uniform wind of either sign at Δτ = 20 s: the LU-SGS error falls with every sweep, is below the Jacobi error after four sweeps, and reaches 1e-10 of the dense solution after 40. * - ``Simplec.WallKRowsAreFolded`` (the scalar sweep) - The scalar sweep of k with ``lusgs`` is the ``zline_lusgs`` solve of the same rows (1e-13), differs from the Jacobi solve, and with a floor above the smallest result the clip holds k ≥ floor everywhere (cells clipped > 0). * - ``Predictor.LusgsFixedPointAndRefusals`` - A zero right-hand side gives a zero correction and zero change for one and three sweeps; the dispatcher routes by kind (``line_sweeps``); sweeps < 1 and a wrong A are refused; the kinds have their names (``sweep_name``). The readers of ``steady.sweep`` and the ``zline_sweeps`` bounds are checked in ``Driver.DivergenceStopsAndTheChecksNameTheirInput``. * - ``Initializer.ColumnGuessAndProjectionSwitch`` - The in-memory table profile evaluates its table (exact at the heights, linear between, constant beyond) and refuses a first height ≠ 0, non-increasing heights, θ ≤ 0, k < 0 and a single row; with the column override the first guess takes u, v and k from the table at the cell-centre heights of a flat mesh (1e-13) and θ from the sounding, and the override is required; ``init.projection = 0`` leaves the first guess untouched (no Poisson solve, divergence before = after) while the projection changes it over a hill; the readers of ``projection``, ``column_tol``, ``column_max_iterations`` (values, defaults, a bad value, no effect without the column, α without the projection) and ``check_column_guess`` (no forcing, no stage, no surface layer, a heat flux with the ``mol`` column mode, the source wall k, a reference height, a stable sounding without damping; the first two naming their key). * - ``Initializer.ColumnGuessRunsTheColumn`` - The 1-D column on 16 levels over 1000 m under the flat deck's sounding with the hill decks' Rayleigh layer on w and θ: converges within the limit, the ground row at z = 0, heights strictly increasing, u and v bounded, v > 0 near the ground (the Ekman turning at latitude 90), the geostrophic wind at the top within 0.5 m/s, k at the floor in the inversion and largest near the ground, the first cell's k = u*²/C_μ0² (1e-12), u* in 0.2–0.6 m/s, the table identical on every rank. * - ``ColumnStability.*`` - The stratified column (``init.column_stability``) on 64 × 1 m layers with a Rayleigh layer on θ above 48 m: the neutral default holds θ; ``mol`` (L = 500, −100 m), ``heat_flux`` and ``surface_temperature`` each meet MOST's closed forms at the first cell (1/L, q, u*, θ₁ − θ_s; Axell's wall k when unstable); ``mol`` reaches L = 418 m, past the flux peak (L = 424 m at θ_s = 298.9 K) and above the smallest L, 413.7 m (both from a sweep of ``surface_temperature`` columns); L = 50 m stops the run naming a smallest L of 414 m (2 %), and so does a tight ``init.column_rib_max``; the iteration limit names ``init.column_max_iterations``; the target wind is met between centres (linear in ln(z + z₀)) and below the first centre (MOST's profile), with a pressure gradient (:math:`|F| H = u_*^2`, 1e-6) and with geostrophic forcing; the wall gradients are MOST's at d/L; the surface solve against its Businger–Dyer closed form (Rib = 0.15, the 0.19 cap, a tighter ``init.column_rib_max``), QNSE at Rib = 1 and the −4 bound (``SurfaceSolveMatchesTheClosedForm``); QNSE's ψ on the stable side (``QnseStableColumn``); the input checks, including the Rayleigh layer on θ, the 3-D refusals of a target, the flux hand-off of ``mol`` and the Rib bounds. * - ``ColumnCanopy.*`` - The column first guess with a canopy (the 1-D part): under a dense uniform canopy (f = 0.5 1/m over the lowest 40 of 64 layers, a pressure-gradient force F, no rotation) the layers at 10 to 30 m have :math:`|W| = \sqrt{F/f}` and :math:`k` the root of :math:`\beta_p |W|^3 = \beta_d |W| k + C_{\mu 0}^3 k^{3/2}/\alpha`, both within 1e-3 (double), and v = 0; with ``canopy.tke = off`` the speed lies above :math:`\sqrt{F/f}` by less than a factor 2.5 at 10 to 20 m (the diffusion of the larger k; 34 % at 10 m to about 110 % at 20 m) and k is above 0.3 and 100 times the value with the terms on; a canopy of f = 0 everywhere gives the no-canopy table bit for bit and the dense forest's first cell is below 0.2 of the bare column's; a profile that is not one value per layer is refused. * - ``Canopy.ColumnProfileIsTheLayerMeanAndSpread`` - ``Canopy::column_profile`` and ``column_canopy`` (the field side): a uniform 20 m map canopy gives in every layer the uniform profile's cell mean from the flat mesh's levels (1e-12) and a spread of 0, and ``column_canopy`` returns it; a map with LAI 3 on one half of the domain and 6 on the other gives the mean of LAI 4.5 and the spread 3/4.5, and ``column_canopy`` refuses it, naming ``init.first_guess``; on terrain it refuses the uniform one too, naming ``terrain.type``. On 1, 2 and 4 ranks (the halves in different boxes). * - ``ColumnMarching.*`` - The time-marching column (``init.column_time``) on the same 64 × 1 m column without the Rayleigh layer on θ: with a fixed flux (0.02 and −0.002 K m/s) for 3605 s in 10 s steps (361 steps, the last of 5 s) the heat content :math:`\sum(\theta - 300)\,\Delta z` is :math:`q t` (1e-8 relative; the implicit solves' round-off); the neutral column marched to 2e6 s equals the steady column (1e-6 m/s); the flux surface meets MOST's closed form (Businger–Dyer stable, ERF's unstable ψ) and returns its flux through the surface-temperature solve (1e-7), a seed above the upper stable root still finds the root, and a downward flux too large for the wind has no root (the column stops, naming the time and ``bc.surface_heat_flux``, also when only the final state has none); ``surface_temperature`` keeps its θ_s and reports the final state's MOST surface (1e-6); the step count (9 s in 0.9 s steps is 10 steps; a time below one step is one step); with ``init.column_wall_k = solved`` the neutral column marched to its steady state satisfies the first cell's discrete k balance with no ground flux, rebuilt with the closure's point kernels (1e-6 of the production; ``SolvedWallK``), and the heated column keeps the heat budget; the input checks (and ``Initializer.ColumnGuessAndProjectionSwitch`` reads ``init.column_wall_k``). Fourteen one-line mutants are caught (the flux term, the last step's length, the sign of ζ, the Rayleigh check, the retry seed, the one-step floor, the final surface, the Richardson-bound refusal, the solved k ignored, a ground k flux, no wall shear at the ground face, the ``init.column_wall_k`` refusal without ``init.column_time``, ``solved`` read as ``fixed``, the final state's MOST check). * - ``StabilityFunctions.*``, ``SurfaceLayer.QnseFrictionVelocity``, ``SurfaceLayer.StableFunctionsKeysAreRead``, ``BoundaryFill.GroundGradientIsTheWallLaw`` - QNSE's φ and ψ against Python values at ζ = 0.1–100 (φ to 1e-14, ψ to 1e-13) and with distinct coefficients per function, ψ against a Simpson integral of (1 − φ)/x (1e-10); the unstable side and the default equal ERF's Businger–Dyer functions; the 3-D u* with QNSE matches a bisection (1e-10) and is 8 % above Businger–Dyer's at ζ = 0.087; the ground ghosts take QNSE's φ; the keys are read and checked by name. Twelve one-line mutants are caught. * - ``LineSweeps.EveryFaceIsOwnedAndSweptOnce`` - On 1, 2 and 4 boxes (an uneven 7 × 6 split and a 2-D 8 × 1 mesh too), periodic and not, the owned regions cover every cell and every x, y and z face exactly once (periodic images identified, an image owning nothing); the box-local sweeps (zero ghosts, :math:`n_o` = 0 and 2, one and two sweeps) equal a host replay written from the ownership rule (1e-13 of the largest value); on one non-periodic box the zero and lagged ghosts give the same result, bit for bit. * - ``LineSweeps.OverlapsReachTheSameState`` - A 16 × 8 mesh in 4 × 2 boxes with a strong x coupling (cells and x faces, periodic and not): the outer defect correction with two box-local sweeps per step reaches :math:`|r| \le 10^{-12}|b|` for :math:`n_o` = 0, 2 and 4, the three states agree to 1e-10, and the outer iterations fall strictly with :math:`n_o` (122, 54, 49 non-periodic). Two boxes of four columns with :math:`n_o = 4` reproduce the one-box sweep bit for bit, and differ from it with :math:`n_o = 0`. * - ``LineSweeps.ConvergedStateDoesNotDependOnTheLayout`` - A 16 × 16 mesh in 1, 4 and 16 boxes (cells, x and y faces, periodic and not; zero ghosts with :math:`n_o` = 0 and 2, and the lagged ghosts): the converged states agree to 1e-10. The box-local sweeps depend on the box shape, so the test is of the converged state, not of the iterates: one step is checked to differ between the layouts. * - ``LineSweeps.DiagonalOrderingEqualsTheSequentialSweep`` - The diagonal wavefront ordering equals the sequential sweep bit for bit (the correction and the reported change): every location, 1, 2 and 4 boxes, periodic and not, one and three sweeps, the lagged ghosts and the zero ghosts with :math:`n_o` = 0 and 2. A per-rank launch counter (``line_sweep_launches``) pins which path ran: two launches per box and sweep for the sequential order, two per wavefront plane of the swept region for the diagonal one, so an ordering that is ignored fails. The stage tests (``Predictor.APIsTheDiagonalPlusThePseudoTimeTerm``, ``Simplec.WallKRowsAreFolded``) check the same counts through ``momentum_predictor`` and ``scalar_sweep``, so the options are shown to reach the sweeps. * - ``LineSweeps.RefusalsAndNames``, ``Driver.DivergenceStopsAndTheChecksNameTheirInput`` - The refusals naming ``steady.line_overlap`` (< 0, > 8, with the lagged ghosts, wider than the narrowest box), no overlap along a one-cell axis, the readers of ``steady.line_ghosts``, ``line_overlap`` and ``line_order`` (values, defaults, unknown words, a repeated key, a line key with ``zjacobi``), the dispatcher. The reader of ``steady.line_alternate`` (the value, the default 0, 2 and -1 refused, refused with ``zjacobi`` and with one sweep). * - ``LineSweeps.AlternatingOrderingSweepsBothDiagonals`` - The alternating ordering (``steady.line_alternate = 1``). On an 8 × 8 × 4 system coupled only to the :math:`(i-1)` and :math:`(j+1)` neighbours (the upwind couplings of :math:`u > 0`, :math:`v < 0`), two alternating sweeps solve it to 1000 machine epsilons (the reversed forward pass is an exact solve), while two sweeps of the ascending pairs leave a residual above 1e-3 of the right-hand side. The diagonal ordering equals the sequential one bit for bit with the reversed pairs too, at the launch counts of ``LineSweeps.DiagonalOrderingEqualsTheSequentialSweep`` (three layouts, periodic and not, every location, lagged ghosts and zero ghosts with :math:`n_o = 2`, one to three sweeps). One sweep is unchanged by the option (only the odd sweeps are reversed); two and three sweeps differ. The range check names the key. * - ``MeshHierarchy.ZLevelsAreIdenticalOnEveryLevel`` - Three levels of a stretched mesh (dz0 = 40 m, the ratio solved by Newton), flat and over a round STF hill: every level's z-levels equal level 0's bit for bit, with the same nz and z extent and x, y halved per level; on flat ground every node of every level sits at its z-level exactly. * - ``MeshHierarchy.GroundSmoothingPasses`` - The pass counts :math:`p(q^l - 1)` pinned for p = 0 to 3, l = 0 to 4 and q = 2, 4; for three levels at q = 2 and two at q = 4, each level's domain, box array (level 0's coarsened by :math:`q^l`) and ``level_ratio`` are checked; for p = 0, 1, 2 every coarse ground of the hill mesh (non-periodic x, periodic y, 8 boxes) equals an independent host rebuild (injection, then that many passes, β = 1/8, in double precision) to 1e-12 of the hill height and differs from one pass more or fewer by more than 1 mm; level 0 is the run's own mesh; a constant 37.5 m ground is unchanged on every level, bit for bit, ghost nodes included. * - ``MeshHierarchy.FreeStreamOnEveryLevel`` - Free-stream preservation on every level for BTF, STF and Sullivan: the metric divergence of a uniform (10, 5) m/s wind below 1e-12 of :math:`(|U| + |V|)/\Delta x` of the level; the coarse grounds are not flat. Run at ``mesh.hierarchy_ratio`` 2 and 4. * - ``MeshHierarchy.FlatTerrainColumnsAgree`` - Flat terrain, three levels (16 × 8, 8 × 4, 4 × 2 × 24 cells, stretched): (a) each level's own Poisson solver gives the same φ column for a right-hand side in z alone; (b) the full residual of a conventionally neutral column state (the k-L closure, the surface layer, Coriolis with a geostrophic wind, a capping inversion with buoyancy) has the same u, v, w, p, θ and k columns on every level, so every level has the same column solutions; (c) ten SIMPLEC iterations keep every column of a level alike. Relative 1e-12. Part (b) compares the steady equations rather than iterates; the pull request that added the test gives the reason. * - ``MeshHierarchy.InvalidLayoutsAbort`` - Every invalid hierarchy input gives one message naming the key (n_cell x or y not divisible, levels beyond the cells, a box size not a multiple of the coarsening, levels 0 and 11, passes −1 and 65, passes without a hierarchy), and ``validate`` reports it; ``hierarchy_box_array`` gives boxes of at most ``max_grid_size`` that coarsen exactly and span the column; a level 0 laid out by ``make_box_array`` with boxes of 6 cells is refused, naming ``mesh.max_grid_size``. At ``mesh.hierarchy_ratio``: 1, 3 and 8 refused; the ratio given with one level refused; ratio 4 layouts that ratio 2 accepts (n_cell 32 × 18 with two levels, a box size of 6, 32 × 24 with three levels) refused with the :math:`4^{L-1}` in the message. * - ``MeshHierarchy.GatheredLevelEqualsDistributed`` - A level gathered onto one box equals the distributed level (8 boxes) bit for bit: node heights with ghost nodes, ``detJ``, the three face areas, ``z_cc`` and the quality report, for BTF and STF, on 1, 2 and 4 ranks. * - ``Transfer.RestrictionConservesFaceFlux`` - A 32 × 24 × 10 mesh in 6 boxes of unequal size (non-periodic x, periodic y), three levels, flat and over a round STF hill (150 m, half width 300 m), level pairs 0 → 1, 1 → 2 and 0 → 2: every coarse face flux equals the sum of the fine ones it covers (:math:`a_x u`, :math:`a_y v`, :math:`a_z \Omega`) to 1e-12 of the largest flux; θ, k and p′ equal the ``detJ``-weighted means; the coarse divergence of the restricted fluxes (u, v and the returned :math:`\Omega_c`) equals :math:`\sum J_f D_f / (r^2 J_c)` to 1e-12 (2e-5 in single precision). Over the hill the test checks that the coarse areas are not sums of the fine ones and that J varies within a coarse cell, so the weights matter. 1, 2 and 4 ranks (6 boxes: uneven on 4). * - ``Transfer.RatioFourIsRatioTwoWithoutTheMiddleLevel`` - Over the hill, two levels at ratio 4 against three at ratio 2 (same level 0): the ratio-4 level 1 has level 2's box array and 3 passes, and its node heights and ``detJ`` equal level 2's bit for bit; restriction 0 → 1 equals 0 → 2, and ``prolong_fields`` and ``prolong_state`` from it into level 0 equal those from level 2, bit for bit. * - ``Transfer.ProlongationAndProjectionIsDivergenceFree`` - Prolongation of a smooth level-1 state onto level 0 (inflow, outflow, surface layer, slip top, periodic y), flat and over the hill, with ``gmres_mlmg`` and ``gmres_fft``: the divergence after the projection is below ``reltol`` times the one before, in the J-weighted 2-norm for ``gmres_mlmg`` and the plain one for ``gmres_fft`` (the norms they stop on). The inflow u keeps its boundary value bit for bit, Ω is zero at the ground and the top, p′ and θ are the interpolated ones, and the projection moved the interior faces. * - ``Transfer.ProlongationOfBilinearFieldsIsExact`` - Flat ground, periodic in x or in y, the three level pairs: a field bilinear in x and y (a tent of the period in the periodic direction, with its kinks on coarse points of the field's type) is reproduced at every fine point of each of the six fields, up to the non-periodic faces and across the seam, to 1e-13 (2e-6 in single precision). The coarse ghost cells are set to 1e30, so a read of them would show. * - ``Transfer.ProlongedTkeIsAboveTheFloor`` - A coarse k between −6e-5 and 1.8e-4 against a floor of 1e-4 (the interpolant is negative somewhere and below the floor in more than 100 fine cells): after ``prolong_state`` every fine k is at least the floor, the reported count equals the number of cells clipped, and the other cells keep their interpolated values bit for bit. A floor of −1e-6, NaN or infinity aborts, naming ``turb.tke_floor``. * - ``Transfer.GatheredLevelEqualsDistributed`` - With levels 1 and 2 gathered onto one box, restriction and interpolation between every pair, and ``prolong_state`` into level 0, give the distributed hierarchy's results bit for bit, over the hill, on 1, 2 and 4 ranks. Both hierarchies use one rank map for level 0: ``DistributionMapping(ba)`` follows each rank's memory at the call, and the Poisson solve's sums differ in the last bits between maps (found in a review, where a cache that keeps memory changed the map). * - ``Transfer.RoundTripIsTheClosedFormSmoother`` - restrict(prolong(c)) on flat ground, periodic in x or in y, against the closed form: :math:`(c_{I-1} + 6c_I + c_{I+1})/8` along a cell-centred direction (the identity in the first and last cells next to a non-periodic face), the identity along a nodal one, for a non-smooth coarse field; to 2e-14 (2e-6 in single precision). * - ``Transfer.TargetNodeHeightsComeFromTheHierarchy`` - Over the hill, for the three level pairs: ``restrict_state`` and ``prolong_fields`` set the target State's ``z_phys_nd``, ghost nodes included, to its level's bit for bit, from a target that held −1. * - ``Transfer.OneCellDirectionIsConstant`` - 32 × 4 cells, periodic x, walls in y, three levels: level 2 is one cell wide in y. A tent in x, constant in y, prolonged from level 2 to levels 1 and 0, is reproduced at every fine point of each field to 1e-13 (2e-6 in single precision). A read of the coarse image's unfilled ghost cells shows as a NaN under ``amrex.init_snan``, even with a zero weight. * - ``Transfer.WrongLevelPairsAbort`` - Level pairs (1, 1), (2, 1), (−1, 1) and (0, 3) abort in ``restrict_state`` and ``prolong_fields``, with the message naming the rule 0 ≤ fine < coarse < levels. * - ``Sequencing.LooseResidualBranchStopsAtThePinnedIteration``, ``Sequencing.LooseResidualBranchWaitsForTheReference``, ``Sequencing.LooseMonitorBranchStopsAtThePinnedIteration``, ``Sequencing.NonFiniteHistoryNeverStops`` - The loose stop on synthetic histories, pinned by an independent Python implementation: three residuals (one peaking at its third value, one below ``residual_tol`` from the start) stop at iteration 92 with two orders and 137 with three, while the strict verdict is not met; residuals far below their first value do not stop before the reference is taken (iteration 4 of 5); two monitors (one with a scale above its value, an absolute test) stop at 88 with ``steady.sequencing_monitor_tol = 0.01`` and never with the default 0 (off); constant monitors stop when the window is full (50), and not before the reference is taken (a window of 10 with 30 reference iterations stops at 29); a history with an infinite residual never stops. * - ``Sequencing.SeededReferenceIsTheDropOrigin``, ``Sequencing.InputChecksNameTheirKeys`` - ``Sequencing.SeededReferenceIsTheDropOrigin``: a residual of 1e-2 is two orders down from a seeded reference of 1 (stop at iteration 4) and never from its own reference of 1e-2; a larger value inside the reference window raises a seeded reference. ``Sequencing.InputChecksNameTheirKeys``: every range check of ``check_sequencing_options`` names its key; the equal-to-strict drop and a monitor tolerance of 0 are accepted; with sequencing off the defaults are not range-checked (a strict drop of 1 or 0 is accepted); a coarsest level of 4 × 2 is accepted and 2 × 1 refused. Mutants: 12 one-line mutants of ``loose_stop``, ``seed_reference`` and the checks; 11 killed, 1 equivalent (the floor of the reference at ``residual_tol``, which matters only where the below-tolerance branch already holds). * - ``Driver.ReleasedHoldRampsFromTheFirstIteration``, ``Sequencing.ReleasedHoldStopsFromTheFirstIteration`` - ``Driver.ReleasedHoldRampsFromTheFirstIteration``: residuals 1/4, 1/16, … with a seed of 1 give the CFLs 1, 1, 1, 4, 16, 64 with the hold and 1, 4, 16, 64, 64 without it (r = 0.25, 0.0625); a seed of 0.1 is raised to the first residual (r = 1, then 0.25: 1, 1, 4, 16, 64); ``start_cfl(8)`` gives 8, 4, 16, 64, and a start below ``steady.cfl0`` is raised to it; the released hold survives a write, read and restore (the continued run is the uninterrupted one), a format-1 history reads as the hold on, a hold other than −1 or 0 is refused on read and on restore; the calls are refused after a step, without a seed and (``start_cfl``) with the hold on or out of range. ``Sequencing.ReleasedHoldStopsFromTheFirstIteration``: a residual of 1e-2 under a seed of 1 stops at iteration 4 with the hold and at 2 without (the third-iteration minimum; at 0 with one reference iteration); a falling and a rising residual stop at 3; the monitor branch waits for the reference iterations with either hold. ``Sequencing.InputChecksNameTheirKeys`` also checks ``steady.sequencing_cfl_start = previous`` against the hold and the has-no-effect messages. All pins were re-derived by an independent Python script. Mutants: 21 one-line mutants of the driver, the checkpoint format, ``loose_stop`` and the checks, all killed; 4 more of the application wiring are killed by the ``rt_sequencing_hold_*``, ``rt_sequencing_cfl_previous`` and ``rt_sequencing_restart`` tests. * - ``Simplec.PointImplicitCouplingsArePinned`` (the planar-mean split) - The rotation's pin holds the planar-mean split: :math:`a_P` with :math:`f^2\max(\tau_c, \tau_{\mathrm{own}})` and the right-hand side with the unique-face horizontal mean of the other residual per level at :math:`\tau_c` and the fluctuation at :math:`\tau_{\mathrm{own}}`. * - ``SteadyCriterion.ConvergingHistoryIsSteadyAtThePinnedIteration``, ``SteadyCriterion.StallingHistoryIsNeverSteady``, ``SteadyCriterion.ResidualAtTheToleranceIsNotBelowIt``, ``SteadyCriterion.OscillatingMonitorIsNeverSteady``, ``SteadyCriterion.OscillatingResidualIsNeverSteady`` - Steady-criterion verdicts on converging, stalling (including a residual stuck exactly at the tolerance) and oscillating histories. The converging history becomes steady at iteration 136, pinned from an independent Python implementation of the definition. * - ``SteadyCriterion.NonFiniteValuesMeanDiverged`` - A NaN or infinite residual or monitor gives ``Diverged``, permanently. * - ``SteadyCriterion.NearZeroMonitorUsesItsScale`` - A monitor at round-off level around zero is steady with scale 1 and never steady with a scale below the noise. * - ``SteadyCriterion.WindowNeedsAllItsValues`` - The monitor window needs :math:`W+1` values; a change of exactly the tolerance passes and one just above it does not (values exact in binary). * - ``SteadyCriterion.DropIsMeasuredFromTheEarlyPeak`` - The residual drop is measured from the early peak (iteration 38), not from the first value (iteration 49). * - ``SteadyCriterion.ParameterChecks`` - Parameter range checks name their keys; bad or missing monitor scales and size mismatches stop. * - ``SteadyCriterion.SlowMonitorStopsNearItsLimit`` - A monitor converging at rate 0.999 stops at iteration 4602, within the tolerance of its limit; the window test alone would stop at 1615 with a 2 % error. * - ``SteadyCriterion.OscillationsUpToFourWindowsAreNeverSteady`` - Undamped oscillations with periods of 37, 100 and 200 iterations are never steady. * - ``SteadyCriterion.ZeroResidualReferenceDoesNotBlock`` - A residual that is zero over the reference iterations does not block the stop. * - ``SteadyCriterion.RestoredHistoryGivesTheSameVerdicts`` - A criterion restored from a saved history gives the same verdict at every later iteration as one never interrupted; a mismatched history is refused. * - ``SteadyCriterion.SlowlyGrowingMonitorIsNotSteady`` - A slowly growing monitor is not steady while its change over the window is still small. * - ``Inputs.*`` - Input parsing; unknown, repeated, multi-valued and out-of-range keys reported with their names. * - ``IO.PlotfileRoundTripIsBitIdentical`` - Plotfile round trip, bit-identical, including the nodal heights and their ghost nodes. * - ``IO.CheckpointRestartIsBitIdenticalOnANewLayout``, ``IO.CheckpointRestartRestoresNodalGhostsOnTheSameLayout``, ``IO.CheckpointWithOneGhostCellRestarts`` - Checkpoint and restart onto another box layout, bit-identical; ghost nodes restored without overwriting valid nodes; a checkpoint written with one ghost cell on the solution fields (the earlier layout) restarts bit-identical. ``IO.CheckpointGhostImagesAreTheNeighboursValues``: with the state's ghosts stale, every ghost image in the written file equals the neighbouring box's (or periodic image's) valid value, and the state keeps its own ghosts (main wrote the stale values: about 2800 per field here). * - ``IO.CheckpointHeaderKeepsTheZLevels`` - A checkpoint on a stretched mesh (``mesh.dz0`` = 100/7) writes format 2; its Header gives back the step, the cell counts, the box layout and every z-level bit for bit (hexadecimal floats). A Header with one z-level removed, and a Header without its ``zlevels`` line, stop the read, naming ``bc.nest_parent`` (not the token found in the key's place). * - ``NestParent.BilinearFieldIsReproducedOnFlatGround``, ``NestParent.BilinearFieldIsReproducedOnAHill`` - A parent field bilinear in x and y with a different slope on each level, at each field's own staggered point, is reproduced on every patch point, ghosts included (the z ghost rows equal the nearest level), on flat ground and over a hill (relative 1e-11; 2e-5 in single precision). * - ``NestParent.EachPlacementFaultIsRefusedNamingTheKey`` - A patch outside the parent, within 2 parent cells of a low or high face, misaligned by 30 m or 25 m, at ratio 4 or 1, on other z-levels (cell count, top or ``mesh.dz0``), periodic in a direction where the parent is not, periodic in z, or narrower than a periodic parent, each stops with ``bc.nest_parent`` in the message; a patch reaching a periodic parent's faces is accepted. * - ``NestParent.OldOrMissingCheckpointAbortsNamingTheKey`` - A format-1 checkpoint still restarts, but as a nest parent stops naming ``bc.nest_parent`` and the format; a directory that does not exist stops too. * - ``NestParent.ValuesDoNotDependOnLayoutOrRanks`` - A smooth, not bilinear parent field interpolated with four pairs of parent and patch box layouts (one box each, several, and rank maps in reverse order) gives the same patch values bit for bit; run on 1, 2 and 4 ranks by the ``unit_np*`` tests. * - ``NestParent.PeriodicSeamUsesThePeriodicNeighbours`` - A patch reaching a periodic parent's face (its ghost cells cross the seam) and a periodic patch spanning the parent read the periodic neighbours: both match a host interpolation that wraps the index. Run at ratios 2, 4, 8 and 16. * - ``NestParent.BilinearFieldIsReproducedAtRatio4``, ``NestParent.BilinearFieldIsReproducedAtRatios8And16`` - The bilinear test of ``NestParent.BilinearFieldIsReproducedOnFlatGround`` and ``…OnAHill`` with ``bc.nest_ratio`` = 4 (flat ground and the hill), 8 and 16: every patch point, ghosts included, matches the closed form (relative 1e-11). * - ``NestParent.PlacementFollowsTheRatio``, ``NestParent.InvalidRatioAbortsNamingTheKey`` - A patch with r times the parent's cells is accepted at r = 2, 4, 8 and 16, and at ratio 16 with the 2-cell margin to the parent's high faces (1 cell is refused); the ratio-2 patch at ratio 4 and the ratio-4 patch at 2 and 8 are refused naming ``bc.nest_parent`` and the ratio; ratios −2, 0, 1, 3, 6, 10, 12, 32 and 64 are refused, naming ``bc.nest_ratio``. * - ``NestParent.ValuesDoNotDependOnLayoutOrRanksAtRatio4``, ``NestParent.RestartRecordHoldsTheRatio`` - ``NestParent.ValuesDoNotDependOnLayoutOrRanks`` at ratio 4. The nest faces' restart record differs between ratio 4 and ratio 2, and at ratio 2 it equals the digest of the record's text as written before ``bc.nest_ratio`` (so older checkpoints restart). * - ``NestFaces.NetFluxIsZeroAfterTheCorrection`` - A patch over a hill with four nest faces and a parent field whose net flux is above 1e-3 of the flux entering: the reported net, flux entering and δ equal sums made on the host from ``Mesh::flux_area``; after the correction the host's net is at most 1e-13 of the flux entering; every nest face point's outward velocity, and the normal velocity's two ghost layers outside it, moved by δ and no other value of u, v or θ changed. * - ``NestFaces.NothingIsRemovedWithAnOutflowFace``, ``NestFaces.TheNetFluxDoesNotDependOnTheRankMap`` - With an outflow face the parent's values are kept and δ = 0. The net, the weight and δ are the same bits with the rank map reversed. * - ``NestFaces.GhostsAndFacePointsHoldTheParentsValues``, ``NestFaces.NoNestFaceAborts`` - After ``fill_ghosts`` both ghost layers of u, v, w, θ and k outside the nest faces, and the normal velocity's face points, hold the parent's bilinear field at those points (0 for a homogeneous fill); p is untouched; the Dirichlet rows are :math:`q - V`. A ``NestFaces`` without a nest face, and a fill of a nest face without one, abort. * - ``NestFaces.BlendedGroundIsTheParentsOnTheFaceAndThePatchsInside`` - With ``terrain.nest_blend_width``: the ground equals the parent's interpolated ground on the nest faces, the patch's own beyond the width, and the closed-form smoothstep between; a face that is not ``nest`` keeps the patch's ground. * - ``NestFaces.NestNodeHeightsDoNotDependOnTheLayout`` - A nest with a blended ground (``blend_nest_ground``) and a joint run's nest (``follow_parent_levels``), BTF and Sullivan, in one box and in boxes of at most 9 x 7 and 6 x 10 cells: the node heights are the same, bit for bit, at every node a box holds. Under gcc-16 the blended BTF nest failed it before the BTF formula was rearranged. * - ``NestFaces.JointNestLevelsFollowTheParentsAloft`` - A joint run's nest (``follow_parent_levels``), BTF and Sullivan: every node equals the parent's interpolated surface plus :math:`(h - h_p)\sinh((H-\zeta)/s)/\sinh(H/s)`, with :math:`s` recomputed on the host; the ground is the nest's own and the top the parent's; with BTF the nest's detail aloft is nowhere larger than with its own surfaces and at least half smaller somewhere. A decay height without the factor 2, and a mesh build that skips the edit, both fail it. * - ``NestFaces.ZoneRateAndSourceEqualTheClosedForm`` - The rate at every point of u, v, w and the cell centres equals :math:`(1 - s/N)\,f\max(0, U_\mathrm{in})/(N\Delta x)` computed on the host (corners add; zero where the parent's flow leaves and beyond N cells), and the source equals :math:`c\,(q - q_\mathrm{parent})` for each of the five fields. * - ``NestFaces.DiagonalIsTheSourcesDerivative`` - The diagonal added for each equation equals the rate at its points, and equals the finite difference of the source for a perturbation of the field. * - ``NestFaces.WidthZeroLeavesTheResidualAndTheDiagonal`` - With ``bc.nest_relax_width = 0`` the residual and the diagonal are bit for bit those without the hooks. * - ``NestFaces.SummaryWarnsAboveTheNetFluxThreshold`` - The summary warns, naming ``terrain.nest_blend_width``, when the net flux removed is above 1e-3 of the flux entering, and not below it (a uniform flow on flat ground: net below 1e-6), nor when an outflow face carries the net. With no flux entering it reports the mean outward velocity, not a ratio. * - ``NestFaces.InputFaultsAreRefusedNamingTheKey``, ``NestFaces.RestartRecordIsCheckedAgainstTheInputs`` - Each range and combination fault of ``bc.nest_relax_width`` (negative, half the patch), ``bc.nest_relax_factor``, ``terrain.nest_blend_width``, ``bc.nest_parent`` and the ``nest`` face types gives a message naming the key. ``bc.zlo`` or ``bc.zhi = nest``, and a lateral wall beside a nest face, are refused. With no ``inflow`` face, ``bc.rayleigh_fields`` with u, v or tke and ``bc.sponge_width`` > 0 are refused; w and theta are accepted, and all five with an ``inflow`` face. The restart record changes with the zone's width and factor, the blend width, the type of any lateral face, the parent's step, the parent's content at the same step, and the patch's place in the parent; not with the parent's path or a second read of the same parent. A checkpoint is accepted with its own record and refused, naming ``io.restart``, with another, with none where it has one, and with one where it has none. * - ``NestFaces.JointNestSurfacesAreSmoothBetweenTheParentsNodes`` - A parent whose surfaces are quadratic in x and y comes back exactly at every valid and ghost node of a joint nest (``interpolate_ground_smooth``, bicubic Catmull-Rom); the bilinear form misses the curvature by 0.75 m at the parent cells' centres. * - ``NestDefect.RestrictionConservesTheFluxesOnAHill`` - On a hill parent with an uneven patch layout, for an arbitrary nest field: on every footprint cell the parent's :math:`J\,\nabla\cdot` after the restriction is the mean of the nest's over its 2 × 2 cells (u, v and :math:`\Omega` restricted as fluxes), so a divergence-free nest field gives a divergence-free footprint. * - ``NestDefect.RestrictionSetsBothCopiesOfAPeriodicSeamFace`` - A parent periodic in x and a footprint starting at its face 0: after the restriction u on face 0 and on its periodic image, face 20, agree. * - ``NestDefect.RestrictionOfCellFieldsAndThePressureLevel`` - θ linear in x and y on flat ground comes back at the parent cell's centre exactly; k constant on the hill is unchanged by the :math:`J` weights; p is the :math:`J`-weighted mean shifted by one constant that keeps the parent's footprint mean; outside the footprint every field keeps its values bit for bit. * - ``NestDefect.ThePressureLevelDoesNotReachTheSource`` - A constant added to p over the footprint leaves the parent's residual unchanged on the source's region (``kDefectMargin`` cells in) and changes it on the footprint's outer cells (the test is not vacuous). * - ``NestDefect.RestrictionDoesNotDependOnTheNestLayout`` - u, v, w, θ and k of the restriction are bit for bit the same for two nest box layouts and rank maps, on 1, 2 and 4 ranks. Each layout builds its own node heights (before, both took one single-box build, since under gcc the BTF heights changed with the layout). * - ``NestDefect.TouchingNestsKeepTheRestrictedOmegaOnBothFootprints`` - Two nests that touch along a parent face, with different u on it, restricted by ``restrict_patches`` on a hill parent: on both footprints the parent's :math:`\Omega` is the :math:`a_z`-weighted mean of the nest's over its 2 × 2 faces. Restricting the nests one after the other (the order before) misses by 0.066 against a tolerance of 8e-11, and fails. * - ``NestDefect.RestrictionWeightsTheOpenFaceAreas`` - Made-up face fractions on flat ground, partly open, closed and open faces on both levels: u, v and :math:`\Omega` are the nest's open-area flux over the parent's open area, against values by hand (:math:`8/3 + 0.1k`, :math:`2 + 0.05k`, :math:`3 + 0.1k` for u and v, :math:`2.4 + 0.1k` for :math:`\Omega`); a parent face closed in full gets 0 and stays finite. With the full areas the values are :math:`3 + 0.1k` and :math:`2.5 + 0.1k`, and the test fails (mutants D12–D19). * - ``NestDefect.RegionAndSource`` - ``defect_region``: the footprint and the inner box ``kDefectMargin`` cells in (not across a periodic direction); :math:`S = R` on the inner box's points (faces from L to H + 1 along their normal) and 0 elsewhere; ``add_to_residual`` subtracts it, and does nothing while inactive. * - ``NestRelax.SourceIsItsClosedFormOnUnevenBoxes`` - Two overlapping footprints on a parent of 20 × 16 × 8 cells (dx 100 m, dy 80 m) in boxes of 7 × 6, with non-uniform u, v, w, θ and k: on every point of every location the rate is :math:`\max_g w(s_g) f U_g / \min(\Delta x, \Delta y)` computed from the point's position (``kDefectMargin`` written as 2), 0 outside both footprints and on their faces, with points inside the margin; :math:`R` gains :math:`c(q - q^*)` and ``differences`` gives the largest :math:`|q - q^*|`; on 1, 2 and 4 ranks. * - ``NestRelax.PeriodicSpanHasNoFaces`` - A footprint spanning a periodic y: the rate does not fall towards the y ends, and falls to 0 at the x faces. * - ``NestRelax.FootprintOnAPeriodicSeam`` - A footprint from face 0 of a periodic y that does not span it: the closed form with y faces, and a rate of 0 on both copies of the seam face (0 and its image 16). * - ``NestRelax.InactiveLeavesTheHillBitForBit`` - On a hill, the residual and the implicit diagonals with an unset ``NestRelax`` attached are bit for bit those with none. * - ``NestRelax.ResidualGainsTheSourceOnTheFootprintRows`` - On a hill, the residual with the source minus the one without equals :math:`c(q - q^*)` on every row the boundary conditions keep, and 0 on the rows they replace (40 ground and top w faces and 20 wall-k cells in the footprint) and outside the footprint; continuity's residual is unchanged. * - ``NestRelax.DiagonalIsTheDerivativeOfTheSource`` - For each equation, the implicit diagonal with the source minus the one without equals the finite-difference derivative of the residual's change, point by point; no other coefficient changes. * - ``NestRelax.SameSourceOnAnyRankMapAndLayout`` - U and the rates at every point: bit for bit the same with the boxes of 7 × 6 on reversed ranks, and the same to round-off with one box; on 1, 2 and 4 ranks (on 1 rank the reversed map is the same map, so that half acts in ``unit_np2`` and ``unit_np4`` only). * - ``NestRelax.FactorCheckNamesTheKey`` - ``check_feedback_factor`` accepts 1 and 16 and refuses 0, −1, NaN and infinity, naming ``nest.feedback_factor``. * - ``NestRelax.BoxesOutsideEveryFootprintAreSkippedExactly`` - Two small footprints on boxes of 4 × 4 cells (12 of the 20 boxes hold no footprint point, 3 are reached by one footprint's margin alone): with :math:`R` and :math:`A` preset, every point where the closed-form rate is positive gains :math:`c(q - q^*)` and :math:`c` on the diagonal, every other point and every off-diagonal coefficient keeps its value bit for bit; on 1, 2 and 4 ranks. Mutants X11 to X13 fail it. It checks that no box with a footprint point is skipped; the cost saving itself is not visible in values. * - ``NestRelaxConsistent.AddedTermIsTheWeightedResidualOnUnevenBoxes`` - A flat parent of 20 × 16 × 8 cells in boxes of 7 × 6 with two overlapping footprints: the term ``NestRelax`` stores for each of u, v, w, :math:`\theta` and k is :math:`w R^*` for a prescribed non-uniform :math:`R^*` (1e30 outside the footprints), to 1e-14 (1e-6 in single precision) of :math:`\max|R^*|` reduced over ranks; zero on the footprint's faces and outside it; points on the margin and where :math:`w = 1` both present. 1, 2 and 4 ranks. Mutants C3, C4 and C5 fail it (C1 changes the sign where the term is used, not the stored term). * - ``NestRelaxConsistent.TargetIsAFixedPointWhereTheWeightIsOne`` - A periodic hill of 16 × 2 × 12 cells on four boxes, a footprint over cells 3 to 12 in x: the outer residual with the source at :math:`q = q^*` is zero where :math:`w = 1` and :math:`(1 - w) R_c(q^*)` on the margin; with ``relax`` it is :math:`R_c(q^*)`, not small there (so the test is not vacuous); continuity is unchanged bit for bit. Mutants C1 to C5 fail it. * - ``NestRelaxConsistent.ImplicitRowsAreThoseOfRelax`` - The implicit coefficients with ``relax_consistent`` are bit for bit those of ``relax``. A guard: no current mutant changes them. * - ``JointRun.LogNamesAreTruncatedToTheColumnWidth`` - A domain name of up to 24 characters is logged as it is; a longer one as its first 12 and last 9 characters around ``...``, so two names differing in a suffix of up to 9 characters stay apart, and the per-domain column of the run's last line keeps its numbers. Fails with the truncation removed. * - ``NestInject.InjectsTheRestrictedNestOnTheInnerBoxOnAHill`` - On the hill parent, a full injection sets u, v, w, p, θ and k to the restricted nest on the inner box's points (faces from L to H + 1 along their normal; w's 96 ground and top faces are boundary values and keep the parent's) and leaves every other point bit for bit; an injection at the default factor moves the inner box halfway (to 1e-6 relative) and nothing else. After the full injection the inner cells above the ground layer carry the nest's :math:`J\,\nabla\cdot u` (its 2 × 2 mean; the ground cells read the ground w the application's fill sets, which ``NestInject.InjectedRunReachesSteady`` covers) and, outside, only the 224 ring cells that share a face with the inner box change their divergence. Fails with the ground and top faces injected. * - ``NestInject.ZeroRowsAndDifferencesOnUnevenBoxes`` - Two regions, one spanning a periodic y (no y faces), on boxes of 7, the same on reversed ranks, and one box: ``zero_rows`` zeroes the six residual rows on the inner boxes only, and ``differences`` gives the largest and RMS :math:`|q - q^*|` over them (each point once), the same on the three layouts; on 1, 2 and 4 ranks. * - ``NestInject.ResidualRowsOnTheHill`` - On the hill, an inactive ``NestInject`` leaves the residual bit for bit; an active one makes it 0 on every row of the inner box (the wall-k and ground w rows included; checked not vacuous: most rows had a residual there) and leaves it bit for bit elsewhere; the implicit rows do not change. * - ``NestInject.InjectedRunReachesSteady`` (the stop test) - The converged hill with a target of 1.1 times its velocity on the inner box, injected at the default factor before each SIMPLEC iteration: the first iteration leaves all six fields on the inner box at the injected values exactly (w's ground and top faces are boundary values); the residual falls 6 orders (100 iterations); the state outside the box moves (0.83 m/s); every x-face column carries 1.1 times the converged volume flux (closed form, periodic channel; error 5.3e-10 against 1e-6); on 1, 2 and 4 ranks. In single precision the steady criterion cannot be met on this hill: v is 0 (2-D), so its residual is round-off from the start (the relative residual stays at 0.02, and a drop of 4 orders from ``steady.residual_tol`` would need 5e-9 against a floor of 6e-7), and k's floor of 3e-4 is above ``steady.residual_tol``. There the hill and the injected run stop on each field's own bound: u, w, p and :math:`\theta` at 2e-4 of their largest in the first five iterations, k at 5e-4 (the hill) and 4e-3 (injected) of its, v at 5e-6 (63 injected iterations, 0.83 m/s, flux error 5.8e-8 against 1e-6). * - ``NestInject.FactorCheckNamesTheKey`` - ``check_inject_factor`` accepts 1, 0.2 and the default and refuses 0, −0.5, 1.01, 2, infinity and NaN, naming ``nest.feedback_factor`` and ``inject``. * - ``NestInject.PoissonHeldCellsAreData`` - The pressure-correction solve with ``NestInject``'s masks on a 16 × 16 × 8 Gaussian bump in boxes of 8, the inner box crossing four boxes, with both GMRES back ends: the mean removed is the :math:`J`-weighted mean of the right-hand side over the fluid cells; :math:`\phi = 0` on the held cells; no flux on a held face; on every fluid cell :math:`|\nabla \cdot F + (b - \bar b)| \le 10^{-6}` and the mean to 1e-9 (single precision: 1e-4 and 1e-6; measured 2.5e-5 and 2.0e-8). * - ``NestInject.TargetChangeIsTheWindowMeasure`` - The target's change that the joint run's stop window reads: at :math:`\omega = 0.4`, the first injection's change is :math:`\omega \max |q^* - q|` and the second's :math:`\omega (1 - \omega) \max |q^* - q|` over the inner data points, with the target's largest velocity component and largest k as the sizes (θ none), computed from gathered fields on boxes of 7 and on reversed ranks; never marked as a first exchange. * - ``MaskedPoisson.EnclosedBlockOnABumpSolvesItsSystem`` - The enclosed solid block of ``MaskedPoisson.EnclosedBlockHasNoFluxThroughIt`` on a bump: the true residual of the masked system is below the solver's tolerance times the initial one and the divergence check holds. With :math:`\phi` shifted by its mean after the solve on terrain (the code from #86 to this change; the shift is kept on level ground, where the stencil has no cross terms) the residual is 0.458 against 2.4e-7, and the test fails. * - ``JointRecord.RoundTripIsExactOnEveryRank``, ``JointRecord.NoFileIsNotAJointCheckpoint``, ``JointRecord.MalformedRecordsAbort``, ``JointRecord.LineEndsAreNotPartOfThePath`` - The joint record (``Source/JointRecord.cpp``) written by the I/O rank reads back on every rank with the feedback, the exchanges, the CFL floors bit for bit (1/3, 0.1 and 0) and each nest's checkpoint path (one with a space). A checkpoint without a record reads as none. Another version, feedback ``none``, 0 exchanges, a negative or NaN floor, no nest line, a nest line without a checkpoint, text after a floor and a line that is not ``nest`` each abort, as does a missing or bad factor line. A record with ``\r\n`` line ends and trailing spaces after a path reads the paths without them. Mutants: floors written as decimals fail the round trip; a floor with trailing text accepted fails the malformed test; the path not trimmed fails the line-end test. * - ``NestBuildings.PatchHasTheWholeDomainsFractionsAndWalls`` - An L-shaped block with two tops and a lifted deck on sloping ground: a patch (16 × 17 cells in boxes of 5 × 6) builds the solid fractions, the three face fractions and the wall cells bit for bit as the whole domain (32 × 32 cells in boxes of 16) on the same cells, with more than 100 solid and 50 wall cells in the patch. * - ``NestBuildings.TileOnTheGapEdgeIsClearAndOneCellInsideIsNamed``, ``NestBuildings.EachFaceAndCorner``, ``NestBuildings.ZoneAndBlendWidenTheGap``, ``NestBuildings.OnlyNestFacesAndTilesAlongThePatch``, ``NestBuildings.MessagesAreCappedWithACount`` - A building tile within :math:`2\Delta x + \max(N\Delta x, W)` of a nest face is named with its extents and the face; a tile whose edge is on the gap's inner edge is clear, one cell further in is not. Each of the four faces and a corner tile (named twice); ``bc.nest_relax_width`` and ``terrain.nest_blend_width`` widen the gap, the larger of the two counting; faces that are not ``nest``, tiles beside a non-periodic patch and tiles with no height do not count, and a periodic direction counts every tile along the face; a cap on the messages (eight in a run), then a count of the rest. * - ``IO.SameDirectoryAsksTheFileSystem`` - ``./``, trailing and doubled separators, an absolute path, ``..`` and a symbolic link all name the restart directory; another directory, and one that does not exist yet, do not. * - ``InflowProfile.FileTokensAreParsedStrictly`` - Comments, tabs, Windows line ends, a UTF-8 byte-order mark and a hex float are read; ``300.0K``, a fifth token ``junk``, ``0,0,0,300``, ``3.0D+02``, NaN and 1e400 are refused with the file and line (before, the stream parser kept the numbers before a bad token); in single precision 1e39 and two heights that round to one float are refused (the checks run on the Real values); the constructor refuses on every rank and names a file it cannot open. * - ``ColumnStability.TableReadsBackExactly`` - The column table (``io.column_guess_file``) parsed as a ``bc.inflow_file`` gives the column's z, u, v, θ and k bit for bit (before, z and θ had six decimals); a table that cannot be written leaves the run going. * - ``Reductions.*`` - The sum gives the same bits on 1, 2 and 4 ranks and within 16 ε Σ\|x\| of the exact sum; the maximum handles NaN and −0. ``…DotCountsEachFaceOnceOnAnyLayout`` and ``…LevelSumsCountEachFaceOnceOnAnyLayout`` on an x-face field, x periodic and not, three layouts, the boxes on their ranks and in reverse: the same bits for both rank maps and the exact sum over the distinct faces to 1e-13. ``…ResidualRmsDoesNotDependOnTheLayout``: ``stage_norms`` gives the same six norms on the three layouts to 1e-13, and for u the exact RMS (before, a box-seam face and both copies of a periodic face counted twice). ``…CountNotPositiveFindsEveryBadPoint``: the validity check counts a NaN, ±∞, a negative denormal and the two zeros planted in different boxes (so on different ranks), zeros only when they are not allowed (−0 is zero), a ghost cell only when asked; every rank gets the full count per field, and the refusal names only the fields that fail; the count raises no invalid-operation trap. * - ``Newton.JvpEpsSweepAgainstQuadraticResidual`` - On a residual that is exactly quadratic in q (upwind convection, Coriolis, slip walls), the analytic :math:`Jv` and :math:`B(v,v)` from central differences; the sweep of ``steady.newton_fd_eps_scale`` from 1e-2 to 3.2e-12 (its lower bound is 1.8e-12) gives the V-shaped error, the truncation branch equal to :math:`\epsilon\|B\|/\|Jv\|` to 1e-3, and the default within a factor 3 of the minimum (1.5× measured); a uniform :math:`\Delta\tau` adds :math:`x/\Delta\tau` on the right rows; Dirichlet rows are identity rows. * - ``Newton.ColumnConvergesQuadratically`` - Plain Newton on the Ekman column; the reductions 0.403, 0.171, 0.0131, 2.09e-4, 8.26e-8 pinned to a factor 2, the last two steps above the round-off floor gain more than three orders each, and :math:`r_{n+1} \le r_n^2` after the first step. In single precision the first three reductions are pinned and the last two steps sit on the forward difference's floor (they depend on FMA contraction); the single-precision CI job compiles only, so this branch runs on request. * - ``Newton.PoiseuilleInOneStep``, ``Newton.GmresSolvesKnownSystemOnAnyLayout`` - ``Newton.PoiseuilleInOneStep``: one step gives the discrete Poiseuille profile to 1e-9. ``Newton.GmresSolvesKnownSystemOnAnyLayout``: ``amrex::GMRES`` recovers a known solution of a non-symmetric system to 1e-5 on one and four boxes (8 × 6 × 8) and on one and nine boxes (9 × 9 × 8); the layouts agree to 1e-6, a quarter of either solve's error (two box layouts add their sums in different orders and GMRES carries the rounding through its restarts; 6.5e-8 and 1.5e-8 measured, 1.4e-8 to 3.1e-7 before jvp's step sums were made independent of the distribution), and the four boxes give the same iteration count and the same solution bits with every box on rank 0. * - ``Newton.*`` (vectors, options, Krylov) - ``Newton.VectorOperationsAndBitIdenticalInnerProduct``: the vector operations; the inner product counts shared and periodic faces once and has the same bits on every rank and for two distribution mappings. ``Newton.JvpBitIdenticalForAnyDistribution``: jvp's step and :math:`Jv` have the same bits with every box on rank 0 as on the distributed layout, for 16 rough perturbations on twelve boxes (on 2 and 4 ranks; the identity on one). ``Newton.OptionReadersAndRangeChecks``: the four ``steady.newton_*`` keys are read, and each range check names the key and value. ``Newton.KrylovMemoryEstimateAndBudget``: the :math:`2m + 3` vector count and bytes of a 512 × 512 × 128 box; the budget abort names both keys. ``Newton.PreconditionerHookAndOptionsReachTheSolver``: the hook is set up once per step and applied once per GMRES iteration, and its output is used; restart and tolerance reach GMRES. ``Newton.ColumnRestartAndToleranceSweep``: GMRES iterations against the restart length (:doc:`results`). * - ``Newton.*`` (``test_NewtonCoverage.cpp``) - Added after #19. ``BoundaryConditions.TerrainFillIsAFixedPoint``: on a 30 m hill under the wall law, periodic and inflow/outflow in x, on one box and six, :math:`\mathrm{fill}(\mathrm{fill}(q)) = \mathrm{fill}(q)` on every field and ghost cell and :math:`R` likewise, bit for bit (before, a second fill moved a ghost by up to 0.056 and :math:`R` by 1e-5). ``BoundaryConditions.TerrainFillIsAFixedPointInMoreConfigurations``: a hill varying in x and y, inflow/outflow in x and y, reversed faces, heat flux of both signs, ``bc.surface_zref`` above the first centre, a geostrophic top, one box, 3 × 2 boxes split evenly and unevenly, the fill and the homogeneous fill (added in review; with the old ground-cell wind every configuration that uses the ground cell fails). ``BoundaryConditions.GhostCopiesAgreeAcrossBoxes``: in those configurations, on 3 × 2 boxes split evenly and unevenly, every ghost cell equals the value one box over the domain gives it, bit for bit (before, the outermost lateral ghost layer differed by up to 5.0 m/s for u). ``…ResidualWithClosureAtInflowSeamsIsLayoutFree``: with the hill on the inflow faces and the closure's realizability cap, :math:`R` on those layouts equals :math:`R` on one box to 1e-12 of its norm (before, the cap's strain in the first lateral ghost layer read inflow face points from the clamped heights, and :math:`R` differed by up to 1.6e-5 of its norm). ``Newton.TerrainWallLawOperatorMatchesCentralDifference``: there the operator matches a central difference of :math:`q \mapsto R(\mathrm{fill}(q))` to 1e-5 on one and six boxes (2.5e-8 to 4.6e-8 measured), and the base point :math:`R(q)` gives the same operator bit for bit (the fill is a fixed point; before, it was off by more than 1). ``Newton.TerrainWallLawStepsReduceResidual``: four default steps there reduce :math:`|R|` at every step. ``Newton.UpdateSkippedAboveRhsNorm``: the rule that skips an update. ``Newton.KrylovBudgetIsPerRank``: one box per rank fits a budget the total exceeds. ``Newton.InnerProductSameBitsWithAllBoxesOnRankZero``: the inner product with every box on rank 0 has the bits of the distributed layout (on 2 and 4 ranks). ``Newton.StepDiagnosticsAndEpsRange``: the step's Krylov residual and eps range. ``Newton.NonUniformDtauOnFaces``: a non-uniform :math:`\Delta\tau` gives :math:`x/\Delta\tau_f` with the face mean of the two cells. * - ``Continuation.LineSearchRejectsOvershoot`` - The 30 m hill with :math:`u` three times larger, plain Newton throughout, GMRES(30) stopped at 200 iterations. Plain ``NewtonKrylov::step`` raises :math:`|R|` more than twofold with a Krylov relative residual at most 1, and drives :math:`k` negative. Six continuation steps are accepted, each keeping :math:`k` at or above its floor; each meets the Armijo condition (written out) with :math:`\lambda = \beta^{\text{backtracks}} \ge \lambda_\mathrm{min}`, :math:`|R|` is monotone, and at least one step backtracks. From the state before the first backtracked step, with ``steady.newton_lambda_min = 0.9``, the full step fails the Armijo test and is rejected, and the retry runs at CFL 2.5 with a finite :math:`\Delta\tau`; if it is rejected too, the step fails with :math:`q` unchanged, bit for bit (the test prints which; ``SkippedStepCutsCflAndKeepsState`` covers :math:`q` unchanged after a failure everywhere). The solves end at their iteration limit, so the trajectory's digits depend on the platform's rounding: the test checks these properties rather than the trajectory (pinned to 1e-4 before, it held on Linux and failed on macOS arm64 and Windows MSVC). * - ``Continuation.DtauRampFollowsSer`` - Given a sequence of :math:`|R|`, the CFL after each accepted step equals the closed form :math:`\min(\mathrm{CFL}_\mathrm{max}, g\,\mathrm{CFL}_n, \mathrm{CFL}_0(|R_0|/|R_n|)^p)` for four SER settings, with a flag per setting for whether the growth limit and the cap bind (each asserted); the switch to infinite :math:`\Delta\tau` at the cap (and not with ``steady.newton_dtau_inf_at_cap = 0``), the law from the cap while infinite, the growth bound at a finite :math:`\Delta\tau` only, and the CFL cut after a failure, floored at the smallest normal ``Real``. The defaults give 1.25, 2.5, 5, 10, then infinite. * - ``Continuation.*`` (failed steps, line search, inputs) - ``Continuation.SkippedStepCutsCflAndKeepsState``: a NaN preconditioner (the update is skipped) gives four skipped attempts at CFL 1, 1/4, 1/16, 1/64, a final CFL of 1/256, the status *failed* and :math:`q` unchanged; a NaN in :math:`q` is skipped the same way and does not set :math:`|R_0|`. ``Continuation.ArmijoOnKnownQuadratic``: on :math:`\phi(\lambda) = r(1 - \lambda + K\lambda^2)` the accepted :math:`\lambda` is the largest :math:`\beta^j \le (1 - c)/K` (six cases, one rejected); NaN and infinite trials fail without raising the invalid flag. ``Continuation.InputReadersAndRangeChecks``: the defaults, the seven new keys read, each range check refusing a value just outside its range (and NaN) and naming the key, the reader aborting on those and on repeated or two-valued keys, the SER checks and the step floor's check (``steady.dtau_floor``) of the driver, and the application's unknown-input hint. The line search's growth bound (``steady.newton_ptc_growth``) on the same quadratic with :math:`K` = 100: a bound of 100 accepts the full step, ``nextafter(100, 0)`` and 1 do not, a NaN full step never is. ``Continuation.GmresIterationLimit``: a limit of 3 stops GMRES at 3 iterations with status 1. * - ``Continuation.*`` (rank counts, restart, reference) - ``Continuation.HillSameOnAnyRankCount``: the hill on six uneven boxes reaches :math:`10^{-8}|R_0|` in 8 steps at :math:`\lambda = 1`, each CFL from the SER law; the run with every box on rank 0 has the same :math:`|R|` history and :math:`q`, bit for bit (on 1, 2 and 4 ranks). ``Continuation.RestartIsBitIdentical``: 5 steps (already at infinite :math:`\Delta\tau`), the continuation state written and read back with every field compared, and ``run`` for 2 more give the bits of 7 uninterrupted steps; a missing or corrupt file and an inconsistent state are refused, and ``step`` refuses a :math:`q` on another BoxArray or DistributionMapping. ``Newton.TrueLinearResidualMatchesEstimate``: the true linear residual :math:`|b - Ax|/|b|` of a GMRES solve on the hill agrees with GMRES's estimate to 1e-6 (on one and six boxes). ``Continuation.ReferenceResidualFromCaller``: a caller's :math:`|R_0|` (ten times the first :math:`|R|`) stays, gives a CFL ten times that of the step's own :math:`|R_0|` and is the reference of ``run``'s tolerance; a zero, negative, infinite or NaN one is refused. ``Continuation.GrowthBoundAtFiniteDtau``: the Ekman column with ``steady.ser_exponent = 0.5`` fails after 7 steps without the growth bound and converges in 26 with 1.5, each step accepted by the bound at a finite :math:`\Delta\tau` with :math:`\lambda = 1`. ``Continuation.RestoreCapsTheCflAndTheFloorIsChecked``: a checkpointed CFL of 8 restored under ``steady.cfl_max = 5`` becomes 5, and 3 stays 3; a negative, infinite or NaN ``turb.tke_floor`` is refused, naming the key. ``Continuation.DISABLED_ParameterSweep`` (on request): the sweep of :doc:`results`. * - ``NewtonPreconditioner.ApplyIsOneSimplecIteration`` - On a terrain hill split into six boxes (shared and periodic faces), with non-uniform fields and :math:`\Delta\tau`, ``apply`` on :math:`r = -R(q)` with the stage's denominator equals one SIMPLEC stage iteration from :math:`q` to 1e-9 (1e-12 measured). Both ``zjacobi`` and ``lusgs`` are checked, and ``lusgs`` again with ``simplec.w_vnn_cap = 16`` and a slope margin of 1e6 (no cap on any sloped row; a preconditioner that drops the margin misses by 0.11); :math:`p` is compared modulo its mean. :math:`\delta q = r` on the Dirichlet rows, and every shared-face copy equals its owner's. * - ``NewtonPreconditioner.ConstantPressureShiftLeavesTheSolveUnchanged`` - On the periodic hill (singular pressure problem), a constant added to :math:`r_p` or to :math:`q`'s :math:`p` leaves ``apply`` unchanged, and :math:`\delta p` has zero :math:`J`-weighted mean. A Newton step from :math:`q` and from :math:`q + c` takes the same GMRES iterations (53) and gives the same increment (to 1e-5; compared in double only, as :math:`p + c` keeps about four digits of :math:`p` in single precision). * - ``NewtonPreconditioner.IterationsBoundedOverCfl`` - Four Newton steps on the open hill (9 × 6 × 8, six boxes) at CFL 10, 1e2, 1e3 and 1e4. With ``simplec`` the mean GMRES iterations per step grow by less than 50 % (10.25 to 10.5). The mutant check: the stage's denominator fails the bound (18 to 360–381, run to run). ``identity`` needs at least five times as many iterations at CFL 10 and 1e4. * - ``NewtonPreconditioner.*`` (continuation, linearity, inputs) - ``NewtonPreconditioner.ContinuationIdentityVersusSimplec``: the continuation loop on the open hill with each preconditioner. Both converge to :math:`10^{-8}|R_0|` in 8 steps to the same state; ``identity`` keeps the 8 steps of ``Continuation.HillSameOnAnyRankCount``, and ``simplec`` needs 54 GMRES iterations against 976 (pinned: 8 steps, at most 70 iterations, at most a fifth of the identity's). ``NewtonPreconditioner.ApplyIsLinearInR``: on the stratified hill, :math:`\mathrm{apply}(s\,r)/s = \mathrm{apply}(r)` for :math:`s = 2, -1, 10^3` to 1e-4 with the default denominators (1e-5 measured; 0.5 in single precision, 0.21 measured, where step 3's difference of the :math:`\theta` convections about 300 K keeps about one digit); the stage's denominators miss it (1.03), and so does the full-increment step 3 this test replaced (1.04, the mutant check). The preconditioner is set up once per attempt. ``NewtonPreconditioner.ReaderFactoryAndRangeChecks``: the default, ``identity``, an unknown value aborting with the key named, the range checks of the class, and ``apply`` before ``setup``. CTest ``abort_newton_preconditioner_value``, ``_no_newton`` and ``_no_stage``: the application's messages. * - ``Smoothness.NewtonCycleReturnsTheSimplecSolution`` - The 2-D periodic hill with a capping inversion (8 × 2 × 8 cells, two boxes, the k–L closure, the wall law, Rayleigh damping of w and θ at the top). From the SIMPLEC state at :math:`r` = 1e-4: ``enter`` (the floor frozen), plain Newton on the smooth inputs to :math:`10^{-9}|R_0|` within 14 steps (10 measured), ``leave`` (no floor decision moved: no cell reaches the floor on this hill, so the floor freeze itself is tested in ``Smoothness.FloorScopeHoldsOnlyTheFloor``; the closure thawed), then the verification pass, SIMPLEC with the run's inputs to :math:`r` < 1e-8. Its solution equals SIMPLEC's own (run on from 1e-4 to 1e-8) to 1e-5 of the largest :math:`u` and :math:`k` and of 2 K in θ (6e-7 measured). With the standard limiter Newton is still above :math:`10^{-8}|R_0|` after the same 14 steps. * - ``Smoothness.NewtonCycleReturnsTheSimplecSolution`` (limiters) - The same test: the smooth-limiter Newton solution differs from the van Leer SIMPLEC solution by at most 2 % of the largest :math:`u` in :math:`u` and :math:`w`, 0.01 K in θ and 5 % of the largest :math:`k` in :math:`k` (1.1 %, 0.09 %, 7e-5 K and 3.2 % measured), and by more than 0.1 % in :math:`u` (the limiters differ). * - ``Smoothness.*`` (floor scope, gate, inputs) - ``Smoothness.FloorScopeHoldsOnlyTheFloor``: frozen with the floor scope, the closure evaluates as the live one after the θ gradient is reversed (every cell changes branch; bit for bit, no change counted), where the full freeze keeps the stable branch and counts every cell; with :math:`k` below the floor (1e-20, 0, −1e-10) the floor scope floors it as the live closure does (finite, bit for bit) and the full freeze keeps it unfloored; a cell held at the floor on an unstable state with :math:`k` back at 0.4 evaluates as the live closure at the floor (:math:`\nu_t > 0`). ``Smoothness.RiGateClosedFormAndLimits``: the gate's closed form at nine (:math:`N^2`, :math:`S^2`) points (sign kept, 0 at :math:`N^2 = 0`), the limits :math:`|Ri| = 10^3 Ri_0` (kept to 1e-6) and :math:`10^{-3} Ri_0` (suppressed to 1e-6), ``turb.ri_gate = 0`` bit-identical to the default, a neutral state bit-identical with the gate on, a stratified one changed with :math:`P_b` of the ungated :math:`N^2`; the range check (0, or 1e-6 to 1) names the key. ``Smoothness.ModuleInputsAbortsAndCheckpoint``: the limiter swap (van Leer only; :math:`\epsilon` and the other inputs kept), ``turb.frozen_switch`` → the floor freeze, ``enter``/``leave`` (the moved floor decisions counted, the closure thawed; nothing frozen without a closure or with the switch off), the aborts (twice, out of order, another closure), and the checkpoint read on one box from two (the frozen evaluation bit for bit; a deck with ``turb.frozen_switch = 0`` and a corrupt file abort; no file reads as "not in the Newton stage"). ``Closure.InputsAreReadAndChecked`` reads ``turb.ri_gate`` and the new default of ``turb.frozen_switch``. CTest ``abort_frozen_switch_value``, ``abort_frozen_switch_no_newton`` and ``abort_ri_gate_range``: the application's messages. ``Smoothness.DISABLED_Sweep`` (on request): the measurements of :doc:`results`. * - ``Driver.NewtonSwitchOnceAndFallback`` - Synthetic histories with ``steady.switch_residual`` 1e-4 and a window of 5: the relative residual crosses 1e-4 at iteration 3 and stays below; the switch happens once, at iteration 7, with the monitors flat. With a monitor still moving by 5 % per iteration (above ``steady.switch_monitor_tol`` = 1 %) it waits until the monitor has been flat over a whole window (iteration 12); with the tolerance 0 it switches at 7 again. A stage that refuses (``accepts_switch`` false) is never entered. * - ``Driver.NewtonSwitchOnceAndFallback`` (fallback), ``NewtonStage.FallsBackAfterFailedSteps`` - The same test: a second stage that asks to go back from its second iterate is left at once (iteration 9, inside the hysteresis window), its ``leave`` is called on every exit, the reason is logged, and the forward switch comes back only after the window. ``NewtonStage.FallsBackAfterFailedSteps``: on the hill, with a preconditioner that returns zero every continuation step fails; the stage asks to go back after ``steady.newton_fallback_failures`` = 2 failed steps, not after one, and after one with the key at 1; ``leave`` thaws the closure. * - ``NewtonStage.*`` - ``NewtonStage.SwitchesOnceAndConvergesInNewton``: the 2-D hill with a capping inversion (8 × 2 × 8, van Albada, 6 orders): one switch (at r ≤ 1e-4, iteration 2768), at most 16 accepted Newton steps (8 measured), steady in the Newton stage, at most 60 % of the SIMPLEC iterations of a SIMPLEC run (2769 of 5417) and the same solution to 1e-4 of the largest :math:`u` and :math:`k` (7e-8 measured). ``NewtonStage.HandsBackForTheFinalPassAfterTheSwap``: with van Leer the stage hands the run back for the final SIMPLEC pass once its smooth equations have converged, thaws the closure, refuses any later switch, and the run stays in SIMPLEC over two more windows. ``NewtonStage.RestartInsideTheStage``: a checkpoint two steps into the stage restarts it; three more steps give the uninterrupted run's records (to 1e-12) and fields bit for bit with either preconditioner. Before, the ``simplec`` case agreed only to 1e-4 of the relative residual: the stage's entry fill, which the uninterrupted run does not make, was not a fixed point. That test found that the continuation's diffusivity must be the stage's own (the SIMPLEC stage's is not restored by a restart inside the Newton stage), and the fallback test that a failed first step must not count as converged. * - CTest ``rt_steady_hill2d_newton``, ``abort_newton_keys_no_newton_stage`` - ``rt_steady_hill2d_newton`` (smoke, two ranks, about 10 s): the 2-D hill at 32 × 1 × 16 without Coriolis (``inputs_steady_hill2d_newton``: truly neutral, a pressure gradient, van Albada, GMRES(200), the switch at 1e-3) switches to Newton once, finishes in the Newton stage without a fallback, and ends steady within 1800–2199 iterations (1868 measured on 1, 2 and 4 ranks; SIMPLEC alone takes 2906). ``abort_newton_keys_no_newton_stage``: a Newton key and a switch key with ``steady.stage = simplec`` abort, naming the key. * - ``AblSetup.*`` (17 tests) - The named set-ups ``abl.drive`` and ``abl.theta`` (:ref:`named-setups`): every name of the input table is read; bad names, repeated keys, extra values and deck values that contradict a name are refused, and after a bad name only that is reported; the table of what each drive and each :math:`\theta` treatment needs and refuses; the defaults a name gives (the geostrophic drives switch on the forcing, Couette uncaps the length); a value the deck sets is kept; without the keys nothing is checked. * - ``Buildings.*`` (13 tests) - The building geometry (:doc:`buildings`): cell and face fractions of a box on flat ground are the exact overlap; on a slope each column holds the map's volume from the local ground; wall masks and distances equal hand values; the same bits on every box layout, across a periodic seam; bare columns hold nothing; ERF's cube file and the two file formats; a void deck is open with a wall under the building; the reference distance on stretched layers; round-off leaves solid cells solid; the checkpoint's hash changes with the building inputs, and a checkpoint written without buildings is refused; files and inputs are checked. * - ``BuildingLaw.*`` (3), ``BuildingForcing.*`` (5), ``BuildingSides.*`` (9) - The buildings' momentum terms: the wall law returns :math:`u_*` of an exact log profile, with its blend floor and with no reference cell; the sink, its diagonal and a closed face; part-covered walls and open fluxes; the drag form has fixed rows only; a pocket under a lifted building is sealed, and the cell labels of that count stay distinct above :math:`2^{31}` cells (2048³). On the sides: the log law's stress on both parallel components; edge and corner cells sum their walls; rates use the cell size along each normal; partly blocked cells and a sloped roof's side; the viscous fluxes and couplings through a side are closed; a block across a periodic seam; the restart hash follows the law. * - ``BuildingTke.*`` (22 tests) - The buildings' terms of the closure: the wall distance in wall cells is the fluid centroid's; the distance to a block, to an L with a step, beside a step between two roofs and across a periodic seam equals the closed form of the boxes; where the ground is nearer its distance is kept, and the length takes the nearer wall's own roughness; wall cells relax to the law's value and solid cells to the floor; several walls give the largest :math:`u_*` and the nearest distance; the diffusive flux of :math:`k` is closed on blocked faces; the norm and the confidence leave solid cells out; the limiter zone (distance and building height, ghost ring, restart hash); option defaults and refusals. * - ``BuildingTheta.*`` (9 tests) - The buildings' terms of :math:`\theta`: the walls' heat exchange equals the closed form of the form 7 law; ambient walls exchange nothing at the reference profile; the implicit diagonal is the derivative of the exchange; the diffusive flux is closed on blocked faces; the wall heat is the sum of the cells' exchange; the norm and the confidence leave solid cells out; option defaults and refusals. * - ``LeeWake.*`` (14 tests) - The lee-wake additions (:doc:`turbulence_model`): the realizability cap is the minimum with its closed form and comes before the relaxation; the blend towards upwind and the update of :math:`\sigma` against its closed form, with its ghost cells at an open boundary; the residual blend limits, thresholds and verdict flags; the confidence stop counts the converged cells; the relaxation ends below ``turb.nut_relax_end`` and a restart restores that from the history; the range checks. * - ``CanopyHeat.*`` (8 tests) - The leaves' heat exchange: the leaf area density is the drag field with :math:`C_d = 1`, also from a map, and the coarse levels keep each layer's integral; the exchange rate's pinned values and the source's closed form; the residual and the diagonal; the frozen-:math:`\theta` blend; the option checks. * - ``SurfaceRoughness.*`` (5 tests) - The roughness map of ``bc.surface_z0_file``: a uniform map is the scalar :math:`z_0` bit for bit; water and land each follow their own log law; the file is interpolated in :math:`\ln z_0`; coarse levels take the geometric mean; the inputs are checked. * - ``ResidualWorkspace.*`` (3 tests) - The residual's persistent workspace: the wall state the ghost fill returns is the residual's own, bit for bit; a workspace reused across states and layouts, poisoned with NaN before every call, gives the bits of fresh fields, also in the Jacobian-vector product with the refill (in double precision; to a few ulps in single). * - ``NewtonSmoothness.FrozenCanopyCapNeedsTheSameAlpha`` - A checkpoint of frozen closure decisions records the canopy's length cap: a restart with another ``canopy.length_alpha``, or without the canopy terms, is refused. * - ``IO.CheckpointWithTheOldMagicRestarts``, ``IO.FileMagicTakesTheNewAndTheOldName`` - A checkpoint written before the renames (``ablsteady-checkpoint``, ``gust-checkpoint``) restarts bit for bit; the readers take ``steer-``, ``gust-`` and ``ablsteady-`` of the same kind and nothing else. * - ``Simplec.HybridBlendReadsTheGroundDistance``, ``Simplec.ResidualScalesUseTheDepthOfTheLayers`` - The upwind blend reads the distance to the ground, not to the nearest building wall; the residual scales use the depth of the stretched layers, not ``mesh.prob_hi``. * - ``JointRecord.VersionTwoReadsWithoutAFactor``, ``JointRecord.RestoresOnlyWithTheRecordedFeedbackAndFactor`` - A joint record of version 2 reads with its window and no factor. A restart restores the window and the last feedback with the recorded feedback and factor, with any factor from a version 2 record and never from a version 1 record; otherwise the reason names both values. The round trip holds the factor bit for bit (1/3, 0 with ``defect``). A missing, negative or NaN factor, 0 with ``relax`` and a factor with ``defect`` each abort. Mutants: a factor written as a decimal, one not marked as read, one not compared, one compared for version 2 and the check against the mode removed each fail. * - ``BoundaryFill.OutflowGhostCellsMirrorTheEdgeCells``, ``JointRecord.VersionOneReadsWithoutAWindow``, ``MeshHierarchy.GroundStepWarningIsLevelZerosOnly`` - Outflow ghost cells over sloping ground, with periodic sides; a joint record of version 1 reads without a window (and one written as ``GUST_JOINT`` before the rename to STEER reads the same, ``JointRecord.RecordWrittenUnderTheOldNameReads``; mutant: the old name refused); the ground-step warning is level 0's only, and a coarse level's report keeps its number.