-
Notifications
You must be signed in to change notification settings - Fork 0
WIP: Nonlocal gws global #32
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
base: datawave_ml
Are you sure you want to change the base?
Conversation
This reverts commit 28e0530.
untested code for lonlat2phys regrid
- Work in progress - UNet runs once successfully. Generating fluxes from the inputs. - Fluxes need to be double checked - Currently we do not compute tendencies - This will be done in a subsequent commit
| ! Create an ESMF_mesh for the physics decomposition | ||
| physics_grid_mesh = ESMF_MeshCreate(trim(grid_file), ESMF_FILEFORMAT_ESMFMESH, & | ||
| elementDistgrid=dist_grid_2d, rc=rc) | ||
| call check_esmf_error(rc, subname//'ESMF_MeshCreate') |
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.
For future README updates - this error is thrown as grid_file is unset.
As Tom suggests, the following is required in the user_nl_cam file.
! for regridding
cam_physics_mesh = '$ATM_DOMAIN_MESH'
Fix output to initialise tends output earlier for Unet global model
| do col = 1, ncol | ||
| forcing(col,1) = -1*(flux(col,2) - flux(col,1))/(pmid(col,2) - pmid(col,1)) | ||
| do level = 2, pver-1 | ||
| forcing(col,level) = (flux(col,level+1) - flux(col,level-1)) / (pmid(col,level)*(log(pmid(col,level+1)) - log(pmid(col,level-1)))) |
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.
Looks like we might be missing a sign here @TomMelt. It's possible you haven't rebased off main?
work in progress
This PR adds the UNet model into CAM and modifies the setup so that the single column, or UNet can be selected via appropriate namelist configuration (See README.md for more info)
TODO:
This branch is based on Francis Vitt's work here