SeaSloth — Runoff mapping

GLOFAS → ocean mapping file generation (mom6_forge.gen_rof_maps), one-time snapshot on Derecho/GLADE. · Raw data (JSON)

Cost vs. ocean domain size

gen_rof_maps() builds the two mapping files CESM’s DROF component needs to move river discharge onto the ocean grid — a nearest-neighbor map and a smoothed one. Every case here regrids from the production GLOFAS mesh CIME registers as ROF_DOMAIN_MESH (21.6M elements), since that is the only source mesh a real case ever uses.

The ladder starts well below any real configuration — a 1° box, 144 ocean cells — and steps up roughly 4× per rung. The four box_* rungs are squares anchored at the Gulf of Mexico’s southwest corner, so the small end of the sweep is a zoom-in on the smallest real configuration rather than an unrelated patch of ocean. From the Gulf of Mexico up, every rung is a domain CROC actually builds.

What the curve says: Across the ladder, the destination grid grows 16,800× (144 → 2.4M ocean cells) while wall time grows 2.41× (77.73 s → 187.15 s). Cost is essentially flat up to the Caribbean — 805× more cells for 1.02× the time — and only then begins to rise, mildly and roughly linearly. What dominates the small end is fixed source-mesh work: every source-domain field (xc_a, yc_a, xv_a, mask_a, area_a, …) is ~2.2 GB and gets written into both output files, so a 1° box pays nearly the same toll as a basin. The destination grid only starts to matter at basin scale, and even there it is a factor, not a wall.

test_gen_rof_maps_domain — time vs. ocean domain

An ascending ladder of destination sizes at fixed 1/12° resolution: sub-real boxes first, then the domains CROC actually builds. Both nearest-neighbor and smoothed mapping files. Log-scale y, axis pinned to one decade so a flat curve reads as flat.

Production ROF mesh (21.6M elem)
Production ROF mesh (21.6M elem) — 1° box, 144 cells: 77.73 s77.73 sProduction ROF mesh (21.6M elem) — 2° box, 576 cells: 73.75 s73.75 sProduction ROF mesh (21.6M elem) — 4° box, 2K cells: 76.53 s76.53 sProduction ROF mesh (21.6M elem) — 8° box, 9K cells: 74.18 s74.18 sProduction ROF mesh (21.6M elem) — Gulf of Mexico, 34K cells: 80.70 s80.70 sProduction ROF mesh (21.6M elem) — Caribbean, 116K cells: 78.90 s78.90 sProduction ROF mesh (21.6M elem) — N. Atlantic, 576K cells: 105.70 s105.70 sProduction ROF mesh (21.6M elem) — Indo-Pacific, 2.4M cells: 187.15 s187.15 s 1° box144 cells2° box576 cells4° box2K cells8° box9K cellsGulf of Mexico34K cellsCaribbean116K cellsN. Atlantic576K cellsIndo-Pacific2.4M cells

Domain ladder — full numbers

Fixed 1/12° destination resolution, rmax = fold = 20 km.

DomainOcean cellsMeanPeak RSS
1° box14477.73 s12538.4 MB
2° box57673.75 s12954.5 MB
4° box2K76.53 s13368.9 MB
8° box9K74.18 s13378.9 MB
Gulf of Mexico34K80.70 s12588.4 MB
Caribbean116K78.90 s12650.4 MB
N. Atlantic576K105.70 s13235.8 MB
Indo-Pacific2.4M187.15 s15801.6 MB

Cost vs. ocean resolution

The same call over one fixed footprint (Gulf of Mexico), so the source/destination overlap window and the set of contributing rivers are constant and only the destination cell count changes. This separates “how fine is the ocean grid” from “how much of the world does this domain touch” — and it confirms the domain ladder’s reading. Across the sweep, the destination grid grows 39× (4K → 146K ocean cells) while wall time grows 1.02× (79.69 s → 81.21 s). The ordering is not even monotonic — the spread is run-to-run noise.

test_gen_rof_maps_resolution — time vs. ocean resolution

Fixed Gulf of Mexico footprint, increasing destination resolution. Log-scale y, axis pinned to one decade.

Production ROF mesh (21.6M elem)
Production ROF mesh (21.6M elem) — 1/4°, 4K cells: 79.69 s79.69 sProduction ROF mesh (21.6M elem) — 1/8°, 15K cells: 71.95 s71.95 sProduction ROF mesh (21.6M elem) — 1/12°, 34K cells: 72.68 s72.68 sProduction ROF mesh (21.6M elem) — 1/25°, 146K cells: 81.21 s81.21 s 1/4°4K cells1/8°15K cells1/12°34K cells1/25°146K cells

Resolution sweep — full numbers

Fixed Gulf of Mexico footprint, rmax = fold = 20 km.

ResolutionOcean cellsMeanPeak RSS
1/4°4K79.69 s12563.0 MB
1/8°15K71.95 s12589.0 MB
1/12°34K72.68 s12591.9 MB
1/25°146K81.21 s12606.0 MB