Skip to content

Commit 49bfd2a

Browse files
committed
Updated calling lists for zm routines
1 parent d0bc1a9 commit 49bfd2a

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

src/physics/cam/convect_shallow.F90

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,10 @@ subroutine convect_shallow_tend( ztodt , cmfmc , &
482482

483483
type(unicon_out_t) :: unicon_out
484484

485+
character(len=40) :: scheme_name
485486
character(len=16) :: macrop_scheme
487+
character(len=512):: errmsg
488+
integer :: errflg
486489
integer :: top_lev
487490

488491

@@ -899,7 +902,8 @@ subroutine convect_shallow_tend( ztodt , cmfmc , &
899902
landfracdum(:ncol), &
900903
ptend_loc%s(:ncol,:), tend_s_snwprd(:ncol,:), tend_s_snwevmlt(:ncol,:), ptend_loc%q(:ncol,:pver,1), &
901904
rprdsh(:ncol,:), cld(:ncol,:), ztodt, &
902-
precc(:ncol), snow(:ncol), ntprprd(:ncol,:), ntsnprd(:ncol,:), fsnow_conv(:ncol,:), flxprec(:ncol,:), flxsnow(:ncol,:))
905+
precc(:ncol), snow(:ncol), ntprprd(:ncol,:), ntsnprd(:ncol,:), fsnow_conv(:ncol,:), flxprec(:ncol,:), flxsnow(:ncol,:),&
906+
scheme_name, errmsg, errflg)
903907

904908
! ---------------------------------------------- !
905909
! record history variables from zm_conv_evap_run !

src/physics/cam/zm_conv_intr.F90

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ subroutine zm_conv_tend(pblh ,mcon ,cme , &
488488

489489
logical :: lq(pcnst)
490490
character(len=16) :: macrop_scheme
491+
character(len=40) :: scheme_name
491492
integer :: top_lev
492493

493494
!----------------------------------------------------------------------
@@ -573,11 +574,7 @@ subroutine zm_conv_tend(pblh ,mcon ,cme , &
573574
mu(:ncol,:), md(:ncol,:), du(:ncol,:), eu(:ncol,:), ed(:ncol,:), &
574575
dp(:ncol,:), dsubcld(:ncol), jt(:ncol), maxg(:ncol), ideep(:ncol), &
575576
ql(:ncol,:), rliq(:ncol), landfrac(:ncol), &
576-
rice(:ncol), errmsg, errflg)
577-
578-
579-
lengath = count(ideep > 0)
580-
if (lengath > ncol) lengath = ncol ! should not happen, but force it to not be larger than ncol for safety sake
577+
rice(:ncol), lengath, scheme_name, errmsg, errflg)
581578

582579
jctop(:) = real(pver,r8)
583580
jcbot(:) = 1._r8
@@ -683,7 +680,8 @@ subroutine zm_conv_tend(pblh ,mcon ,cme , &
683680
landfrac(:ncol), &
684681
ptend_loc%s(:ncol,:), tend_s_snwprd(:ncol,:), tend_s_snwevmlt(:ncol,:), ptend_loc%q(:ncol,:pver,1), &
685682
rprd(:ncol,:), cld(:ncol,:), ztodt, &
686-
prec(:ncol), snow(:ncol), ntprprd(:ncol,:), ntsnprd(:ncol,:), fsnow_conv(:ncol,:), flxprec(:ncol,:), flxsnow(:ncol,:))
683+
prec(:ncol), snow(:ncol), ntprprd(:ncol,:), ntsnprd(:ncol,:), fsnow_conv(:ncol,:), flxprec(:ncol,:), flxsnow(:ncol,:),&
684+
scheme_name, errmsg, errflg)
687685

688686
evapcdp(:ncol,:pver) = ptend_loc%q(:ncol,:pver,1)
689687

@@ -739,7 +737,8 @@ subroutine zm_conv_tend(pblh ,mcon ,cme , &
739737
jt(:ncol), maxg(:ncol), ideep(:ncol), 1, lengath, &
740738
nstep, ptend_loc%u(:ncol,:), ptend_loc%v(:ncol,:),&
741739
pguallu(:ncol,:), pguallv(:ncol,:), pgdallu(:ncol,:), pgdallv(:ncol,:), &
742-
icwuu(:ncol,:), icwuv(:ncol,:), icwdu(:ncol,:), icwdv(:ncol,:), ztodt, seten(:ncol,:) )
740+
icwuu(:ncol,:), icwuv(:ncol,:), icwdu(:ncol,:), icwdv(:ncol,:), ztodt, seten(:ncol,:) ,&
741+
scheme_name, errmsg, errflg)
743742
call t_stopf ('zm_conv_momtran_run')
744743

745744
ptend_loc%s(:ncol,:pver) = seten(:ncol,:pver)
@@ -793,7 +792,8 @@ subroutine zm_conv_tend(pblh ,mcon ,cme , &
793792
ptend_loc%lq,state1%q(:ncol,:,:), pcnst, mu(:ncol,:), md(:ncol,:), &
794793
du(:ncol,:), eu(:ncol,:), ed(:ncol,:), dp(:ncol,:), dsubcld(:ncol), &
795794
jt(:ncol), maxg(:ncol), ideep(:ncol), 1, lengath, &
796-
nstep, fracis(:ncol,:,:), ptend_loc%q(:ncol,:,:), fake_dpdry(:ncol,:), ccpp_const_props, errmsg, errflg)
795+
nstep, fracis(:ncol,:,:), ptend_loc%q(:ncol,:,:), fake_dpdry(:ncol,:), ccpp_const_props, &
796+
scheme_name, errmsg, errflg)
797797
call t_stopf ('convtran1')
798798

799799
call outfld('ZMDICE ',ptend_loc%q(1,1,ixcldice) ,pcols ,lchnk )
@@ -849,6 +849,7 @@ subroutine zm_conv_tend_2( state, ptend, ztodt, pbuf)
849849
integer, pointer :: maxg(:) ! (pcols)
850850
integer, pointer :: ideep(:) ! (pcols)
851851

852+
character(len=40) :: scheme_name
852853
character(len=512) :: errmsg
853854
integer :: errflg
854855

@@ -896,7 +897,8 @@ subroutine zm_conv_tend_2( state, ptend, ztodt, pbuf)
896897
ptend%lq,state%q(:ncol,:,:), pcnst, mu(:ncol,:), md(:ncol,:), &
897898
du(:ncol,:), eu(:ncol,:), ed(:ncol,:), dp(:ncol,:), dsubcld(:ncol), &
898899
jt(:ncol), maxg(:ncol), ideep(:ncol), 1, lengath, &
899-
nstep, fracis(:ncol,:,:), ptend%q(:ncol,:,:), dpdry(:ncol,:), ccpp_const_props, errmsg, errflg)
900+
nstep, fracis(:ncol,:,:), ptend%q(:ncol,:,:), dpdry(:ncol,:), ccpp_const_props, &
901+
scheme_name, errmsg, errflg)
900902
call t_stopf ('convtran2')
901903
end if
902904

0 commit comments

Comments
 (0)