Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add LDAS_INCR to AGCM.rc.tmpl for land-atmos coupled das #288

Merged
merged 6 commits into from
Feb 10, 2022

Conversation

saraqzhang
Copy link
Contributor

fvsetup sets the parameter LDAS_INCR to default 0 , user input can set it to 1 for land-atmos coupled das experiment.

@gmao-rreichle gmao-rreichle added Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs 0 diff The changes in this pull request have verified to be zero-diff with the target branch. enhancement New feature or request labels Jan 27, 2022
@saraqzhang saraqzhang marked this pull request as ready for review January 28, 2022 17:40
@saraqzhang saraqzhang requested a review from a team as a code owner January 28, 2022 17:40
@saraqzhang saraqzhang removed the Contingent - DNA Do Not Approve (DNA). These changes are contingent on other PRs label Jan 28, 2022
gmao-rreichle
gmao-rreichle previously approved these changes Jan 28, 2022
AGCM.rc.tmpl Outdated
# 0 : no (default)
# 1 : yes
# ---------------------------------------------------
LDAS_INCR: @LDAS_INCR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saraqzhang @gmao-rreichle Just a question: should we use gcm_setup to give this a value here? At the moment, AGCM.rc when untemplated will still have @LDAS_INCR after an experiment is set up.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is, AGCM.rc when created by gcm_setup. Obviously, fvsetup does its own thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mathomp4 I see that gcm_setup and fvsetup use the same AGCM.rc.tmpl here. then we need to make #LDAS_ICNR @LDAS_INCR in AGCM.rc.tmpl here. In fvsetup we need to add 'uncomment" if LDAS_INCR is needed. @gmao-rreichle

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saraqzhang Note: it's possible the GCM just doesn't care about this...so it doesn't matter. I think @sdrabenh is testing that now. If the GCM doesn't even know about LDAS_INCR then this might be moot! I just wanted to make sure the GCM never tries to read this variable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mathomp4, for pointing out the gcm_setup connection. I agree that we should have a sensible value (or nothing at all) for LDAS_INCR: after gcm_setup. I'm ok with either solution, ie, comment out LDAS_INCR in AGCM.rc.tmpl and then have fvsetup uncomment it, or having gcm_setup introduce a default of 0.
One thing to consider, though: If someone should want to run the GCM without the DAS but still ingest pre-computed LDAS_INCR data (such as in a replay), commenting out LDAS_INCR may be somewhat less attractive. Or maybe replays are entirely the domain of fvsetup, and nobody would use gcm_setup to do a replay? @saraqzhang, just something to think about in connection with the "replay" PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmao-rreichle
No worries. That is why we all do these tests. It's a lot to keep track of. I just tested with it commented out and everything seems happy:
Character Resource Parameter: CATCH_INTERNAL_RESTART_FILE:catch_internal_rst Using parallel NetCDF for file: catch_internal_rst Integer*4 Resource Parameter: LDAS_INCR:0
@saraqzhang would you mind pushing those changes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmao-rreichle I was not asked to test this PR. But yes, this was at the time I took a week off.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sdrabenh, @saraqzhang: I went ahead and committed the change, so should be good for GCM. Sara, I suppose now we'll need to modify fvsetup accordingly in a new GEOSadas PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sdrabenh, @saraqzhang: With the latest commits, the PR is now trivially 0-diff, and in a silly way it's obsolete. We could conceivably address our needs without any changes to AGCM.rc.tmpl. However, since LDAS_INCR: is an rc variable in the GCM, I think it's best to have the commented-out line in AGCM.rc.tmpl even so, because it provides documentation, so I'd still recommend merging it into develop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmao-rreichle LDAS_INCR will be needed for future gcm replay from LADAS. it is good to have the addition now.

@gmao-rreichle gmao-rreichle added 0 diff trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) and removed 0 diff The changes in this pull request have verified to be zero-diff with the target branch. labels Feb 10, 2022
@sdrabenh sdrabenh merged commit 13ad22b into develop Feb 10, 2022
@sdrabenh sdrabenh deleted the feature/saraqzhang/addLDAS2AGCMrc branch February 10, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff trivial The changes in this pull request are trivially zero-diff (documentation, build failure, &c.) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants