Skip to content

Commit e5c123a

Browse files
committed
* In the MPAS-A Kain-Fritsch CPS sourcecode:
-> Renamed config_cu_rad_feedback to config_cu_radt_feedback in Registry.xml and in ./physics. -> In mpas_atmphys_driver.F, removed extra comments related to the KF CPS since the sourcecode itself is not modified. -> All other changes are minor.
1 parent e5ec5d1 commit e5c123a

6 files changed

Lines changed: 22 additions & 25 deletions

File tree

src/core_atmosphere/Registry.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,7 @@
21882188
description="KF (1) original or (2) moisture-advection based convection trigger"
21892189
possible_values="1 or 2"/>
21902190

2191-
<nml_option name="config_cu_rad_feedback" type="logical" default_value="false" in_defaults="false"
2191+
<nml_option name="config_cu_radt_feedback" type="logical" default_value="false" in_defaults="false"
21922192
units="-"
21932193
description="whether to enable KF subgrid-scale cloud feedbacks to the SW and LW radiation schemes"
21942194
possible_values=".true. or .false."/>
@@ -2510,11 +2510,11 @@
25102510
packages="cu_kain_fritsch_in"/>
25112511

25122512
<var name="cldfracwcu" type="real" dimensions="nVertLevels nCells Time" units="unitless"
2513-
description="horizontal cloud fraction including Cu"
2513+
description="horizontal cloud fraction including convective cloud fraction"
25142514
packages="cu_kain_fritsch_in"/>
25152515

25162516
<var name="cldfracwcut" type="real" dimensions="nCells Time" units="unitless"
2517-
description="total cloud fraction including Cu"
2517+
description="total cloud fraction including convective cloud fraction"
25182518
packages="cu_kain_fritsch_in"/>
25192519

25202520

src/core_atmosphere/physics/mpas_atmphys_driver.F

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,18 @@ module mpas_atmphys_driver
8787
! Laura D. Fowler (laura@ucar.edu) / 2014-05-15.
8888
! * renamed config_conv_deep_scheme to config_convection_scheme.
8989
! Laura D. Fowler (laura@ucar.edu) / 2014-09-18.
90+
! * in the call to driver_convection, added block%configs needed for the implementation of the
91+
! Grell-Freitas convection scheme.
92+
! Laura D. Fowler (laura@ucar.edu) / 2016-03-30.
9093
! * modified the call to the subroutines driver_sfclayer and driver_pbl for the implementation
9194
! of the MYNN surface layer scheme and PBL schemes. itimestep and block%configs are added to
9295
! the argument list.
9396
! Laura D. Fowler (laura@ucar.edu) / 2015-01-06.
94-
! * in the call to driver_convection, added block%configs needed for the implementation of the
95-
! Grell-Freitas convection scheme.
96-
! Laura D. Fowler (laura@ucar.edu) / 2016-03-30.
9797
! * now only call subroutine update_convection_step2 when config_convection_scheme is not off.
9898
! Laura D. Fowler (laura@ucar.edu) / 2016-04-13.
9999
! * modified call to driver_cloudiness to accomodate the calculation of the cloud fraction with the Thompson
100100
! cloud microphysics scheme.
101101
! Laura D. Fowler (laura@ucar.edu) / 2016-06-04.
102-
! * added configs to cloudiness and convection calls to allow KF feedback and trigger options.
103-
! Jerold A. Herwehe (herwehe.jerry@epa.gov) / 2016-12-07.
104102
! * added call to the Noah-MP land surface scheme.
105103
! Laura D. Fowler (laura@ucar.edu) / 2024-03-11.
106104

src/core_atmosphere/physics/mpas_atmphys_driver_cloudiness.F

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,9 @@ subroutine driver_cloudiness(configs,mesh,diag_physics,sfc_input,its,ite)
282282
!inout arguments:
283283
type(mpas_pool_type),intent(inout):: diag_physics
284284

285-
logical, pointer:: cu_rad_feedback
286-
287285
!local variables and pointers:
288286
character(len=StrKIND),pointer:: radt_cld_scheme
287+
logical, pointer:: cu_radt_feedback
289288

290289
integer:: i,j,k
291290

@@ -298,7 +297,7 @@ subroutine driver_cloudiness(configs,mesh,diag_physics,sfc_input,its,ite)
298297

299298
call mpas_pool_get_config(configs,'config_radt_cld_scheme' ,radt_cld_scheme )
300299
call mpas_pool_get_config(configs,'config_convection_scheme',convection_scheme)
301-
call mpas_pool_get_config(configs,'config_cu_rad_feedback' ,cu_rad_feedback )
300+
call mpas_pool_get_config(configs,'config_cu_radt_feedback' ,cu_radt_feedback )
302301

303302
!copy MPAS arrays to local arrays:
304303
call cloudiness_from_MPAS(configs,mesh,diag_physics,sfc_input,its,ite)
@@ -342,9 +341,9 @@ subroutine driver_cloudiness(configs,mesh,diag_physics,sfc_input,its,ite)
342341
enddo
343342
enddo
344343

345-
if(cu_rad_feedback) then
346-
!adjust cloud fraction and condensates before radiation calls if Cu feedback is enabled by
347-
!incorporating subgrid-scale convective clouds into resolved cloudiness (based on CESM):
344+
if(cu_radt_feedback) then
345+
!adjust cloud fraction and condensates before radiation calls if Cu feedback is enabled by
346+
!incorporating subgrid-scale convective clouds into resolved cloudiness (based on CESM):
348347
do j = jts,jte
349348
do k = kts,kte
350349
do i = its,ite

src/core_atmosphere/physics/mpas_atmphys_driver_radiation_lw.F

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ subroutine radiation_lw_from_MPAS(xtime_s,configs,mesh,state,time_lev,diag_physi
317317
type(mpas_pool_type),intent(inout):: diag_physics
318318

319319
!local pointers:
320-
logical,pointer:: config_o3climatology,cu_rad_feedback
320+
logical,pointer:: config_o3climatology,cu_radt_feedback
321321
character(len=StrKIND),pointer:: radt_lw_scheme
322322
character(len=StrKIND),pointer:: microp_scheme
323323
character(len=StrKIND),pointer:: convection_scheme
@@ -343,7 +343,7 @@ subroutine radiation_lw_from_MPAS(xtime_s,configs,mesh,state,time_lev,diag_physi
343343
call mpas_pool_get_config(configs,'config_microp_scheme' ,microp_scheme )
344344
call mpas_pool_get_config(configs,'config_microp_re' ,config_microp_re )
345345
call mpas_pool_get_config(configs,'config_convection_scheme',convection_scheme )
346-
call mpas_pool_get_config(configs,'config_cu_rad_feedback' ,cu_rad_feedback )
346+
call mpas_pool_get_config(configs,'config_cu_radt_feedback' ,cu_radt_feedback )
347347

348348
call mpas_pool_get_array(mesh,'latCell',latCell)
349349
call mpas_pool_get_array(mesh,'lonCell',lonCell)
@@ -379,7 +379,7 @@ subroutine radiation_lw_from_MPAS(xtime_s,configs,mesh,state,time_lev,diag_physi
379379

380380
case("cu_kain_fritsch")
381381
!assign appropriate cloud fraction:
382-
if(cu_rad_feedback) then
382+
if(cu_radt_feedback) then
383383
call mpas_pool_get_array(diag_physics,'cldfracwcu',cldfracwcu)
384384
do j = jts,jte
385385
do k = kts,kte
@@ -389,7 +389,7 @@ subroutine radiation_lw_from_MPAS(xtime_s,configs,mesh,state,time_lev,diag_physi
389389
enddo
390390
enddo
391391
else
392-
call mpas_pool_get_array(diag_physics,'cldfrac' ,cldfrac )
392+
call mpas_pool_get_array(diag_physics,'cldfrac',cldfrac)
393393
do j = jts,jte
394394
do k = kts,kte
395395
do i = its,ite
@@ -400,7 +400,7 @@ subroutine radiation_lw_from_MPAS(xtime_s,configs,mesh,state,time_lev,diag_physi
400400
endif
401401

402402
case default
403-
call mpas_pool_get_array(diag_physics,'cldfrac' ,cldfrac )
403+
call mpas_pool_get_array(diag_physics,'cldfrac',cldfrac)
404404
do j = jts,jte
405405
do k = kts,kte
406406
do i = its,ite

src/core_atmosphere/physics/mpas_atmphys_driver_radiation_sw.F

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ subroutine radiation_sw_from_MPAS(configs,mesh,state,time_lev,diag_physics,atm_i
375375
integer:: i,j,k,n
376376

377377
!local pointers:
378-
logical,pointer:: config_o3climatology,cu_rad_feedback
378+
logical,pointer:: config_o3climatology,cu_radt_feedback
379379
character(len=StrKIND),pointer:: radt_sw_scheme
380380
character(len=StrKIND),pointer:: microp_scheme
381381
character(len=StrKIND),pointer:: convection_scheme
@@ -399,7 +399,7 @@ subroutine radiation_sw_from_MPAS(configs,mesh,state,time_lev,diag_physics,atm_i
399399
call mpas_pool_get_config(configs,'config_microp_scheme' ,microp_scheme )
400400
call mpas_pool_get_config(configs,'config_microp_re' ,config_microp_re )
401401
call mpas_pool_get_config(configs,'config_convection_scheme',convection_scheme )
402-
call mpas_pool_get_config(configs,'config_cu_rad_feedback' ,cu_rad_feedback )
402+
call mpas_pool_get_config(configs,'config_cu_radt_feedback' ,cu_radt_feedback )
403403

404404
call mpas_pool_get_array(mesh,'latCell',latCell)
405405
call mpas_pool_get_array(mesh,'lonCell',lonCell)
@@ -437,7 +437,7 @@ subroutine radiation_sw_from_MPAS(configs,mesh,state,time_lev,diag_physics,atm_i
437437

438438
case("cu_kain_fritsch")
439439
!assign appropriate cloud fraction:
440-
if(cu_rad_feedback) then
440+
if(cu_radt_feedback) then
441441
call mpas_pool_get_array(diag_physics,'cldfracwcu',cldfracwcu)
442442
do j = jts,jte
443443
do k = kts,kte
@@ -447,7 +447,7 @@ subroutine radiation_sw_from_MPAS(configs,mesh,state,time_lev,diag_physics,atm_i
447447
enddo
448448
enddo
449449
else
450-
call mpas_pool_get_array(diag_physics,'cldfrac' ,cldfrac )
450+
call mpas_pool_get_array(diag_physics,'cldfrac',cldfrac)
451451
do j = jts,jte
452452
do k = kts,kte
453453
do i = its,ite
@@ -458,7 +458,7 @@ subroutine radiation_sw_from_MPAS(configs,mesh,state,time_lev,diag_physics,atm_i
458458
endif
459459

460460
case default
461-
call mpas_pool_get_array(diag_physics,'cldfrac' ,cldfrac )
461+
call mpas_pool_get_array(diag_physics,'cldfrac',cldfrac)
462462
do j = jts,jte
463463
do k = kts,kte
464464
do i = its,ite

src/core_atmosphere/physics/mpas_atmphys_vars.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ module mpas_atmphys_vars
761761

762762
real(kind=RKIND),dimension(:,:,:),allocatable:: &
763763
cldfrac_p, &!cloud fraction [-]
764-
cldfracrad_p, &!cloud fraction local to cloudiness and radiation
764+
cldfracrad_p, &!cloud fraction local to cloudiness and radiation [-]
765765
qvrad_p, &!water vapor mixing ratio local to cloudiness and radiation [kg/kg]
766766
qcrad_p, &!cloud liquid water mixing ratio local to cloudiness and radiation [kg/kg]
767767
qirad_p, &!cloud ice mixing ratio local to cloudiness and radiation [kg/kg]

0 commit comments

Comments
 (0)