@@ -18,7 +18,6 @@ module prim_advection_mod
1818!
1919 use shr_kind_mod, only: r8 = >shr_kind_r8
2020 use dimensions_mod, only: nlev, np, qsize, nc
21- use physconst, only: cpair
2221 use derivative_mod, only: derivative_t
2322 use element_mod, only: element_t
2423 use fvm_control_volume_mod, only: fvm_struct
@@ -948,7 +947,7 @@ subroutine vertical_remap(hybrid,elem,fvm,hvcoord,np1,np1_qdp,nets,nete)
948947 use vertremap_mod, only: remap1
949948 use hybrid_mod, only: hybrid_t, config_thread_region,get_loop_ranges, PrintHybrid
950949 use fvm_control_volume_mod, only: fvm_struct
951- use dimensions_mod, only: ntrac
950+ use dimensions_mod, only: use_cslam, ntrac
952951 use dimensions_mod, only: kord_tr,kord_tr_cslam
953952 use cam_logfile, only: iulog
954953 use physconst, only: pi
@@ -1076,7 +1075,7 @@ subroutine vertical_remap(hybrid,elem,fvm,hvcoord,np1,np1_qdp,nets,nete)
10761075 call remap1(elem(ie)% state% v(:,:,2 ,:,np1),np,1 ,1 ,1 ,dp_star_moist,dp_moist,ptop,- 1 ,.false. ,kord_uvT)
10771076 enddo
10781077
1079- if (ntrac > 0 ) then
1078+ if (use_cslam ) then
10801079 !
10811080 ! vertical remapping of CSLAM tracers
10821081 !
0 commit comments