- 
        Couldn't load subscription status. 
- Fork 17
Rossby Test Case Initialization #50
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
Rossby Test Case Initialization #50
Conversation
| This PR is partially tested in a related PR: NOAA-GFDL/pace#112 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small assert->try/catch but we are looking good.
- Use NamelistDefaults.sw_dynamics - Replace assert with raised TypeError in analytic_init.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Looks like the failing test is just because the NDSL version being pulled doesn't have sw_dynamics but thta's easy to fix
…dynamics with the next NDSL release
| 
 For now, I've hard-coded the sw_dynamics flag to False, but I left a TODO to change it back to the NamelistDefaults once there is a new NDSL tag. The small change to add the flag to NDSL is in 'develop' currently. | 
| @FlorianDeconinck ready for re-review | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good (sorry for delay).
One thing you want to add is a try/catch around sw_dynamics being True when we try to init the Rossby case so bad config are caught early.
| 
 @FlorianDeconinck I think you're right. We should  check that  The reason I ask is that I'm currently thinking of modifying the input parameters to  | 
        91d9ecb
      
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- Use NamelistDefaults.sw_dynamics - Replace assert with raised TypeError in analytic_init.py
Description
This is the first step in porting a Fortran shallow water test to pace. This PR will add DycoreState initialization for the Rossby-Haurwitz wave 4 test case found in
tools/test_cases.F90(shallow-water test 6) of the GFDL_atmos_cubed_sphere repo.Additionally, there is an new
sw_dynamicsconfiguration flag added to the DynamicalCoreConfig that does nothing yet, but it will eventually be used to modify logic based on whether or not the test is for shallow water.Fixes # (issue)
None.
How Has This Been Tested?
DycoreState initialization for the Rossby case was unit-tested in the pace repository. This related code will be added in a separate PR for that repo.
Checklist: