Open
Conversation
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>
a83898d to
5a93343
Compare
AGonzalezNicolas
approved these changes
Apr 28, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partner PR of
Introduces a dedicated DA output tape (only activated under
USE_PDAF) that writes instantaneous snapshots of the fieldsregistered 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.ncorcaseid.clm2.da_aft.YYYY-MM-DD-SSSSS.nc.