Skip to content

Main train 2026-11-12: VecMDot reproducibility, kernel index types, msh2simplex removed, timed checkpoint, ymf clsvof_projection and petsc_options, 1.9.x co-author forward ports - #1356

Merged
cekees merged 33 commits into
proteustoolkit:mainfrom
cekees:train/main-2026-11-12
Nov 12, 2026

Conversation

@cekees

@cekees cekees commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Each change below was reviewed, and passed CI, as its own pull request on cekees/proteus. This branch merges them
onto main at bf846a4 with one merge commit per pull request, in the order listed.

Merge with "Create a merge commit", not squash or rebase, so the commits keep their hashes and the fork's pull requests close themselves.

pull request title commits
cekees#262 C0 round 11: VecMDot reproducibility (CLSVOF 2-rank dam break), SW2DCV crash, gf.D audit 2
cekees#261 C33 slice 2c part 2: CompKernel.h, VOF/VOF3P, NCLS/NCLS3P take proteus_index_t 3
cekees#263 C7.1 round 5: remove msh2simplex; gmsh meshes are read as ymf meshes only 2
cekees#264 C17/C14 round 4: timed checkpoint (state only at the final step and checkpoints; parun --wall-limit) 7
cekees#269 Forward-port to main: 1.9.x co-author PRs #265, #266, #268 (pinned IFEM meshes, m_comp_co2 per-rock closure, vdft figure tooling) 8
cekees#260 C5 step 4 (part 1): clsvof_projection as a run; per-model petsc_options on the deck-machinery paths 4

Added after this PR was opened (merge commits on the same branch, no force-push):

Diff against main: 78 files changed, 10682 insertions(+), 2839 deletions(-).

🤖 Generated with Claude Code

cekees and others added 30 commits November 11, 2026 17:03
…ck's damBreak.py

`pro run dambreak_short_projection.ymf` (CLSVOF, RANS3PF, PresInc, Pres, PresInit; final time 0.03, 3 outputs,
h = 0.2576, direct solves) against `parun --TwoPhaseFlow damBreak.py -C "final_time=0.03 dt_output=0.01 he=0.08
genMesh=True"`, macOS arm64, 1 rank, 115 datasets:

  before: refused ("unknown name 'p'" in flow's momentum equation: the spec declared no lag for p), then, with the lag,
          a RealizeError at PresInc (variables ['pInc'], no unknowns); with that fixed, 45 of 115 datasets differ
          (p by 2.6e3 from the t0 spin-up, because the deck's phi is a characteristic function)
  after:  115 of 115 datasets bitwise equal. 2 ranks (-mat_partitioning_type current) also matched on its one run,
          noted, not asserted: CLSVOF is not run-to-run reproducible on 2 ranks (C0 round 11)

What it took:
- dambreak.ymf: flow lags p via pressure (previous step), pressure lags v via flow (the equations read them).
- the scheme's own variables (pressure increment, pressure spin-up) have no unknown in the spec: they start at zero
  as in the decks (SCHEME_AUXILIARY_ROLES), recorded as such.
- a coefficient with role surface_tension is read as sigma (SystemPhysics.surf_tension_coeff; none stated: 0, D6).
  RANS3PF computes surface tension (the deck leaves TwoPhaseFlow's 0.0728), RANS2P does not, so a nonzero sigma with
  RANS2P is refused rather than run without the force: 4 tests, the refusal one fails on the parent.
- the fixture states phi0 as the characteristic function sign(max(x - 1.2, y - 0.6)), as disc_ICs expects; the
  distance function of the other discretizations gave phi_t0 differences of 1.35.
Differences found on the way, each measured by diffing the built p/n of deck and spec: only sigma (0.0728 vs 0).

Tests: test/dispatch/test_dispatch.py 68 passed; test_dispatch_run.py -k projection: 2 passed (1 rank asserted, 2
ranks xfail non-strict).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
calculateMapping_*, calculateH_element, calculateMappingVelocity_*: eN and the mesh_l2g array (55 signatures);
valFromDOF/gradFromDOF/hessFromDOF/DOFaverage: l2g_element (24); eN_j locals (15). The CSR diffusion helpers
(rowptr, colind, 15 signatures and their `m` loops) take proteus_csr_index_t. Local face numbers (ebN_local*, kb,
*_kb_j) stay int. Types only, no arithmetic changed; includes index_type.h.

At the default 32/32 widths every type is int, so no family changes behaviour. At index 64 the mprans families that
pass int arrays to these helpers no longer compile until their own commit retypes them (VOF/VOF3P and NCLS/NCLS3P
follow in this PR; the rest are listed in HANDOFF_2026-11-11_c33-s2c-p2.md).

Checks: built at 32/32 (macOS arm64, all extensions), VOF/NCLS tests in the family commits below pass on top of it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
VOF.h, VOF3P.h (copy-pasted twins moved together): ArgumentsDict reads of *_l2g, elementBoundaryElementsArray,
exterior/interior/elementBoundariesArray, nElements_global & co, offset_*/stride_*, numDOFs -> proteus_index_t; csr
arrays and NNZ -> proteus_csr_index_t. Locals retyped by name (eN, eN_*, eN2*, ebN, ebNE, ebNE_*, gi, i_global; the
`for i<numDOFs` dof loops; offset/ij/`j` from csrColumnOffsets_DofLoops as csr). std::set/map keys of the cutfem
boundary and DW_Dn_jump maps and the u_u_nz pair map follow. Flags, tags, ebN_local*, *_kb*, eN_side stay int. The
retype is by name (c33-tools/declretype.py), not by the narrowing-warning loop, which over-propagates into local
face numbers. VOF.py/VOF3P.py: internalNodesArray uses cmeshTools.INDEX_DTYPE. Types only, no numerics changed.

Checks:
- clang++ -Wshorten-64-to-32 (probe.sh), VOF.cpp and VOF3P.cpp: index/csr 64/32, 64/64, 32/64 each 0 warnings, 0
  errors (before: 851 and 257 warnings at 64/32).
- g++ 11.4.0 on ceds-model -fsyntax-only (-Wall): clean at 32/32, 64/32, 64/64.
- macOS arm64 build at 32/32; test/test_vof_partition_independence.py + test/test_index_type.py: 26 passed
  (serial vs 2 ranks within 1e-8 for VOF and VOF3P, FCT on/off, controls differ > 1e-3), test/LS_with_edgeBased_EV/VOF
  passed.
- Not run: a 64-bit-index build, the full suite.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dex_t

Same name-class retype as the VOF commit, on NCLS.h and NCLS3P.h (index arrays and scalars, 59+15 array and 31+11
scalar reads, locals eN*/ebN*/gi, the numDOFs/numOwnedDOFs dof loops, csr offsets and the DofLoops column `j`).
NCLS.py/NCLS3P.py: internalNodesArray uses cmeshTools.INDEX_DTYPE. Flags, tags, ebN_local*, *_kb* stay int.
Types only, no numerics changed.

Checks:
- clang++ -Wshorten-64-to-32, NCLS.cpp and NCLS3P.cpp: index/csr 64/32, 64/64, 32/64 each 0 warnings, 0 errors
  (NCLS.h:1559 missing return is pre-existing).
- g++ 11.4.0 on ceds-model -fsyntax-only (-Wall): clean at 32/32, 64/32, 64/64.
- macOS arm64 build at 32/32; test/test_ncls_edge_partition_independence.py (serial vs 2 ranks within 1e-8 with
  entropy viscosity, 1e-6 with stabilization 1), test/LS_with_edgeBased_EV/NCLS and /VOF,
  test/TwoPhaseFlow/test_ncls_no_bc_dirichlet.py: 14 passed.
- Not run: a 64-bit-index build, the full suite.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ry paths, not refused

Both realizers (TwoPhaseFlow, SWFlow) refused any `petsc_options` of the spec ("not read"), so the options could not be
used at all. Now each dispatched model's linear solve gets them:

- a sub-problem's `solver.petsc_options` reach its model's solver prefix (`rans2p_`, `vof_`, ... read from the built
  n module's linear_solver_options_prefix); the discretization's reach every model (ymf's split merges them into each
  sub-problem); a key that starts with a model's prefix (`ncls_ksp_rtol`) is that model's alone;
- they are set after the machinery's own, so the spec's win where they name the same option, and
  `petsc_options_restored` removes them after the run; the archive record lists them under `system.petsc_options`;
- refused before anything runs: a key naming a model the discretization does not dispatch (`vof_ksp_type` on
  level_set_clsvof: "is for the VOF model, which this discretization does not have (it dispatches CLSVOF, RANS2P)"),
  and options on a discretization whose solves are LU on one rank (two-phase direct, SWFlow), which read no PETSc
  options; on 2 ranks the same direct solve goes through PETSc and reads them.

Before/after, test/dispatch/test_dispatch.py: the two new behaviour tests (options reach prefixes with nothing leaked
unprefixed; serial LU refused) fail on the parent, the by-name refusal test has no parent equivalent (the parent
refused everything with one message). Full set: test/dispatch + test_pro_cli + test_adr_problem + test_domain_ymf:
273 passed, 1 skipped, 1 xfailed (CLSVOF 2-rank), 1 xpassed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…mdot_use_gemv (CLSVOF 2-rank dam break)

The CLSVOF + RANS2P dam break (damBreakLevelSet.py interface=1, he=0.08, 3 outputs) on two ranks differed from run to run
with the deck alone: 1 of 16 concurrent decks, 2 of 20 repeats (C5 step 3, #256), phi and p in 64-66 of 213
datasets. Cause (measured): the first CLSVOF linear solve, GMRES with PETSc's default classical Gram-Schmidt, has the
same matrix, rhs and initial guess in every run (hashed per rank) and a different residual in the last bit from the
tenth Krylov vector on (VecMDot over 10-11 vectors); one ulp in one solve is then a different phi, and the nonlinear
step amplifies it. PETSc >= 3.21 forms VecMDot with one BLAS gemv over the Krylov block (-vec_mdot_use_gemv, default
on) and OpenBLAS's gemv sums in an order that depends on where malloc put the block. In isolation, serial, no MPI:
VecMDot of nv = 10, 11, 12, 13, 30 vectors of 540 entries under 2000 different heap states gives 4, 5, 4, 4 and ~60
distinct answers (nv = 9: one); the set of answers changes with OPENBLAS_CORETYPE. With -vec_mdot_use_gemv 0 (PETSc's
plain unrolled C kernel) every nv gives one answer in 1500 of 1500. Not the cause (each tested): BLAS threads
(OPENBLAS_NUM_THREADS=1 still differs), PYTHONHASHSEED, the preconditioner (jacobi, sub-LU still differ), MPI
library (MPICH 5.0.1 on macOS arm64 and Open MPI on linux-64 both show it); modified Gram-Schmidt does not use the
gemv (0 of 240).

Fix: proteus.Comm.init sets vec_mdot_use_gemv=false unless the user gave it (command line or PETSC_OPTIONS). It applies
to every GMRES with classical Gram-Schmidt in proteus, not only CLSVOF's; the cost is VecMDot through PETSc's C
kernel instead of gemv (a fraction of an iteration next to MatMult and the preconditioner).

Before/after, the deck alone, two ranks, `-mat_partitioning_type current`, 24 decks at once:
  ceds-model (linux-64, Open MPI): before 11 odd of 192 (8 batches); after 0 of 600 (25 batches)
  macOS arm64 (MPICH):             before 6 odd of 120 (6 batches);   after 0 of 240 (10 batches)
test_vecmdot_reproducible.py: one answer under 400 heap states with the fix; on the parent, the same test fails on
linux-64 (it does not vary on macOS, where malloc aligns the block alike: the test bites on the linux legs only).
test_dispatch_run.py: the damBreakLevelSet_clsvof two-rank case is asserted again (the non-strict xfail and its
NONREPRODUCIBLE table are removed).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ss had before

CI (linux-64 py3.12, run 43055515924) failed test_each_models_petsc_options_reach_its_solver_prefix: another test had left a
global ksp_type=cg in the options database, so 'not in' was false. The test now compares with the value before the run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…port it as an unused option

The first commit's setValue left "WARNING! There are options you set that were not used! Option left: name:-vec_mdot_use_gemv
value: false source: code" at the end of any run that makes no vector (the pro shim's `iproteus`, a spec check), which failed
test_pro_cli.py::test_iproteus_is_a_shim_over_runtime on linux-64 (the one failure of 3152 on #262's first run).
PETSc counts an option as used when it is queried, and reads this one only when the first vector is created: OptDB.getBool
after the set marks it used. Same test, ceds-model linux-64: before this change fails, after passes; macOS: passes;
test_vecmdot_reproducible.py passes on both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The converter proteus routes use_gmsh/.msh input through is public now
(proteustoolkit/ymf-import-gmsh), so the dev environments install it from
main the same way ymf comes in. Preparation for removing msh2simplex.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nd 5)

A use_gmsh domain or .msh input goes through ymf-import-gmsh (public, installed
by the dev environment files since the previous commit) and nothing else:
- msh2simplex, its tetgen -Vfeen step and the _gmshYmfAvailable fallback are
  deleted (-138 lines of conversion, ~65 net in MeshTools.py).
- -F (partitioned reads) reads the ymf mesh whole on every rank and partitions
  it like any other mesh; the piecewise reader of triangle/tetgen files stays
  for polyfile domains. A piecewise ymf reader is not done.
- pro msh (MeshTools.meshFiles / writeMeshFiles) plans and writes .msh, .ymf,
  .h5 for gmsh domains, no .ele/.node/.edge/.face.
- A .msh with no current .ymf and no converter raises ImportError naming
  ymf-import-gmsh and the pip line, and writes nothing.
- msh2simplex's point-tag bug (the second node of a segment's flag was written
  to the first node; fixed in an earlier round for the file it wrote) goes with
  it; the converter has the correct rule and tests it.

Tests (gmsh_ymf, importers, gmsh_generation, domain_ymf, mesh_options_ownership,
ymf-main + converter, tetgen and gmsh present): 76 passed before, 79 after.
- removed: msh2simplex coordinates (2 cases) and segment-flag tests (3 cases);
  the msh2simplex fallback tests (4 cases) and bit-equal-against-live-msh2simplex
  (2) become: ymf read bit-equal to stored reference arrays (2),
  -F same path (2), missing/changed .msh without converter names the package (4),
  mesh plan (2), pro msh writes the ymf mesh (2), converter route vs reference (2).
- gmsh_{square,cube}_reference.npz hold the seven mesh arrays msh2simplex +
  tetgen + the triangle/tetgen readers built from the stored .msh (generated
  from the parent commit): the bit-equal check survives without the code.
- test_gmsh_generation counts via the ymf mesh, same references and tolerance.
Without the converter: 12 passed, 6 skipped in the two gmsh files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… final step and every --state-every N frames

main wrote the hot-start solver state with every archived frame (Torino S0H30, 1,536 ranks, mpio, main bf846a4:
4.1 s a frame against 0.44 s on 1.9.x; 34 GB of state, 19 GB of it RANS2P's quadrature lags, about 20 times a
frame's solution, rewritten in place ~1,000 times). A hot start reads the state of one step only (the stamp
names it), so every write but the last was wasted.

Now archiveSolution writes the solver state only when the frame is due it: the run's final frame, a checkpoint
(next commits), and with --state-every N (parun, pro run, RunOptions.stateEvery) every N-th frame, the initial
one included. Default 0: final + checkpoint. A hot start from a frame without the state restarts from that
frame's solution (the path --hotStartMode restart takes), now with a log line that says why: "frame 4 carries
the solution only: the archive holds the solver state of step 6 only (it is written at the final step, at a
checkpoint and every --state-every N frames)", and the existing single RuntimeWarning. Hot start from the
final frame is unchanged: test_hotstart_levelset (bit-identical, serial and 2 ranks) passes.

Each frame's write is also logged at -l2 and up with the seconds the frame and the solver state took
("Archive: frame 11 of model mcorr at t=0.05 written in 0.00178 s, solver state in 0.000816 s"); the wall limit
(next commit) uses them.

Measured here (macOS arm64, damBreakLevelSet he=0.05, 2 ranks, 11 frames x 5 models = 55 model frames; the
case is too small for the scale effect): state writes 55 -> 5, their time 50.6 ms -> 5.4 ms against 37.6 ms ->
35.4 ms for the frames; the state is 0.5 MB of the file's 0.8 MB. The 1,536-rank effect is the Torino
session's to measure once this merges; the expected value is the 1.9.x 0.44 s per frame.

Tests: test/test_timed_checkpoint.py (which frames carry the state; hot start from one without it is the
--hotStartMode restart run, with the log line and one warning; from the final frame it is bit-identical).
Two assertions on the refusal text in test_hotstart_state/test_hotstart_parallel_state follow the new wording.
Ran test_hotstart_*, test_step_time_check, test_state_contract, HotStart_3P, test_archive_instants, test_pro_cli
(one failure there, ymf.symbolic.split missing from the env's older ymf): 150 passed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…and exits 75

parun had no wall-clock limit, so a 24 h job could only be killed by the scheduler, in the middle of a step or an
archive write. `--wall-limit HH:MM:SS` (also D-HH:MM:SS; `pro run --wall-limit`; RunOptions.wallLimit) counts from
parun's start (before `import proteus`) and `--wall-limit scheduler` reads the SLURM or PBS job's end time
(SLURM_JOB_END_TIME, else `squeue -o %L`; PBS `qstat -f` walltime less used). A duration inside a batch job is cut
at the job's end. A malformed value stops parun at the start (exit 2), not after a day of running without a limit.

proteus/WallLimit.py holds the decision, and nothing relies on scheduler signals. At the end of each system step
rank 0 asks whether `now + margin > deadline`, margin = the longest system step so far (archive writes
subtracted) + what one checkpoint costs to write (for every model, its longest frame write and its longest
solver-state write, both measured by the run itself), and one scalar allreduce hands every rank rank 0's answer,
so all stop at the same step. With no limit there is no communication at all. A model's state is written once
with its first frame in a run that has a limit, to time it (otherwise the cost would be a guess).

On a trip the stepping loop ends at that boundary (not at the end of an interval, and not at the end of the run:
those are finished or archived anyway), archives close, `runAtEOS` is not run, and parun exits with status 75
(sysexits' EX_TEMPFAIL, `WallLimit.CHECKPOINT_EXIT_STATUS`), 1 still meaning failure. The next commit makes the
frame it leaves carry the solver state.

Measured (damBreakLevelSet he=0.05, macOS arm64, test clock that counts accepted steps, limit 3.5 steps):
before, no way to stop; after, exit 75 on 1 and on 2 ranks, after exactly 3 accepted steps on every rank. A run
whose limit is not reached (99:00:00) takes the same steps and ends with the same dofs as without it (0.0 apart).

Tests: test_wall_limit.py (durations, SLURM/PBS parsing from sample output, the cut at the scheduler's end, the
decision with a fake clock, archive writes not counted as a step), test_timed_checkpoint.py (stop at the boundary
with status 75 on 1 and 2 ranks, unreached limit identical, malformed limit exit 2). The scheduler queries have
only been run against sample output, not a live SLURM or PBS job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… and the next leg is the uninterrupted run

A run stopped by --wall-limit now leaves a checkpoint: the frame of the step boundary it stopped at, carrying the
solver state of every model (NS_base._finishAtWallLimit; while wallLimitStop is set every archiveSolution is due
the state). The frame is off the dt_output grid when the stop is mid-interval, so the time stamp is the one a
`parun -H` of the next leg reads, and the state's stamp matches it. With the per-step archive flags, whose frame
is written before the stop is decided, the state is added to the frame already there. The checkpoint's log line
says what was written and how to continue it (same number of ranks: the state is per rank).

Measured (damBreakLevelSet he=0.1, dt_output 0.02, to t=0.1, macOS arm64, pinned partition, test clock):
 - stop after the 6th accepted step (t=0.03, mid-interval, after the frame at 0.02) and stop after the 7th
   (t=0.04, exactly an output time), each then `parun -H` to the end: dofs of every model on every rank, the
   steps the second leg takes, and the force, moment rows are bit-identical to the uninterrupted run (largest
   relative difference 0.0), at 1 rank and at 2 ranks; no "hot start" warning.
 - the same two legs with the second as `--hotStartMode restart`: 6.3e-1 from the uninterrupted run, so the
   test can fail.

Tests (test_timed_checkpoint.py): test_the_next_leg_of_a_run_stopped_by_its_wall_limit_is_the_uninterrupted_run
(serial) and test_the_next_leg_on_two_ranks_is_the_uninterrupted_run, each at mid-interval and at interval end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…-limit, exit 75, chaining legs)

docs/source/tools/checkpoints.rst (in the Tools toctree): what a frame carries (the solution; the solver state at
the final frame, at a checkpoint and every --state-every N frames), what a hot start from a frame without the
state does and says, how --wall-limit decides (rank 0, longest step + measured checkpoint cost, broadcast; no
scheduler signals), what the stop writes, the exit statuses (0, 1, 2, 75), the constraint that the next leg runs
on the same ranks and partition, and a SLURM job-script example that submits the next leg on exit 75 (the PBS
form named).

Also: --wall-limit with PUMI mesh adaptivity is dropped with a warning at the start of the run, as PUMI has its
own checkpoint frequency and its restart is not a parun -H.

Docs only apart from the guard; not built with Sphinx here (no docutils in the env).
Ran test_hotstart_*, test_step_time_check, test_step_retry, test_state_contract (73 passed, serial and 2 ranks,
4 min) and test_timed_checkpoint, test_wall_limit (32 passed).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…estimated until a state write is timed

Review (cekees): the early state write that timed each model's state in a run with a wall limit is removed; the
default writes no state before the final frame, with or without --wall-limit. The checkpoint cost the stop
decision uses is now, per model, its longest frame write plus its state write: the longest measured one (the
initial frame's, which is now timed, and every --state-every N frame's), else an estimate, the frame's time times
the state's bytes over the dofs' bytes (at least 1). It errs long: damBreakLevelSet he=0.1, 5 models, serial:
estimated checkpoint 0.1 s against ~3 ms measured for the stop's state write, where at 1,536 ranks the state is
~20 frames, the ratio the estimate is built for.

Tests: the unreached-limit run now has exactly the writes of the run without a limit (the state of the final frame
only); the estimate is non-zero in the stop's log line. test_timed_checkpoint + test_wall_limit 33 passed;
test_hotstart_levelset, _state, _parallel_state 24 passed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…efix form

petsc_options on a serial LU solve (or a model whose solver is not a KSP) are now a RuntimeWarning and are
recorded under system.petsc_options_unused, not a RealizeError. The model-prefix syntax in the flat map
(ncls_ksp_rtol) is gone: per-model options are the sub-problem's own solver.petsc_options, which ymf already
merges key by key; a sub-problem the discretization has no model for is refused by name in dispatch.

Before: serial direct + ksp_type raised RealizeError. After: warns, records the options as unused.
Local: test/dispatch, test_pro_cli, test_adr_problem, test_domain_ymf: 256 passed, 0 failed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…_match_parun_defaults)

RunOptions mirrors parun's option dests and defaults, and test_run_options_match_parun_defaults checks every field
against parun's parser; wallStart is not a parser option (parun sets it on opts after parsing), so the check raised
KeyError: 'wallStart' on linux-64 / py3.12 (the only failure: 1 failed, 3182 passed). `pro run` now sets it on the
instance after building RunOptions; NS_base reads it with a default, as before.

Ran test_pro_cli options and parun tests (4 passed), test_timed_checkpoint malformed/unreached limit (2 passed);
`pro run --wall-limit 00:10:00 --state-every 3` parses into wallLimit, stateEvery and a wallStart.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…reak), SW2DCV crash, gf.D audit

From cekees/c0-r11 at b05ab48 (#262).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… take proteus_index_t

From cekees/c33-s2c-p2 at cd010d9 (#261).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ymf meshes only

From cekees/c71-r5 at 06ffb38 (#263).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l step and checkpoints; parun --wall-limit)

From cekees/c17-timed-checkpoint at 21a21b4 (#264).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fitted and unstructured meshes

Proteus runs the triangle executable, and Triangle 1.6 can produce a different mesh
from the same .poly and options on another platform: fitted refinement=1 has 118 nodes
on Linux x86_64 (conda-forge triangle 1.6, hb9d3cd8_6) and 114 on other platforms, which
moves the fitted and unstructured columns of the manuscript's Table 1 by up to 16%.

- test/ci/ladr_fitted_2d_p.py, test/ci/ladr_3p_2d_p.py (unstructured=True only): option
  meshFile=<prefix> copies <prefix>.node/.ele/.edge to the driver's .poly prefix (on the
  master rank) and sets genMesh=False, so Proteus reads that mesh instead of running
  triangle. Without the option nothing changes.
- test/IFEM/meshes: the refinement 1 and 2 meshes behind the manuscript's fitted and
  unstructured columns (192 KB).
- test/IFEM/test_ifem_3p.py: cases table1_unstructured and table1_fitted (p=1, 2) run the
  first row of each column on the pinned refinement-1 mesh, check the node count (125,
  118) so a regenerated mesh fails, and compare with new pins equal to the manuscript's
  first rows (fitted p=1 L2 6.4150e-2, unstructured p=1 L2 5.9369e-2).

Checked on 1.9.x (8461694): the drivers on the pinned refinement-1 and -2 meshes give
results bit-identical to the runs that generated them, and triangle is not called;
test/IFEM and test_equivalent_polynomials pass (75, including the two-rank cases).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HEhZZbGLmd57vYntPKW6am
(cherry picked from commit 1938b09)

Note (forward-port): test_ifem_3p.py resolved against main's opts fixture; run_case(opts, name, order) now returns (errors, nodes).
…cap, with tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d0b01cf)
(cherry picked from commit 244a06b)
The docstring said the settings follow a named journal's artwork guidelines.
Journal names stay out of public proteus text until a release after acceptance
(cekees, 2026-11-10), so it now says "the target publisher's". Docstring only;
the settings themselves (Arial/Liberation Sans, TrueType fonts, 600 dpi
rasters) are unchanged. ast.parse clean.

Follows #266 (it adds the file).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 0c670c0)
… scalars

main's archiver writes a derived scalar as Sg_t3, 1.9.x as Sg0_t3; the reader
accepts either. Forward-port of the m_comp_co2 rework (#266).
Measured on main: test/m_comp_co2 8 passed against the unchanged 1.9.x
expected values; test/IFEM/test_ifem_3p.py 24 passed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…osted runners, proteustoolkit#1356)

On GitHub's hosted runners three continuation tests failed (aarch64: both [interval-end]; macos-15: the 2-rank
[mid-interval]): the second leg took [0.04, 0.06, 0.08, 0.1] where [0.06, 0.08, 0.1] was expected, i.e. leg one
stopped a step early and the continuation repeated the step it stopped at. Cause, in the test harness and not
in the stop: WALLSTEPS replaced the wall clock by a step counter (one second per step, limit n + 0.5 s) but the
checkpoint cost in the decision was still the real, measured or estimated one (frame time x state/dof bytes).
When archive writes are slow enough that cost passes the half second of slack, "next step + checkpoint" no
longer fits one step sooner. Reproduced here by making every archive write 1 s slower (SLOWARCHIVE=1.0, a new
helper knob): the cost estimate was 216 s, leg one stopped after 2 steps instead of 7, and the two serial
continuation tests failed with the CI's assertion (test_timed_checkpoint.py:191).

The helper now fixes the checkpoint cost too (WALLCOST, default 0 clock seconds; WALLCOST=measured keeps the
run's own), so the step a run stops after is a function of the step count only. The tests assert it directly
(leg one took exactly stop_after steps) before comparing the legs. New tests: the continuation under
SLOWARCHIVE=1.0, and the margin itself (limit 5.5 s, a 1.5 s checkpoint stops after 4 steps, none after 5);
the estimate test uses WALLCOST=measured.

Run here (macOS arm64): test_timed_checkpoint + test_wall_limit 35 passed; the five continuation tests (1 and 2
ranks, mid-interval and interval-end) also pass with SLOWARCHIVE=1.0 in the environment, 8 min. No change to
production code: the decision and the checkpoint are as measured before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cekees and others added 3 commits November 12, 2026 09:20
…(pinned IFEM meshes, m_comp_co2 per-rock closure, vdft figure tooling)

From cekees/fwd-1.9.x-265-266 at 9f23cbc (#269).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… petsc_options on the deck-machinery paths

From cekees/c5-step4 at d9c4f69 (#260).

Conflict in test/dispatch/test_dispatch_run.py, resolved toward #262 (already in this
train): #260 added NONREPRODUCIBLE = {damBreakLevelSet_clsvof-2, damBreak_projection-2} with a
non-strict xfail; #262 removed that mechanism because the 2-rank CLSVOF nondeterminism was PETSc's
VecMDot gemv path, now off. Both cases are therefore asserted bitwise on 2 ranks; the projection
case matched on its one 2-rank run in #260's session. CI on this train is the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…depend on archive speed

From cekees/c17-timed-checkpoint at bb3a7b1 (#264).
Adds bb3a7b1 on top of 21a21b4, already merged above: test harness only (WALLCOST, SLOWARCHIVE), for the
hosted-runner failures of this train's first CI run (run 43171202111).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cekees cekees changed the title Main train 2026-11-12: VecMDot reproducibility (CLSVOF 2-rank), kernel index types (CompKernel, VOF, NCLS), msh2simplex removed, timed checkpoint Main train 2026-11-12: VecMDot reproducibility, kernel index types, msh2simplex removed, timed checkpoint, ymf clsvof_projection and petsc_options, 1.9.x co-author forward ports Nov 12, 2026
@cekees
cekees merged commit 4501e53 into proteustoolkit:main Nov 12, 2026
9 checks passed
@cekees
cekees deleted the train/main-2026-11-12 branch November 12, 2026 12:08
cekees added a commit to cekees/proteus that referenced this pull request Nov 12, 2026
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