Skip to content

Conversation

@sunt05
Copy link

@sunt05 sunt05 commented Dec 6, 2025

Summary

Re-enables AnOHM (Analytical Objective Hysteresis Model) without requiring access to future meteorological forcing data. Introduces a double-buffering system that accumulates hourly forcing observations in a working buffer and commits them to a coefficient buffer when the day completes.

Changes

  • Added rolling 24-hour forcing buffers to OHM_STATE structure for managing daily forcing series
  • Refactored module_phys_anohm to consume pre-buffered forcing arrays instead of legacy MetForcingData_grid dependency
  • Implemented day-rollover management with graceful OHM fallback during AnOHM spin-up
  • Updated documentation to clarify the trailing-day workflow

Notes

  • See review feedback on critical index calculation and magic number thresholds
  • Requires clarification on timer%it semantics for sub-hourly timestep support

@sunt05 sunt05 force-pushed the feat/anohm-rolling-buffer branch from cf963d4 to 43a634b Compare December 6, 2025 22:48
- Added rolling 24-hour forcing buffers to OHM_STATE and SUEWS_cal_Qs so StorageHeatMethod 3 now diagnoses coefficients from the most recently completed day
- Refactored module_phys_anohm to consume buffered shortwave, meteorology, and anthropogenic heat series directly (removed the legacy MetForcingData_grid dependency)
- Updated StorageHeatMethod documentation to clarify the trailing-day workflow and avoid confusion about forcing requirements
@github-actions
Copy link

Preview Deployed

Content Preview URL
Site https://suews.io/preview/pr-1018/
Docs https://suews.io/preview/pr-1018/docs/

Note

This preview is ephemeral. It will be lost when:

  • Another PR with site/ or docs/ changes is pushed
  • Changes are merged to master
  • A manual workflow dispatch runs

To restore, push any commit to this PR.

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