Skip to content

Commit 08f6755

Browse files
authored
v8.2.2-2.9 Update to MYNN-EDMF to add re-indexed arrays and temperature tendency change (#98)
* Update to MYNN-EDMF to add re-indexed arrays and temperature tendency change * Updating pointer to MYNN-EDMF, with bug fix for re-indexing * Updating pointer to MYNN-EDMF with MF updates and new 2d diagnostics * bug fix for pbl driver * updating MYNN-EDMF pointer to use bl_mynn_edmf_dd as namelist option * updating versioning * updating version for init
1 parent 93fe9df commit 08f6755

File tree

6 files changed

+35
-12
lines changed

6 files changed

+35
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MPAS-v8.2.2-2.8
1+
MPAS-v8.2.2-2.9
22

33
The Model for Prediction Across Scales (MPAS) is a collaborative project for
44
developing atmosphere, ocean, and other earth-system simulation components for

src/core_atmosphere/Registry.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22

3-
<registry model="mpas" core="atmosphere" core_abbrev="atm" version="8.2.2-2.8">
3+
<registry model="mpas" core="atmosphere" core_abbrev="atm" version="8.2.2-2.9">
44

55
<!-- **************************************************************************************** -->
66
<!-- ************************************** Dimensions ************************************** -->
@@ -1137,6 +1137,8 @@
11371137
<var name="maxmf"/>
11381138
<var name="maxwidth"/>
11391139
<var name="ztop_plume"/>
1140+
<var name="excess_h"/>
1141+
<var name="excess_q"/>
11401142
<var name="hpbl"/>
11411143
<var name="cldfrac_cu"/>
11421144
<var name="refl10cm_cu"/>
@@ -3046,6 +3048,14 @@
30463048
description="Height of highest penetrating plume"
30473049
packages="bl_mynnedmf_in"/>
30483050

3051+
<var name="excess_h" type="real" dimensions="nCells Time" units="K"
3052+
description="Maximum excess heat added to plumes"
3053+
packages="bl_mynnedmf_in"/>
3054+
3055+
<var name="excess_q" type="real" dimensions="nCells Time" units="kg kg^{-1}"
3056+
description="Maximum excess moisture added to plumes"
3057+
packages="bl_mynnedmf_in"/>
3058+
30493059
<!-- MYJ PBL SCHEME: -->
30503060
<var name="chlowq" type="real" dimensions="nCells Time" units=""
30513061
description=""

src/core_atmosphere/physics/mpas_atmphys_driver_pbl.F

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ subroutine allocate_pbl(configs)
196196
if(.not.allocated(maxwidthbl_p) ) allocate(maxwidthbl_p(ims:ime,jms:jme) )
197197
if(.not.allocated(maxmfbl_p) ) allocate(maxmfbl_p(ims:ime,jms:jme) )
198198
if(.not.allocated(zbl_plume_p) ) allocate(zbl_plume_p(ims:ime,jms:jme) )
199-
199+
if(.not.allocated(excessh_p) ) allocate(excessh_p(ims:ime,jms:jme) )
200+
if(.not.allocated(excessq_p) ) allocate(excessq_p(ims:ime,jms:jme) )
201+
200202
if(.not.allocated(cov_p) ) allocate(cov_p(ims:ime,kms:kme,jms:jme) )
201203
if(.not.allocated(qke_p) ) allocate(qke_p(ims:ime,kms:kme,jms:jme) )
202204
if(.not.allocated(qsq_p) ) allocate(qsq_p(ims:ime,kms:kme,jms:jme) )
@@ -371,7 +373,9 @@ subroutine deallocate_pbl(configs)
371373
if(allocated(maxwidthbl_p) ) deallocate(maxwidthbl_p )
372374
if(allocated(maxmfbl_p) ) deallocate(maxmfbl_p )
373375
if(allocated(zbl_plume_p) ) deallocate(zbl_plume_p )
374-
376+
if(allocated(excessh_p) ) deallocate(excessh_p )
377+
if(allocated(excessq_p) ) deallocate(excessq_p )
378+
375379
if(allocated(cov_p) ) deallocate(cov_p )
376380
if(allocated(qke_p) ) deallocate(qke_p )
377381
if(allocated(qsq_p) ) deallocate(qsq_p )
@@ -723,6 +727,8 @@ subroutine pbl_from_MPAS(configs,mesh,sfc_input,diag_physics,tend_physics,its,it
723727
maxwidthbl_p(i,j) = 0._RKIND
724728
maxmfbl_p(i,j) = 0._RKIND
725729
zbl_plume_p(i,j) = 0._RKIND
730+
excessh_p(i,j) = 0._RKIND
731+
excessq_p(i,j) = 0._RKIND
726732
enddo
727733
enddo
728734

@@ -826,7 +832,7 @@ subroutine pbl_to_MPAS(configs,diag_physics,tend_physics,its,ite)
826832
real(kind=RKIND),dimension(:),pointer :: delta,wstar
827833

828834
!local pointers for MYNN scheme:
829-
real(kind=RKIND),dimension(:),pointer :: maxmf,maxwidth,ztop_plume
835+
real(kind=RKIND),dimension(:),pointer :: maxmf,maxwidth,ztop_plume,excess_h,excess_q
830836
real(kind=RKIND),dimension(:,:),pointer:: cov,qke,qsq,tsq,sh3d,sm3d,tke_pbl,qke_adv,el_pbl,dqke,qbuoy, &
831837
qdiss,qshear,qwt
832838
real(kind=RKIND),dimension(:,:),pointer:: cldfrac_bl,qc_bl,qi_bl
@@ -992,6 +998,8 @@ subroutine pbl_to_MPAS(configs,diag_physics,tend_physics,its,ite)
992998
call mpas_pool_get_array(diag_physics,'maxmf' ,maxmf )
993999
call mpas_pool_get_array(diag_physics,'maxwidth' ,maxwidth )
9941000
call mpas_pool_get_array(diag_physics,'ztop_plume',ztop_plume)
1001+
call mpas_pool_get_array(diag_physics,'excess_h' ,excess_h )
1002+
call mpas_pool_get_array(diag_physics,'excess_q' ,excess_q )
9951003
call mpas_pool_get_array(diag_physics,'el_pbl' ,el_pbl )
9961004
call mpas_pool_get_array(diag_physics,'cov' ,cov )
9971005
call mpas_pool_get_array(diag_physics,'qke' ,qke )
@@ -1026,6 +1034,8 @@ subroutine pbl_to_MPAS(configs,diag_physics,tend_physics,its,ite)
10261034
maxmf(i) = maxmfbl_p(i,j)
10271035
maxwidth(i) = maxwidthbl_p(i,j)
10281036
ztop_plume(i) = zbl_plume_p(i,j)
1037+
excess_h(i) = excessh_p(i,j)
1038+
excess_q(i) = excessq_p(i,j)
10291039
enddo
10301040
enddo
10311041

@@ -1449,8 +1459,9 @@ subroutine driver_pbl(itimestep,configs,mesh,sfc_input,diag_physics,tend_physics
14491459
nc = nc_p , nifa = nifa_p , nwfa = nwfa_p , &
14501460
rthraten = rthraten_p , pblh = hpbl_p , kpbl = kpbl_p , &
14511461
cldfra_bl = cldfrabl_p , qc_bl = qcbl_p , qi_bl = qibl_p , &
1452-
maxwidth = maxwidthbl_p , maxmf = maxmfbl_p , &
1453-
ztop_plume = zbl_plume_p , dqke = dqke_p , qke_adv = qkeadv_p , &
1462+
maxwidth = maxwidthbl_p , maxmf = maxmfbl_p , ztop_plume = zbl_plume_p , &
1463+
excess_h = excessh_p , excess_q = excessq_p , &
1464+
qke = qke_p , qke_adv = qkeadv_p , &
14541465
tsq = tsq_p , qsq = qsq_p , cov = cov_p , &
14551466
el_pbl = elpbl_p , rublten = rublten_p , rvblten = rvblten_p , &
14561467
rthblten = rthblten_p , rqvblten = rqvblten_p , rqcblten = rqcblten_p , &
@@ -1460,7 +1471,7 @@ subroutine driver_pbl(itimestep,configs,mesh,sfc_input,diag_physics,tend_physics
14601471
edmf_thl = edmfthl_p , edmf_ent = edmfent_p , edmf_qc = edmfqc_p , &
14611472
sub_thl = subthl_p , sub_sqv = subqv_p , det_thl = detthl_p , &
14621473
det_sqv = detqv_p , exch_h = kzh_p , exch_m = kzm_p , &
1463-
qke = qke_p , qwt = qwt_p , qshear = qshear_p , &
1474+
dqke = dqke_p , qwt = qwt_p , qshear = qshear_p , &
14641475
qbuoy = qbuoy_p , qdiss = qdiss_p , sh3d = sh3d_p , &
14651476
sm3d = sm3d_p , spp_pbl = spp_pbl , pattern_spp = pattern_spp_pbl , &
14661477
do_restart = config_do_restart , &

src/core_atmosphere/physics/mpas_atmphys_vars.F

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,10 @@ module mpas_atmphys_vars
443443
real(kind=RKIND),dimension(:,:),allocatable:: &
444444
maxwidthbl_p, &!max plume width [m]
445445
maxmfbl_p, &!maximum mass flux for PBL shallow convection.
446-
zbl_plume_p !height of highest penetrating plume [m]
447-
446+
zbl_plume_p, &!height of highest penetrating plume [m]
447+
excessh_p, &!maximum heat excess applied to plumes [K]
448+
excessq_p !maximum moisture excess applied to plumes [kg/kg]
449+
448450
real(kind=RKIND),dimension(:,:,:),allocatable:: &
449451
dqke_p, &!
450452
qbuoy_p, &!

src/core_init_atmosphere/Registry.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<registry model="mpas" core="init_atmosphere" core_abbrev="init_atm" version="8.2.2-2.8">
2+
<registry model="mpas" core="init_atmosphere" core_abbrev="init_atm" version="8.2.2-2.9">
33

44
<!-- **************************************************************************************** -->
55
<!-- ************************************** Dimensions ************************************** -->

0 commit comments

Comments
 (0)