Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

SPOOKIE experiment with CAM5 physics

Dear all,I am trying to setup CAM5 for SPOOKIE experiment where both shallow and deep convection are set OFF. More details about the SPOOKIE are described,= here https://ore.exeter.ac.uk/repository/handle/10871/32057. Here shallow and deep convection were set OFF in CAM5.While the deep convection can be set off by setting "deep_scheme = 'off' " in the user_nl_cam file that lists user defined namelist changes.A similar strategy for shallow convection scheme (shallow_scheme = 'off') does not work though. How can I set shallow scheme (UW shallow convection scheme) OFF in CAM5 ?I get the following error:(shr_sys_abort) ERROR: phys_setopts: illegal value of shallow_scheme
 phys_setopts: illegal value of shallow_scheme:off            Thanks,Vishal
 

brianpm

Active Member
Vishal,I think that one way to "turn off" the UW shallow convection is to modify compute_uwshcu so that the parameter kinv = 1. You can find the relevant code around lines 1452-1465 in uwshcu.F90 (in CESM 1.2.0, at least).I think you can just comment out the loop that diagnoses kinv: 
Code:
 

Code:
!       do k = mkx - 1, 1, -1

Code:
!          if( (pblh + 5._r8 - zs0(k))*(pblh + 5._r8 - zs0(k+1)) .lt. 0._r8 ) then

Code:
!               kinv = k + 1

Code:
!               go to 15

Code:
!          endif

Code:
!      end do

Code:
       kinv = 1

Code:
! 15     continue

Code:
 

Code:
       if( kinv .le. 1 ) then

Code:
           exit_kinv1(i) = 1._r8

Code:
           id_exit = .true.

Code:
           go to 333

Code:
       endif<br /><br />That should effectively shut off shallow convection. <br /><br />Also, be sure to check that deep_scheme = 'off' is actually working the way you want. I know that when the UW folks did SPOOKIE, they did not use that option, but just changed the threshold for deep convection to be some very large number.<br /><br />Good luck.
 

brianpm

Active Member
Vishal,I think that one way to "turn off" the UW shallow convection is to modify compute_uwshcu so that the parameter kinv = 1. You can find the relevant code around lines 1452-1465 in uwshcu.F90 (in CESM 1.2.0, at least).I think you can just comment out the loop that diagnoses kinv: 
Code:
 

Code:
!       do k = mkx - 1, 1, -1

Code:
!          if( (pblh + 5._r8 - zs0(k))*(pblh + 5._r8 - zs0(k+1)) .lt. 0._r8 ) then

Code:
!               kinv = k + 1

Code:
!               go to 15

Code:
!          endif

Code:
!      end do

Code:
       kinv = 1

Code:
! 15     continue

Code:
 

Code:
       if( kinv .le. 1 ) then

Code:
           exit_kinv1(i) = 1._r8

Code:
           id_exit = .true.

Code:
           go to 333

Code:
       endif<br /><br />That should effectively shut off shallow convection. <br /><br />Also, be sure to check that deep_scheme = 'off' is actually working the way you want. I know that when the UW folks did SPOOKIE, they did not use that option, but just changed the threshold for deep convection to be some very large number.<br /><br />Good luck.
 
Top