Skip to content

Archiver writes the document as instants (ymf archive format 2) - #110

Merged
cekees merged 2 commits into
mainfrom
nesting-writer
Oct 26, 2026
Merged

cekees merged 2 commits into
mainfrom
nesting-writer

Conversation

@cekees

@cekees cekees commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Step 3 of 3 for time-outside-space (design: docs/design-time-outside-space.md, cekees/ymf#22). Stacked on #109 (base is nesting-readers) and needs cekees/ymf#23; draft until both merge, then retarget to main.

  • assemble_domain walks steps outermost; each collection's grid joins the instant at its time. Result is a times domain.
  • _appendLiveStep writes one record per instant (it was one per collection per step), so a killed run loses a whole instant.
  • Inline archives build instants directly; archived_times reads times; scripts/gatherTimes truncates instants.
  • The HDF5 metadata layout and METADATA_FORMAT_VERSION (2) are unchanged, so hot start and every existing .h5 still work.
  • Fix found on the way: a reader that does not know the step count stopped a collection at its first missing step, so a space first archived late was lost by readArchiveDomain. It now waits for a collection's first step.
  • New test/test_archive_instants.py (two spaces, one live record per instant, kill mid-instant, late space).

Local run against the ymf#23 branch (extensions borrowed from another worktree; not CI): 193 archive-area tests pass, plus 71 more (test_spatialtools, declared/fields). test_adr_problem passed 55 then stopped at test_an_l_shaped_region_converges_at_second_order, which fails because the borrowed environment has no working mesh generator for it (mv of triangle output missing); I did not run the tests after it.

🤖 Generated with Claude Code

assemble_domain walks steps outermost and lets each collection join the
instant at its time; the live append writes one record per instant, so a
killed run loses a whole instant, never one space of it; inline archives
build instants directly; archived_times is the instants; gatherTimes
truncates instants. The HDF5 metadata layout and METADATA_FORMAT_VERSION
are unchanged. A space first archived late is now found by a reader that
does not know the step count (it used to stop at the first gap).

Needs ymf archive format 2 (cekees/ymf#23).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Base automatically changed from nesting-readers to main October 26, 2026 08:37
@cekees
cekees marked this pull request as ready for review October 26, 2026 09:01
@cekees
cekees merged commit 239a396 into main Oct 26, 2026
10 checks passed
@cekees
cekees deleted the nesting-writer branch October 26, 2026 15:54
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.

1 participant