Skip to content

The monotone clamp bounds a value by the cell it was interpolated in (#682, #994) - #1153

Merged
lmoresi merged 3 commits into
developmentfrom
bugfix/clamp-by-containing-cell-682
Nov 14, 2026
Merged

lmoresi merged 3 commits into
developmentfrom
bugfix/clamp-by-containing-cell-682

Conversation

@lmoresi

@lmoresi lmoresi commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Fixes #682. Fixes #994 (the limiter's rank-local failure on a rank with few DOFs).

monotone="clamp" now bounds each value by the source variable's DOFs in the closure of the cell the value was interpolated in, on the rank that evaluated it. Louis approved this design on 2026-11-13.

The defect. evaluate and global_evaluate with monotone="clamp" (or True) clipped each value into the range of the dim + 1 source DOFs nearest the point. The nearest DOFs came from a kd-tree over the asking rank's own nodes. Two things go wrong:

The first case below is the probe from H6, the review desk for curved walls. Measured on a 96-thread Linux workstation (single system image; Intel Xeon Gold 6240R, AVX-512; MPICH):

case development (d66c7da) this branch
P1 field linear in x and y, 400 interior points, which the clamp must leave alone np 1: 5 of 400 clipped, by up to 1.7e-2. np 2: 48 and 74 of 400 wrong on the two ranks, by up to 0.61 exact (< 1e-10) at np 1, 2 and 4
Q2 step field: clamped value against the unclamped one clipped to its own cell's nine nodes np 2: off by up to 1.79 equal to 1e-10 at np 1, 2 and 4
2×3 MATRIX, entry by entry entries wrong (H1, on development 116fc45: up to 5.2e-2 serially, 10.8 at np 2; on d66c7da, before #1125, one entry was refused) each entry bounded by its own component's cell range
DG0 with one cell on a rank (#994) IndexError on that rank alone; the job hangs unchanged values, every rank

The fix.

  • C (petsc_tools.c):
    • DMInterpolationGetCells_UW copies out the cells DMInterpolationEvaluate_UW takes the closure of: the hint it was given, or the cell DMLocatePoints found.
    • DMPlexCellClosureFieldRange_UW computes, per cell, the per-component min and max of one field over the cell's closure. It reads mesh.lvec, the vector the evaluator interpolates from. Every closure point that carries the field's DOFs counts, so P2 and higher edge, face and cell DOFs are included.
  • Cython: CachedDMInterpolationInfo keeps the located cells. petsc_interpolate(..., return_cells=True) returns them. evaluate_nd takes a limit(values, cells) callback and applies it after interpolation, before any packing. global_evaluate_nd passes it to every pass, so the bound is applied on the rank that evaluated the point, where the cell and its closure are local.
  • Python (functions_unit_system.py): _containing_cell_clamp(expr) builds the callback. Whether the expression can be clamped (one MeshVariable, or one entry of one) is decided before any evaluation, from the expression alone, so a refusal is the same on every rank. A MATRIX entry is mapped to its stored column through _data_layout.
  • Not changed:
    • Nothing is located twice and no distance is used.
    • A point no cell owns keeps its value from the inverse-distance rung, a convex combination of nodal values, which is bounded already.
    • "pick" is unchanged.

Callers whose clamped values change.

  • uw.function.evaluate(..., monotone="clamp" | True) and uw.function.global_evaluate(...), called directly.
  • SemiLagrangian DDt with monotone_mode="clamp" (systems/ddt.py, the trace-back sample), and IntegrationPointSemiLagrangian (its per-component history writer). AdvDiffusionSLCN(..., monotone_mode=) passes the option through.
  • systems/free_surface.py turns monotone_mode="clamp" on for its composition transport, so free-surface results change. This is the one place the clamp is on by default. The free-surface test files pass (28). H1 measured the change in its review, on the plume case (case 2), over 3 steps: the composition changes by 4e-4 and its area by 0.1 %. Its partition dependence drops from 2.3e-3 to 4.4e-5, the same as with the clamp off. UW_MONOTONE_CLAMP_BOUND=nearest gives development's values back to 1e-13.
  • discretisation/remesh.py with REMESH_MONOTONE=clamp, which is off by default. Since remap_var_set: skip a variable on every rank or none; stop swallowing a rank-local raise (#960) #1142 the limiter is used only where _limiter_applies says it applies, decided before the evaluation.
  • Not affected: rbf_interpolate(monotone=) on mesh and swarm variables (ckdtree.pyx). That is a separate stencil limiter.

Register row (changes to solver defaults).

Path Development's behaviour New behaviour Switch back Evidence
monotone="clamp" in evaluate/global_evaluate; on by default in the free-surface solver's composition transport value clipped to the range of the dim + 1 nearest DOFs on the asking rank value clipped, per component, to the range of the DOFs in the closure of the cell it was interpolated in, on the evaluating rank UW_MONOTONE_CLAMP_BOUND=nearest (tested in test_0760) the table above; test_0682 at np 1, 2, 4

Partition independence: for points inside a cell. A point inside a cell has the same bound at any rank count. A point exactly on a face that two cells share, not at a node, takes the bound of whichever cell the evaluating rank's locator found. H1 measured P2 values there differing between ranks by up to 3.0e-3 on a ±1 front (random layout, np 4). Settling such ties by the mesh is part of the locator rework ("ties settled by the mesh"), which is in progress; it is not a new issue.

Tests. tests/parallel/test_0682_clamp_by_containing_cell_parallel.py, tier B, run serially in batch 3 and under --p N. Its oracle does not use the library's locator: on a structured quad mesh the containing cell is floor(x·n), and a Q2 cell's nodes are at known coordinates. Eight cases:

  1. H6's linear P1 probe, scalar and vector;
  2. the Q1 bound against the structured cell's nodes;
  3. the Q2 bound against the structured cell's nodes;
  4. a 2×3 MATRIX, whole and entry by entry;
  5. P2 edge DOFs (0 at vertices and 1 at edge midpoints, 4/3 unclamped at a centroid, clamped to 1);
  6. a rank with no query points;
  7. a rank with no cells;
  8. Remesh limiter fails on a rank with too few DOFs, and that rank alone keeps its old values #994's one-cell DG0 rank.

Results:

test_0760's clamp oracle is now the containing cell (all 16 nodes of a Q3 cell); development fails it. A new test checks the switch back against the nearest-DOF bound.

Also run:

  • serial, 4 workers: 283 related tests (evaluate, monotone, remap, semi-Lagrangian, history, transport), 2 units-model files (80), free surface (28);
  • under MPI at np 2 and 4: 8 parallel evaluate and empty-rank files;
  • the test coverage gate.

Cost. global_evaluate of a P2 field at 200,000 points, 1/64 box, serial: 1.82 s clamped against 1.73 s unclamped. Development: 1.91 s against 1.67 s.

Merge order.

Not tested: 3-D meshes; np above 4; how much the free-surface composition changes in a long run.

Reviews: H1 (the review desk) reviews; W1 (integration) checks the locator plumbing.

Checklist (UW3 Style Charter — docs/developer/UW3_STYLE_CHARTER.md)

  • I have read the Style Charter and followed it over the surrounding code (S2)
  • No drive-by refactors, renames, or "while I was here" cleanups (S9)
  • Bug fixes ship the regression test, written first, with level_* and tier_* markers (S8)
  • No hedging names (maybe_ / try_ / do_) and no commented-out code (S3, S4)
  • Every exception swallow states its sanctioned failure mode in a comment (S4)
  • New data access uses .array / mesh.X.coords — no with ....access(...), no mesh.data (S7)
  • Parallel safety considered (S11): the bound is rank-local and adds no collective; eligibility is decided from the expression before any collective; np 1, 2 and 4 checked
  • No pixi.toml / pixi.lock or other dependency changes riding in an unrelated PR
  • AI-assisted work carries the attribution line below

Underworld development team with AI support from Claude Code

Copilot AI balanced review requested due to automatic review settings November 13, 2026 11:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@lmoresi

lmoresi commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

READY with conditions at e65b9b6. The fix does what it says: a clamped linear field is exact at every rank count, the bound matches an independent containing-cell bound exactly, and values at interior points are bit-identical from np 1 to np 8. The conditions are two small edits to the PR body and docstrings, listed at the end. One of them covers a case the PR does not mention: a point that lies exactly on a face shared by two cells.

Reviewed by H1 (review and parallel test runs on a 96-thread Linux workstation (Intel Xeon Gold 6240R, AVX-512; MPICH)). This is the parallel half and the evidence check. W1 (integration) checks the locator plumbing separately. Head e65b9b6, base development 116fc45, both prebuilt. Every MPI job ran under mpi_supervisor.py --silence 300, pinned to 4 logical CPUs, so np 5 and 8 were oversubscribed. Logs are kept by the reviewer.

1. The #682 probe

Setup: UnstructuredSimplexBox(cellSize=0.125). Fields:

  • P1 T = 3x + 2y;
  • a P1 vector whose entry 0 is the same field;
  • a P2 field with the same linear values;
  • a tanh front tanh((x + 0.3y - 0.55)/0.04) as P1 and as P2.

Calls: global_evaluate at 400 random points in [0.15, 0.85]², the same points on every rank, unclamped and with monotone="clamp". For the P2 front, the expected bound comes from the reviewer's own barycentric containment test over the DM's triangles, taking min and max over the cell's 3 vertices and 3 edge midpoints. It does not use the library's locator, and no point was ambiguous.

Seed 5, the probe in #682 and the PR's test. Clamped P1 scalar, points wrong by more than 1e-10, and the largest error:

np base 116fc45, per rank head e65b9b6, every rank
1 5, max 1.68e-2 0, max 8.9e-16
2 74 / 48, max 0.611 / 0.385 0
4 283 / 156 / 292 / 158, max 1.94 / 1.03 / 1.84 / 0.868 0

The base numbers match H1's comment on #682 exactly. The vector's entry 0 gives the same counts.

Seed 682, all fields. Head, all ranks at np 1, 2, 4 and 8:

  • P1 scalar, vector entry 0, whole vector and P2-linear: 0 of 400 wrong, max 1.8e-15.
  • P1 front: the clamp changes nothing. A P1 value cannot leave its cell's range.
  • P2 front: the clamp acts at 130 of 400 points, by up to 0.064. It equals the unclamped value clipped to the independent cell bound with a difference of exactly 0.
  • Every clamped value at np 2, 4 and 8, on every rank, is bit-identical to np 1.

Base at the same seed:

np P1 scalar wrong (worst rank) P2 front: clamped values outside the cell bound (worst rank) worst difference from np 1
1 8, max 0.039 3 n/a
2 83, max 0.475 61 1.4
4 290, max 1.95 245 2.0
8 353, max 2.57 325 2.6

2. The PR's tests

tests/parallel/test_0682_clamp_by_containing_cell_parallel.py, 8 cases:

run head base
serial 8 passed 2 failed (linear probe 1.68e-2, MATRIX 5.2e-2)
np 2 7 passed, 1 skipped on every rank (no-cells case, by design at np 2) 6 failed on one rank; #994 IndexError on the other, then a hang that the supervisor killed
np 3 8 passed, every rank 7 failed, then the #994 hang
np 4 8 passed, every rank 7 failed, then the #994 hang
np 5 8 passed, every rank 7 failed, then the #994 hang

tests/test_0760_evaluate_monotone.py, serial: head 8 passed. Base 7 passed and 1 failed (test_clamp_bounds_result), which is the intended failure first. test_the_switch_restores_the_nearest_dof_bound passes on base trivially, because base always uses the nearest-DOF bound.

scripts/check_test_coverage.py: OK, all 457 test files reachable from scripts/test.sh.

3. The failing-first table in the body

row body (development d66c7da) measured on base 116fc45 head
P1 linear, 400 points np 1: 5, up to 1.7e-2. np 2: 48 / 74, up to 0.61 np 1: 5, 1.68e-2. np 2: 74 / 48, 0.611 / 0.385. Matches exact, np 1-5
Q2 step, clamped vs own-cell clip np 2: up to 1.79 np 2: 1.79. Matches equal, np 1-5
2×3 MATRIX entry by entry refuses one entry ("cannot reshape") Not reproduced: no refusal; wrong values instead, 5.2e-2 serial and 10.8 at np 2 passes
DG0, one cell on a rank (#994) IndexError on that rank; hang IndexError at np 2-5 on one rank; hang. Matches passes
fail counts 2 / 6 / 7 at np 1 / 2 / 4; np 2 and 4 hang 2 / 6 / 7, and np 2-5 hang. Matches 0

The MATRIX row was probably measured on d66c7da and changed before 116fc45. The fix holds either way.

Cost, global_evaluate of a P2 field at 200,000 points on a 1/64 box, serial, 3 repeats, one core: head 2.14-2.22 s unclamped, 1.90-1.94 s clamped; base 2.10-2.13 s unclamped, 2.07-2.08 s clamped. In this script the clamped call reuses the located structure from the unclamped call just before it, so it is not a clean A/B. The clamp costs no more than base's clamp.

4. Free surface: the one default that changes

systems/free_surface.py builds the composition SemiLagrangian with monotone_mode="clamp" (around line 1240) on the "slcn" path. That path is the default for a MeshVariable composition: advection=None resolves to "slcn".

Case: the Crameri Case-2 plume from tests/test_1070_free_surface_plume.py (_case2(res=40), P3 level set, conserve on), 3 steps of solve() and advance(1.0). Measured: the composition at 2000 fixed interior points after step 3, and the enclosed buoyancy. The control turns the clamp off after construction (fs._comp_ddt.monotone_mode = None).

comparison composition, max abs diff enclosed-area rel diff, steps 1 / 2 / 3
base vs head, np 1 (the change) 3.8e-4 8.6e-4 / 8.2e-4 / 1.5e-3
base vs head, np 2 2.3e-3 3.8e-3 / 4.6e-3 / 3.5e-3
head np 1 vs np 2 4.4e-5 7.5e-6 / 2.2e-5 / 6.6e-5
head np 1 vs np 4 4.4e-5 5.8e-6 / 2.0e-5 / 6.4e-5
head, clamp off, np 1 vs np 2 (control) 4.4e-5 7.5e-6 / 2.6e-5 / 7.1e-5
base np 1 vs np 2 2.3e-3 2.9e-3 / 3.7e-3 / 2.0e-3
base vs head with UW_MONOTONE_CLAMP_BOUND=nearest, np 1 3.5e-14 0 / 0 / 8.8e-16
base vs head with nearest, np 2 1.8e-13 1e-14 / 1.8e-13 / 3.1e-13

Enclosed-area drift after 3 steps (relative to the start):

np 1 np 2
base -1.068e-2 -1.262e-2
head -9.199e-3 -9.134e-3
clamp off -8.53e-3 -8.46e-3

What this shows:

  • The free-surface result changes, by about 4e-4 in the composition and 0.1% in enclosed area over 3 steps.
  • Head np 1 to np 4 differs by 4.4e-5, the same as with the clamp off. That residue comes from the solves, not the clamp.
  • Base's np 1 to np 2 difference was 50 times larger.
  • The nearest switch gives back base's numbers to round-off (1e-13), not bit for bit.

5. Seams, faces, vertices and points outside

Same mesh, P1 linear T and P2 front F2. The point set:

  • all 98 vertices;
  • all 259 edge midpoints, which include every partition seam;
  • 6 points outside or on the edge of the domain, among them (0.5, 1+1e-9) and (-1e-12, 0.3).

Partitions: default, and a shell partitioner (_from_plexh5 patched) with layouts band (horizontal bands), rand1 and rand2 (random cell assignment, so many seams), at np 2 and 4. Every run completed.

points result on head, all layouts, np 2 and 4
vertices and edge midpoints, T clamped exact, max 8.9e-16, every rank
vertices and edge midpoints, F2 clamped equal to serial to 2e-15, every rank
outside the domain the clamp does not act (clamped minus unclamped is 0, or 1.5e-11)

Base under rand1 at np 4, for comparison: T clamped off exact by up to 0.74 at vertices and midpoints, and F2 off its nodal value at vertices by up to 1.8.

Outside the domain, values differ from serial by up to 0.16 (F2) and 0.13 (T), clamped or not. That comes from the extrapolation rung and is the same on base. Not this PR.

A point exactly on a shared face, not at a node. Points at 0.3 along every interior edge, P2 front:

layout edge points where the serial clamp acts edge points whose clamped value differs between ranks of one run largest rank-to-rank spread
default np 4 58 of 259 1 6.1e-6
band np 4 58 3 5.9e-5
rand2 np 2 58 12 5.4e-4
rand1 np 4 58 16 3.0e-3

The unclamped values agree to 2e-15. P1 T is exact on every rank. Cause: a face point lies in both cells, and the bound comes from whichever cell the evaluating rank found. That cell's closure includes a vertex and edges the other cell does not have. For a point on a seam, the other cell is not even on that rank. Both bounds are valid, but different ranks asking for the same point get different answers.

Example: point (0.356, 0.968), unclamped 1.0083, serial clamp 0.99615, one rank at np 4 (rand1) 0.99914.

This matters little in practice:

  • It needs a point exactly on a face, at a value that overshoots one cell's range and not the other's.
  • A departure point that stays put sits at a DOF, where the value is nodal and the clamp does not act.
  • A wall point that slides lies on a boundary face, which has only one cell.

Even so, the PR claims "the same bound at any rank count" and "partition-independent", and this case contradicts it. See condition 1.

6. Semi-Lagrangian remap and REMESH_MONOTONE=clamp

Semi-Lagrangian. AdvDiffusionSLCN with monotone_mode="clamp": rigid rotation of the P2 front and a P1 linear field, cellSize 1/24, 5 steps of dt 0.05. Completes at np 1, 2 and 4.

comparison P2 front, max diff P1 field, max diff
head, clamp on, np 1 vs np 2 and np 4 1.63e-3 4.3e-4
head, clamp off, np 1 vs np 2 and np 4 1.63e-3 4.3e-4
base, clamp off, np 1 vs np 2 1.63e-3 n/a
head, np 2 vs np 4, clamp on / off 1.57e-5 / 1.57e-5 n/a
base, clamp on, np 1 vs np 4 0.77 0.125

The clamp's own effect (on minus off) at np 2 and 4 matches serial to 1.9e-5 at the 1460 points where it acts. So the clamp adds nothing to the partition dependence.

The 1.6e-3 difference between serial and parallel without the clamp is the same on base. It is not this PR. It is probably the nodal-history difference #682 records as fixed on #800 [read]. As a result, "same as serial to round-off" cannot be shown with this case: the unclamped path is not serial-equal either.

Remap. remesh_with_field_transfer with a smooth interior move of 1% of the box, REMESH_MONOTONE=clamp. Completes at np 1, 2 and 4. Head: np 1 vs np 4 identical (0), np 2 within 7.5e-13. The clamp does not act (on minus off is 0), and the P1 linear field is exact to 1.3e-15. Base at np 4: off by 7.2e-2 (front) and 1.8e-2 (linear).

7. A rank with no cells

Every run completed with no hang:

  • shell layout leaving the last rank empty, at np 2 ([162, 0]), np 3 ([87, 75, 0]) and np 4 ([62, 49, 51, 0]);
  • a coarse mesh (cellSize 0.5, 14 cells) at np 8 with the default partition ([0, 3, 2, 2, 0, 3, 2, 2]);
  • the same coarse mesh at np 4 with one rank empty.

Clamped values at vertices and edge midpoints equal serial to 1e-15 on every rank. That includes np 2, which the PR's own no-cells case skips.

8. Attribution and coverage

  • One commit, authored as Claude <noreply@anthropic.com>. There is no Co-Authored-By trailer, and the message ends with the team line. Six of the last 30 commits on development carry the same author.
  • The body ends with "Underworld development team with AI support from Claude Code".
  • The coverage gate passes, and scripts/test.sh adds the new file to batch 3.

Code read [read]

  • DMPlexCellClosureFieldRange_UW reads the field's DOFs by PetscSectionGetFieldDof/Offset over the closure, using k = d % nc (node-major, components interleaved). That matches PETSc's layout, and the P2 results above confirm it.
  • An unlocated point (-1) is left alone. Those points come from the RBF rung, and the outside points above show the clamp does not act there.
  • Eligibility is decided before any collective, through _monotone_source_variable, so a refusal is the same on every rank.
  • remap_var_set still catches the ValueError and falls back to plain evaluation. On head that refusal is raised before the collective, so the fallback is rank-consistent.

Conditions

  1. Point on a face. In the register row, the evaluate/global_evaluate docstring and the scripts/test.sh comment, say that the bound is partition-independent at points interior to a cell. At a point exactly on a face shared by two cells, the bound comes from whichever cell the evaluating rank located, so a P2 or higher value there can differ between ranks. Measured above: up to 3.0e-3 on a ±1 front. A deterministic tie-break, or a halo-aware union of the face's cells, can be a follow-up issue. It is not needed for this merge.
  2. Body corrections.
    • The MATRIX row's "refuses one entry" does not happen at the base this branch sits on. At 116fc45 the entries come back wrong (5.2e-2 serial, 10.8 at np 2) and are not refused.
    • The "has not been measured" note on the free surface can be replaced by section 4: about 4e-4 in composition and 0.1% in enclosed area over 3 steps of Case-2. Partition dependence drops from 2.3e-3 to 4.4e-5, the level of the clamp-off control.
    • "np above 4" is now covered, at np 5 and 8 (oversubscribed).

Underworld development team with AI support from Claude Code

…682, #994)

monotone="clamp" clipped each value into the range of the dim + 1 DOFs nearest the
point, from a kd-tree over the asking rank's nodes. Those nodes need not enclose the
point: a P1 field linear in x and y, which the clamp must leave alone, was clipped at 5
of 400 interior points in serial. In parallel they are the wrong rank's nodes for a
point another rank owns: 48 and 74 of 400 wrong at np 2, by up to 0.61. On a rank with
fewer than dim + 1 DOFs the query failed on that rank alone (#994).

The bound is now the per-component min and max of the source variable's DOFs in the
closure of the cell the value was interpolated in, P2 and higher edge, face and cell
DOFs included. The cell is the evaluator's own: DMInterpolationGetCells_UW copies out
the cells DMInterpolationEvaluate_UW takes the closure of, petsc_interpolate returns
them, and evaluate_nd applies a `limit` callback with them on the rank that evaluated
the points, in every pass of global_evaluate_nd. DMPlexCellClosureFieldRange_UW reads
the range from mesh.lvec, the vector the evaluator interpolates from. Nothing is
located twice and no distance is used. A point no cell owns keeps its
inverse-distance value, a convex combination, which is bounded already.

Whether the expression can be clamped is decided from the expression before any
evaluation, so a refusal is the same on every rank. "pick" is unchanged.
UW_MONOTONE_CLAMP_BOUND=nearest restores the earlier bound.

Tests: tests/parallel/test_0682_clamp_by_containing_cell_parallel.py (serial in batch 3
and under --p N): H6's linear P1 probe, a Q1 and Q2 bound against the structured cell's
nodes, a 2x3 MATRIX entry by entry, P2 edge DOFs, a rank with no query points, a rank
with no cells, and #994's one-cell DG0 rank. On development 2, 6 and 7 of 8 fail at
np 1, 2 and 4, and np 2 and 4 hang; all pass here. test_0760's clamp oracle is now the
containing cell, and the switch back is tested against the nearest-DOF bound.

Underworld development team with AI support from Claude Code
@lmoresi
lmoresi force-pushed the bugfix/clamp-by-containing-cell-682 branch from e65b9b6 to 1133926 Compare November 13, 2026 20:50
@lmoresi

lmoresi commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

Re-check of #1153 at 1133926: READY. From H1 (review and parallel test runs on a 96-thread Linux workstation (Intel Xeon Gold 6240R, AVX-512; MPICH)), following up its review at e65b9b6.

Rebase onto #1142.

  • The compiled hunks (petsc_tools.c/.h, _dminterp_wrapper.pyx, _function.pyx) are the same as at e65b9b6. The rebase changes comments in remesh.py and ddt.py, and test_0791's limiter case.
  • remap_var_set calls global_evaluate(..., monotone=REMESH_MONOTONE) only where _limiter_applies says so, and the per-variable agreement from remap_var_set: skip a variable on every rank or none; stop swallowing a rank-local raise (#960) #1142 follows it. The clamp adds no collective and no rank-local early return.
  • test_0791's limiter case keeps its power. It wraps uw.function.global_evaluate and raises on rank 1 only, after a monotone= evaluation has returned. The case asserts raised [True, True], so it cannot pass without firing.

Runs on this head (built from source):

run result
test_0791 (np 2 children under the supervisor) 5 passed
test_0760 and test_0682, serial 16 passed
test_0682, np 2 7 passed, 1 skipped (the no-cells case, by design at np 2)
test_0682, np 3 8 passed on every rank
test_0682, np 4 8 passed on every rank

Text. The three points from the first review are met:

  1. "for a point inside a cell" in the docstring, the changelog and test.sh;
  2. the on-face tie, with the 3.0e-3 measurement, stated as left to the locator rework;
  3. the MATRIX row and the free-surface numbers corrected.

One small inconsistency in the body, not blocking: "Not tested: ... np above 4" sits beside "H1's review also ran the file at np 5, and a P1 linear field and a P2 front at np 8". It could read "np above 4 in this branch's own runs".

Not re-run: the first review's np 5 and np 8 runs, the free-surface case, and the 3-D and cost checks. The compiled code those exercised is unchanged.

Underworld development team with AI support from Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants