Skip to content

Add CLM history file output around DA update - #77

Merged
jjokella merged 9 commits into
tsmp-pdaf-patchedfrom
tsmp-pdaf-patched-hist-write-pdaf
Oct 27, 2026
Merged

jjokella merged 9 commits into
tsmp-pdaf-patchedfrom
tsmp-pdaf-patched-hist-write-pdaf

Conversation

@jjokella

@jjokella jjokella commented Apr 27, 2026 •

Copy link
Copy Markdown
Collaborator

Partner PR of

Calls hist_init_da_tape after CLM initialisation to register a DA
history tape.

Introduces hist_write_pdaf.F90 with two C-callable entry
points (clm_hist_write_da_before/after) that capture the forecast and
analysis states as standard CLM history files.

enkfpf.par input variable CLM:print_da_hist_file

Calls `hist_init_da_tape` after CLM initialisation to register a DA
history tape.

Introduces `hist_write_pdaf.F90` with two C-callable entry
points (clm_hist_write_da_before/after) that capture the forecast and
analysis states as standard CLM history files.

`enkfpf.par` input variable `CLM:print_da_hist_file`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jjokella
jjokella force-pushed the tsmp-pdaf-patched-hist-write-pdaf branch from 4187953 to 3108351 Compare April 27, 2026 17:49
@jjokella jjokella changed the title Add CLM history file output around DA update` Add CLM history file output around DA update Apr 27, 2026
@jjokella
jjokella merged commit c7493a4 into tsmp-pdaf-patched Oct 27, 2026
1 check passed
@jjokella
jjokella deleted the tsmp-pdaf-patched-hist-write-pdaf branch October 27, 2026 08:40
jjokella added a commit to HPSCTerrSys/eCLM that referenced this pull request Oct 27, 2026
Partner PR of
- HPSCTerrSys/pdaf#77

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`.
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