-
Notifications
You must be signed in to change notification settings - Fork 173
cam6_3_012: Add Horizontal Momentum Tendency Budget Variables #232
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
Changes from 4 commits
3940361
4af221c
9daa69c
9367e6f
e8921fb
acda43a
c40e013
6118faa
e4cafa7
628c61a
3e545be
36e9b57
1d80a41
a027992
beb9a2c
1341dc8
eaed8dd
7366663
2315590
7ab1db2
f7890f4
0ec281e
6940b63
55376ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,8 @@ module check_energy | |
|
|
||
| integer :: teout_idx = 0 ! teout index in physics buffer | ||
| integer :: dtcore_idx = 0 ! dtcore index in physics buffer | ||
| integer :: ducore_idx = 0 ! dtcore index in physics buffer | ||
| integer :: dvcore_idx = 0 ! dtcore index in physics buffer | ||
lignumvit marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
lignumvit marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| type check_tracers_data | ||
| real(r8) :: tracer(pcols,pcnst) ! initial vertically integrated total (kinetic + static) energy | ||
|
|
@@ -137,9 +139,13 @@ subroutine check_energy_register() | |
|
|
||
| call pbuf_add_field('TEOUT', 'global',dtype_r8 , (/pcols,dyn_time_lvls/), teout_idx) | ||
| call pbuf_add_field('DTCORE','global',dtype_r8, (/pcols,pver,dyn_time_lvls/),dtcore_idx) | ||
| call pbuf_add_field('UTEND_CORE','global',dtype_r8, (/pcols,pver,dyn_time_lvls/),ducore_idx) | ||
| call pbuf_add_field('VTEND_CORE','global',dtype_r8, (/pcols,pver,dyn_time_lvls/),dvcore_idx) | ||
| if(is_subcol_on()) then | ||
| call pbuf_register_subcol('TEOUT', 'phys_register', teout_idx) | ||
| call pbuf_register_subcol('DTCORE', 'phys_register', dtcore_idx) | ||
| call pbuf_register_subcol('UTEND_CORE', 'phys_register', ducore_idx) | ||
| call pbuf_register_subcol('VTEND_CORE', 'phys_register', dvcore_idx) | ||
| end if | ||
|
|
||
| end subroutine check_energy_register | ||
|
|
@@ -173,7 +179,7 @@ subroutine check_energy_init() | |
| ! Initialize the energy conservation module | ||
| ! | ||
| !----------------------------------------------------------------------- | ||
| use cam_history, only: addfld, add_default, horiz_only | ||
| use cam_history, only: addfld, add_default, horiz_only, register_vector_field | ||
lignumvit marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| use phys_control, only: phys_getopts | ||
|
|
||
| implicit none | ||
|
|
@@ -193,12 +199,19 @@ subroutine check_energy_init() | |
| call addfld('TEFIX', horiz_only, 'A', 'J/m2', 'Total energy after fixer') | ||
| call addfld('EFIX', horiz_only, 'A', 'W/m2', 'Effective sensible heat flux due to energy fixer') | ||
| call addfld('DTCORE', (/ 'lev' /), 'A', 'K/s' , 'T tendency due to dynamical core') | ||
| call addfld('UTEND_CORE', (/ 'lev' /), 'A', 'm/s2' , 'U tendency due to dynamical core') | ||
| call addfld('VTEND_CORE', (/ 'lev' /), 'A', 'm/s2' , 'V tendency due to dynamical core') | ||
| call register_vector_field('UTEND_CORE','VTEND_CORE') | ||
|
||
|
|
||
| if ( history_budget ) then | ||
| call add_default ('DTCORE', history_budget_histfile_num, ' ') | ||
| call add_default ('UTEND_CORE', history_budget_histfile_num, ' ') | ||
| call add_default ('VTEND_CORE', history_budget_histfile_num, ' ') | ||
| end if | ||
| if ( history_waccm ) then | ||
| call add_default ('DTCORE', 1, ' ') | ||
| call add_default ('UTEND_CORE', 1, ' ') | ||
| call add_default ('VTEND_CORE', 1, ' ') | ||
| end if | ||
|
|
||
| end subroutine check_energy_init | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.