Skip to content

Add PDAF DA history tape to histFileMod#109

Open
jjokella wants to merge 4 commits intomasterfrom
dev-hist-file-pdaf
Open

Add PDAF DA history tape to histFileMod#109
jjokella wants to merge 4 commits intomasterfrom
dev-hist-file-pdaf

Conversation

@jjokella
Copy link
Copy Markdown
Contributor

@jjokella jjokella commented Apr 27, 2026

Partner PR of

Introduces a dedicated DA output tape (only activated under
USE_PDAF) that writes instantaneous snapshots of the fields
registered on tape 1 (h0) before and after each DA update.

The "DA-tape" is appended as ntapes+1 at initialisation, but never
auto-triggered by the normal CLM driver.

The DA-tape produces per-cycle files named
caseid.clm2.da_bef.YYYY-MM-DD-SSSSS.nc or
caseid.clm2.da_aft.YYYY-MM-DD-SSSSS.nc.

Introduces a dedicated DA output tape (only activated under
`USE_PDAF`) that writes instantaneous snapshots of the fields
registered on tape 1 (h0) before and after each DA update.

The "DA-tape" is appended as ntapes+1 at initialisation, but never
auto-triggered by the normal CLM driver.

The DA-tape produces per-cycle files named
`caseid.clm2.da_bef.YYYY-MM-DD-SSSSS.nc` or
`caseid.clm2.da_aft.YYYY-MM-DD-SSSSS.nc`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jjokella jjokella force-pushed the dev-hist-file-pdaf branch from a83898d to 5a93343 Compare April 27, 2026 17:48
@jjokella jjokella changed the title Add PDAF DA history tape to histFileMod` Add PDAF DA history tape to histFileMod Apr 27, 2026
jjokella and others added 3 commits April 30, 2026 17:52
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Instead of a separate rollover block, propagate if_disphist(1) to the
DA tapes after hist_do_disp so the standard close and ntimes-reset
loops handle them uniformly.

DA tapes are excluded from the file-reopen branch
(closing always finalises the file; the next DA write opens a fresh
one) and their ntimes is reset whenever dispatched rather than only
when the tape is full.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants