Repository navigation
Add CIME Earth radius - #315
Merged
Merged
Conversation
Collaborator
Author
|
@proteanplanet, @dengwirda, let me know if this solution works for you. You could use the CIME Earth radius in your python code via: from mpas_tools.cime.constants import constants
earth_radius = constants['SHR_CONST_REARTH']Also, I can easily add other constants from CIME but I didn't know which would be useful during mesh creation (as opposed to within cores in MPAS-Model). |
|
@xylar This looks close to perfect to me - the exact solution we need. |
Collaborator
Author
|
Thanks @proteanplanet for the quick review! |
This is stored in a dictionary of potential CIME constants. A function can also be used to verify that the constants have the exptect value by comparing them with the constants from CIME from a provided E3SM tag.
xylar
force-pushed
the
get_cime_earth_radius
branch
from
May 29, 2020 09:30
cb0b611 to
18681f1
Compare
dengwirda
approved these changes
May 29, 2020
Contributor
|
Thanks @xylar this looks great! |
Collaborator
Author
|
Thanks @dengwirda! |
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.
This is stored in a dictionary of potential CIME constants.
A test has also been added to verify each time the
mpas_toolspackage is created (e.g. in Travis CI or onconda-forge) that the constants have the expected value by comparing them with the constants from CIME fromE3SM/master.