Skip to content

Conversation

jonbob
Copy link
Contributor

@jonbob jonbob commented Jun 26, 2025

The current version of gen_domain has a default value of 0.001 for the min allowable land fraction. That is too large and shows up in the cpl area budget for e3sm runs. The fminval can be overwritten on the command line but rarely is, so it seems safer to make the default much smaller (1e-8) instead. The resulting domain files will have a different number of lnd cells, so it would be complicated to regenerate domain files for all supported mesh configurations. But at least any new domain files should be corrected.

Partially fixes #7465 -- the Fortran version in CIME also has the same issue
[non-BFB] for any new domain files

@jonbob jonbob requested review from whannah1 and proteanplanet June 26, 2025 17:22
@jonbob jonbob self-assigned this Jun 26, 2025
@jonbob jonbob added bug fix PR non-BFB PR makes roundoff changes to answers. Coupled Model labels Jun 26, 2025
@jonbob jonbob requested a review from rljacob July 16, 2025 20:46
@jonbob
Copy link
Contributor Author

jonbob commented Jul 16, 2025

@rljacob -- I've asked you to review this as well. It mostly impacts the coupled model, so please assign anyone else you think might be interested. And let me know if we should try to get the same change made in the cime Fortran version of this code.

@rljacob
Copy link
Member

rljacob commented Jul 16, 2025

Do we still use the Fortran version at all? @whannah1 or @bishtgautam ?

@jonbob
Copy link
Contributor Author

jonbob commented Jul 16, 2025

It gets built by e3sm-unified. I think I make most of the domain files currently, but we could also change any documentation to point at this version. Either that or make sure any documentation specifies fminval on the command line of the Fortran version

@bishtgautam
Copy link
Contributor

@rljacob, I don't generate domain files for supported resolutions. So, I'm unable to answer your question.

Copy link
Contributor

@proteanplanet proteanplanet left a comment

Choose a reason for hiding this comment

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

This is an important change. Approved.

jonbob added a commit that referenced this pull request Jul 17, 2025
)

Set default value of fminval in python version of gen_domain to 1.0e-08

The current version of gen_domain has a default value of 0.001 for the
min allowable land fraction. That is too large and shows up in the cpl
area budget for e3sm runs. The fminval can be overwritten on the command
line but rarely is, so it seems safer to make the default much smaller
(1e-8) instead. The resulting domain files will have a different number
of lnd cells, so it would be complicated to regenerate domain files for
all supported mesh configurations. But at least any new domain files
should be corrected.

Partially fixes #7465 -- the Fortran version in CIME also has the same
                         issue
[non-BFB] for any new domain files
@jonbob
Copy link
Contributor Author

jonbob commented Jul 17, 2025

merged to next

@jonbob jonbob merged commit dd0e097 into master Jul 18, 2025
3 checks passed
@jonbob jonbob deleted the jonbob/tools/reset-fminval-gen-domain branch July 18, 2025 17:39
@jonbob
Copy link
Contributor Author

jonbob commented Jul 18, 2025

merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix PR Coupled Model non-BFB PR makes roundoff changes to answers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The default min allowable value land fraction in gen_domain is too large
4 participants