@@ -238,7 +238,7 @@ subroutine samfdeepcnv_run (im,km,first_time_step,restart, &
238
238
! parameter (cinacrmx=- 120 .,cinacrmn=- 120 .)
239
239
parameter (cinacrmx=- 120 .,cinacrmn=- 80 .)
240
240
parameter (bet1= 1.875 ,cd1= .506 ,f1= 2.0 ,gam1= .5 )
241
- parameter (betaw= .03 ,dxcrtuf = 15.e3 )
241
+ parameter (betaw= .03 )
242
242
243
243
!
244
244
! local variables and arrays
@@ -2468,8 +2468,10 @@ subroutine samfdeepcnv_run (im,km,first_time_step,restart, &
2468
2468
!
2469
2469
if (progsigma)then
2470
2470
dxcrtas= 30.e3
2471
+ dxcrtuf= 10.e3
2471
2472
else
2472
2473
dxcrtas= 8.e3
2474
+ dxcrtuf= 15.e3
2473
2475
endif
2474
2476
2475
2477
@@ -3519,9 +3521,13 @@ subroutine samfdeepcnv_run (im,km,first_time_step,restart, &
3519
3521
if(k > kb(i) .and. k < ktop(i)) then
3520
3522
tem = 0.5 * (eta(i,k-1) + eta(i,k)) * xmb(i)
3521
3523
tem1 = pfld(i,k) * 100. / (rd * t1(i,k))
3522
- sigmagfm(i) = max(sigmagfm(i), betaw)
3523
- ptem = tem / (sigmagfm(i) * tem1)
3524
- qtr(i,k,ntk)=qtr(i,k,ntk)+0.5*sigmagfm(i)*ptem*ptem
3524
+ if(progsigma)then
3525
+ tem2 = sigmab(i)
3526
+ else
3527
+ tem2 = max(sigmagfm(i), betaw)
3528
+ endif
3529
+ ptem = tem / (tem2 * tem1)
3530
+ qtr(i,k,ntk)=qtr(i,k,ntk)+0.5*tem2*ptem*ptem
3525
3531
endif
3526
3532
endif
3527
3533
enddo
@@ -3533,9 +3539,13 @@ subroutine samfdeepcnv_run (im,km,first_time_step,restart, &
3533
3539
if(k > 1 .and. k <= jmin(i)) then
3534
3540
tem = 0.5*edto(i)*(etad(i,k-1)+etad(i,k))*xmb(i)
3535
3541
tem1 = pfld(i,k) * 100. / (rd * t1(i,k))
3536
- sigmagfm(i) = max(sigmagfm(i), betaw)
3537
- ptem = tem / (sigmagfm(i) * tem1)
3538
- qtr(i,k,ntk)=qtr(i,k,ntk)+0.5*sigmagfm(i)*ptem*ptem
3542
+ if(progsigma)then
3543
+ tem2 = sigmab(i)
3544
+ else
3545
+ tem2 = max(sigmagfm(i), betaw)
3546
+ endif
3547
+ ptem = tem / (tem2 * tem1)
3548
+ qtr(i,k,ntk)=qtr(i,k,ntk)+0.5*tem2*ptem*ptem
3539
3549
endif
3540
3550
endif
3541
3551
enddo
0 commit comments