Skip to content

FreeSurface records hscale but not tscale, so a published benchmark checkpoint cannot be evaluated at matched physical time #562

Closed as not planned

Description

@lmoresi

Found while re-validating Crameri Case-2 against #560's fix (PR #561).

The free-surface path records the length scale (hscale, used to report topography in metres) but not the corresponding time scale. A published benchmark checkpoint of the form "≈398 m at 3 Ma" can therefore only be checked as a trajectory — does the amplitude pass through the right value in the right order — not at matched physical time.

That was sufficient to establish what #561 needed (the trajectory is unchanged to ten significant figures before and after the fix, so agreement with the benchmark is unchanged). But it is not sufficient to state "we reproduce Crameri Case-2 at 3 Ma to X%", which is the claim a paper or a validation table would want to make.

Fix: record the time scale alongside hscale where the model's nondimensionalisation is captured, and expose it on the same object, so a benchmark comparison can convert both axes. Worth checking at the same time whether other validated cases (Y20 spherical relaxation, the analytic suite's time-dependent members) have the same gap.

Underworld development team with AI support from Claude Code

Activity

  1. lmoresi commented on Aug 16, 2026

    @lmoresi
    MemberAuthor

    Looking at this to size it, the location the issue names does not exist in the
    repository. hscale appears nowhere in src/. Both scales are command-line
    arguments to the plotting scripts
    :

    ~/+Simulations/FreeSurface/crameri_study/scripts/plot_case2_topo.py:10
        Usage: plot_case2_topo.py RUNDIR [--tscale MYR_PER_UNIT --hscale M_PER_UNIT]
    

    The plotter already takes both and already knows the reference
    (Crameri ref ≈398 m @3 Ma, line 46). So the gap is not that the time scale is
    missing from a pair — it is that nothing in the run records either scale, and
    a reader has to supply both from memory to dimensionalise the output at all. The
    length scale only looks recorded because whoever plots it remembers what to pass.

    That makes the fix a choice we should make before writing it:

    1. The run's diagnostic output carries the scales. The free-surface path
      writes them beside the topography series, so a plot of a run needs no
      arguments. Narrow, and only helps this harness.
    2. The checkpoint carries the model's nondimensionalisation. uw.Model
      already stores metadata["reference_quantities"] with magnitude and units per
      quantity when set_reference_quantities is called, so a run that sets a time
      reference has the information; what is missing is that the free-surface study
      does not set one, and that nothing reads it back on the plotting side. This
      generalises to the Y20 relaxation and the time-dependent analytic members,
      which the issue asks about.

    We think (2) is the one worth building — it makes "we reproduce Crameri Case-2 at
    3 Ma to X%" a claim any run can support rather than one this harness can — but it
    is a bigger job than the issue implies and it belongs with the free-surface
    validation work rather than in a quick-fix batch. Leaving it open and unassigned
    for that reason, with the sizing recorded.

    Underworld development team with AI support from Claude Code

  2. added
    roadmap
    enhancement
    on Nov 13, 2026
  3. lmoresi commented on Nov 13, 2026

    @lmoresi
    MemberAuthor

    This is a planning item and not a defect of its own (it carries the roadmap label), so it moves to the roadmap project and this issue is closed.

    Roadmap item: "A run records its length and time scales, so a benchmark can be compared at matched physical time", in the Underworld roadmap, status Inbox. The item says what is asked for and what would settle it. The history and the measurements stay here.

    The close reason reads "not planned" because GitHub has no state for "moved to the roadmap"; the work is not rejected. If something here turns out to be a defect, it gets an issue of its own.

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions