-
Notifications
You must be signed in to change notification settings - Fork 150
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
cam6_3_089: TEM diagnostics calculated on the physics grid #677
Conversation
new file: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/shell_commands new file: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/user_nl_cam new file: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/user_nl_clm new file: src/physics/cam/phys_grid_ctem.F90 new file: src/utils/zonal_mean_mod.F90 modified: bld/namelist_files/namelist_definition.xml modified: src/control/cam_comp.F90 modified: src/control/runtime_opts.F90 modified: src/physics/cam/physpkg.F90
modified: src/physics/cam/phys_grid_ctem.F90
modified: src/physics/cam/phys_grid_ctem.F90 modified: src/physics/cam/physpkg.F90
modified: src/physics/cam/phys_grid_ctem.F90
@fvitt just double checking if this is purposefully a draft PR? |
Yes, this is meant to be a draft PR for now. |
@dan800 @nadavis-ncar : |
modified: src/utils/zonal_mean_mod.F90
modified: bld/namelist_files/namelist_defaults_cam.xml new file: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem_1deg/shell_commands new file: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem_1deg/user_nl_cam new file: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem_1deg/user_nl_clm
@fvitt Can you explain the rationale behind the "zm3d" namelist variables, e.g., call addfld ('VTHzm3d',(/'ilev' /), 'A','MK/S', 'Meridional Heat Flux: 3D zon. mean', gridname='physgrid' ) At least to me it seems contradictory/confusing. |
@dan800 |
@dan800 , @nadavis-ncar : Sample runs can be found under: Source code on cheyenne is under : |
new file: cime_config/testdefs/testmods_dirs/cam/outfrq1d_physgrid_tem_mpasa120_wcmsc/shell_commands new file: cime_config/testdefs/testmods_dirs/cam/outfrq1d_physgrid_tem_mpasa120_wcmsc/user_nl_cam new file: cime_config/testdefs/testmods_dirs/cam/outfrq1d_physgrid_tem_mpasa120_wcmsc/user_nl_clm modified: bld/namelist_files/use_cases/waccm_sc_2000_cam6.xml
modified: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/user_nl_cam modified: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem_1deg/user_nl_cam modified: src/physics/cam/phys_grid_ctem.F90
@fvitt @cacraigucar it looks like this code is dependent on #629 - is that correct? If so, I will give that code an initial review first. |
@peverwhee This is PR can be reviewed independent from #629. This PR includes the utility module |
@fvitt ahh gotcha. Thanks. |
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.
a few (hopefully) small requests
…iewer modified: bld/namelist_files/namelist_definition.xml modified: cime_config/testdefs/testmods_dirs/cam/outfrq1d_physgrid_tem_mpasa120_wcmsc/user_nl_cam modified: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/user_nl_cam modified: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem_1deg/user_nl_cam modified: src/physics/cam/phys_grid_ctem.F90
modified: src/utils/zonal_mean_mod.F90
modified: src/physics/cam/phys_grid_ctem.F90 modified: src/physics/cam/physpkg.F90 modified: src/utils/zonal_mean_mod.F90
modified: src/utils/zonal_mean_mod.F90
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 good - I added a comment explaining my question about orthogonality (though it should've been orthonormality) but will move this to full review
cime_config/testdefs/testmods_dirs/cam/outfrq1d_physgrid_tem_mpasa120_wcmsc/user_nl_cam
Show resolved
Hide resolved
src/physics/cam/phys_grid_ctem.F90
Outdated
! vertical velocity | ||
w(:ncol,:,lchnk) = -sheight(:ncol,:) * phys_state(lchnk)%omega(:ncol,:) / phys_state(lchnk)%pmid(:ncol,:) | ||
|
||
! interpolate to layer interfaces |
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 is unnecessary - no need to interpolate output to ilev. Prefer output on lev anyway.
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.
The vertical interpolations have been removed. The calculations and output are now at the model layer mid-points.
modified: src/physics/cam/phys_grid_ctem.F90
@fvitt Great. Can you run out the model for a few months with the new
output format (on lev), so I can test my post-processing code.
…On Wed, Dec 21, 2022 at 3:33 PM Francis Vitt ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/physics/cam/phys_grid_ctem.F90
<#677 (comment)>:
> + uvp(:,:,:) = 0._r8
+
+ do lchnk = begchunk,endchunk
+
+ ncol = phys_state(lchnk)%ncol
+
+ ! scale height
+ sheight(:ncol,:) = phys_state(lchnk)%t(:ncol,:) * rgas / ( mbarv(:ncol,:,lchnk) * grav ) ! meters
+
+ ! potential temperature
+ theta(:ncol,:,lchnk) = phys_state(lchnk)%t(:ncol,:) * phys_state(lchnk)%exner(:ncol,:)
+
+ ! vertical velocity
+ w(:ncol,:,lchnk) = -sheight(:ncol,:) * phys_state(lchnk)%omega(:ncol,:) / phys_state(lchnk)%pmid(:ncol,:)
+
+ ! interpolate to layer interfaces
The vertical interpolations have been removed. The calculations and output
are now at the model layer mid-points.
—
Reply to this email directly, view it on GitHub
<#677 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJBT7ICWDAT3R42E2RS2RVLWOOAT5ANCNFSM6AAAAAARKJRHD4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Climate and Global Dynamics Laboratory & The High Altitude Observatory
National Center for Atmospheric Research, Boulder, Colorado 80307-3000
phone: +1 303 497-1160 fax: +1 303 497-1400 email: ***@***.***
|
@dan800 , These cases are run for 2 months. Do I need to run longer? /glade/scratch/fvitt/FWsc2000climo_f09_TEM_test06 Find history under |
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.
Definitely a lot of great work! I'll admit I have a fair amount of comments, but hopefully all of them are relatively simple to implement. Of course let me know if you have any questions or concerns with my suggestions.
cime_config/testdefs/testmods_dirs/cam/outfrq1d_physgrid_tem_mpasa120_wcmsc/user_nl_cam
Show resolved
Hide resolved
modified: src/physics/cam/phys_grid_ctem.F90
modified: src/physics/cam/phys_grid_ctem.F90 modified: src/utils/zonal_mean_mod.F90
modified: src/physics/cam/phys_grid_ctem.F90 modified: src/utils/zonal_mean_mod.F90
modified: cime_config/testdefs/testlist_cam.xml modified: cime_config/testdefs/testmods_dirs/cam/outfrq3s_physgrid_tem/user_nl_cam modified: cime_config/testdefs/testmods_dirs/cam/outfrq3s_physgrid_tem/user_nl_clm renamed: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/shell_commands -> cime_config/testdefs/testmods_dirs/cam/outfrq3s_physgrid_tem/shell_commands renamed: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/user_nl_cam -> cime_config/testdefs/testmods_dirs/cam/outfrq3s_physgrid_tem/user_nl_cam renamed: cime_config/testdefs/testmods_dirs/cam/outfrq9s_physgrid_tem/user_nl_clm -> cime_config/testdefs/testmods_dirs/cam/outfrq3s_physgrid_tem/user_nl_clm
modified: cime_config/testdefs/testlist_cam.xml modified: src/physics/cam/phys_grid_ctem.F90
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 good to me now! I just have a few last one-line change requests, but hopefully nothing that seriously holds up this PR.
modified: src/utils/zonal_mean_mod.F90
modified: src/utils/zonal_mean_mod.F90
Transformed Eulerian Mean (TEM) diagnostics calculated on the physics grid, independent of dynamical core.
closes #653
closes #652