Changeset 183 in lmdz_wrf for trunk/WRFV3/lmdz/pbl_surface_mod.F90


Ignore:
Timestamp:
Oct 14, 2014, 7:40:28 PM (10 years ago)
Author:
lfita
Message:

Removing check pritings
Removing nullification of MixingRatioValues?(:,:,2) = 0 and MixingTendRatioValues?(:,:,2)
NO plul related to te absence of oliq at the initial conditions. If one introduce fake ones it works!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WRFV3/lmdz/pbl_surface_mod.F90

    r1 r183  
    501501!****************************************************************************************
    502502
    503     PRINT *,'  Lluis in pbl_surface: ts ',lp,ts(lp,:)
    504 
    505503    IF (first_call) THEN
    506504       first_call=.FALSE.
     
    606604       ENDDO
    607605    ENDDO
    608     PRINT *,'    Lluis after rugos: ts ',lp,ts(lp,:), ' rugos: ', rugos(lp,:),       &
    609       ' alb1: ',alb1(550,:)
    610606! Mean calculations of albedo
    611607!
     
    628624       ENDDO
    629625    ENDDO
    630     PRINT *,'    Lluis after rugos: ts ',lp,ts(lp,:), ' rugos: ', rugos(lp,:),       &
    631       ' alb1: ',alb1(550,:)
    632626! We here suppose the fraction f1 of incoming radiance of visible radiance
    633627! as a fraction of all shortwave radiance
     
    652646       ENDDO
    653647    ENDDO
    654     PRINT *,'  Lluis ztsol ',lp,' : ',ztsol(lp)
    655648
    656649! Linear distrubution on sub-surface of long- and shortwave net radiance
     
    661654       ENDDO
    662655    ENDDO
    663     PRINT *,'  Lluis ',lp,' sollw: ',sollw(lp,:),' solsw: ',solsw(lp,:)
    664 
    665656
    666657! Downwelling longwave radiation at mean surface
     
    669660       lwdown_m(i) = sollw_m(i) + RSIGMA*ztsol(i)**4
    670661    ENDDO
    671     PRINT *,'  Lluis ',lp,' lwdown_m: ',lwdown_m(lp)
    672 
    673662!****************************************************************************************
    674663! 4) Loop over different surfaces
     
    683672       ni(:) = 0
    684673       knon  = 0
    685 ! Lluis
    686        lpt = 1
     674
    687675       DO i = 1, klon
    688676          IF (pctsrf(i,nsrf) > 0.) THEN
    689677             knon = knon + 1
    690678             ni(knon) = i
    691 ! Lluis
    692              IF (i == lp) lpt = knon
    693679          ENDIF
    694680       ENDDO
     
    711697!****************************************************************************************
    712698
    713        PRINT *,'    Lluis nsrf j i rugos yts_________'
    714699       DO j = 1, knon
    715700          i = ni(j)
     
    728713          ysollw(j)  = sollw(i,nsrf)
    729714          yrugos(j)  = rugos(i,nsrf)
    730           PRINT *,nsrf,j,i,rugos(i,nsrf),yts(i)
    731715          yrugoro(j) = rugoro(i)
    732716          yu1(j)     = u(i,1)
     
    735719          ywindsp(j) = SQRT(u10m(i,nsrf)**2 + v10m(i,nsrf)**2 )
    736720       END DO
    737        PRINT *,'  Lluis ', lpt,' yts: ',yts(lpt)
    738721
    739722       DO k = 1, klev
     
    757740          END DO
    758741       END DO
    759        PRINT *,'  Lluis ', lpt,' ytsoil: ',ytsoil(lpt,:),' ftsoil: ',ftsoil(ni(lpt),:,nsrf)
    760742
    761743       ! qsol(water height in soil) only for bucket continental model
     
    766748          END DO
    767749       ENDIF
    768        PRINT *,'  Lluis ',lpt,' yqsol: ',yqsol(lpt)
    769750       
    770751!****************************************************************************************
     
    773754!****************************************************************************************
    774755
    775        PRINT *,'  Lluis before clcdrag: yrugos 1:', yrugos(1),' lpt: ',yrugos(lpt),  &
    776          ' yts: ',yts(lpt), ' yalb: ',yalb(lpt)
    777756       CALL clcdrag( knon, nsrf, ypaprs, ypplay, &
    778757            yu(:,1), yv(:,1), yt(:,1), yq(:,1), &
     
    788767            ypaprs, ypplay, yu, yv, yq, yt, yts, yrugos, yqsurf, ycdragm, &
    789768            ycoefm, ycoefh, ytke)
    790       PRINT *,'  Lluis after coef_diff_turb lpt: ',lpt,' k ycoefm ycoefh ytke ____'
    791       DO k=1,klev
    792         PRINT *,k,ycoefm(lpt,k),ycoefh(lpt,k),ytke(lpt,k)
    793       END DO
    794769       IF (iflag_pbl>=20.AND.iflag_pbl<30) THEN
    795770! In this case, coef_diff_turb is called for the Cd only
     
    813788!****************************************************************************************
    814789
    815       PRINT *,'  Lluis before climb_hq_down knon: ',lpt,' dtime: ',dtime,      & 
    816         ' AcoefH: ',AcoefH(lpt),' AcoefQ: ',AcoefQ(lpt),' BcoefH: ',BcoefH(lpt),&
    817         ' BcoefQ: ',BcoefQ(lpt)
    818       PRINT *,'  Lluis before k ycoefh ypaprs ypplay ydelp yt yq ____'
    819       DO k=1,klev
    820         PRINT *,k,ycoefh(lpt,k),ypaprs(lpt,k),ypplay(lpt,k),ydelp(lpt,k),     &
    821           yt(lpt,k),yq(lpt,k)
    822       END DO
    823790! - Calculate the coefficients Ccoef_H, Ccoef_Q, Dcoef_H and Dcoef_Q
    824791       CALL climb_hq_down(knon, ycoefh, ypaprs, ypplay, &
     
    830797            AcoefU, AcoefV, BcoefU, BcoefV)
    831798     
    832       PRINT *,'  Lluis after climb_hq_down knon: ',lpt,' ycoefh: ',ycoefh(lpt,1),&
    833         ' ypaprs: ',ypaprs(lpt,1),' ypplay: ',ypplay(lpt,1),' ydelp: ',         &
    834         ydelp(lpt,1),' yt: ',yt(lpt,1),' yq: ',yq(lpt,1),' dtime: ',dtime,      &
    835         ' AcoefH: ',AcoefH(lpt),' AcoefQ: ',AcoefQ(lpt),' BcoefH: ',BcoefH(lpt),&
    836         ' BcoefQ: ',BcoefQ(lpt)
    837 
    838799!****************************************************************************************
    839800! 9) Small calculations
     
    890851             ylwdown(i)=lwdown_m(ni(i))
    891852          END DO
    892           PRINT *,'  Lluis before surf_land lpt=',lpt,' yts', yts(lpt),' yq: ',yq(lpt,1)
    893853          CALL surf_land(itap, dtime, date0, jour, knon, ni,&
    894854               rlon, rlat, &
     
    918878         
    919879       CASE(is_oce)
    920           PRINT *,'  Lluis before surf_ocean lpt= ',lpt,' yts: ', yts(lpt),         &
    921             ' pctsrf: ',pctsrf(lpt,:),' ytsurf_new: ',ytsurf_new(lpt)
    922880          CALL surf_ocean(rlon, rlat, ysolsw, ysollw, yalb1, &
    923881               yrugos, ywindsp, rmu0, yfder, yts, &
     
    931889               ytsurf_new, y_dflux_t, y_dflux_q, slab_wfbils, &
    932890               y_flux_u1, y_flux_v1)
    933           PRINT *,'  Lluis after surf_ocean lpt= ',lpt,' yts: ', yts(lpt),          &
    934             ' pctsrf: ',pctsrf(lpt,:),' ytsurf_new: ',ytsurf_new(lpt), 'ypct: ',    &
    935             ypct(lpt)
    936 !          PRINT *,'     i yts  . pctsrf : ytsurf_new_________'
    937 !          DO i=1,knon
    938 !            PRINT *,'    ',i,yts(i), ' . ', pctsrf(i,:),' : ',ytsurf_new(i)
    939 !          END DO
    940891         
    941892       CASE(is_sic)
     
    967918       y_d_ts(1:knon)   = ytsurf_new(1:knon) - yts(1:knon)
    968919
    969        PRINT *,'  Lluis nsrf: ',nsrf,' lpt: ',lpt,' ytsurf_new: ',ytsurf_new(lpt),   &
    970          ' yts: ',yts(lpt),' y_d_ts: ',y_d_ts(lpt)
    971  
    972920!****************************************************************************************
    973921!
     
    11141062
    11151063!      print*,'Dans pbl OK4'
    1116     PRINT *,'  Lluis before diagnostics: lp= ',lp,' ts ',lp,ts(lp,:)
    11171064
    11181065!****************************************************************************************
     
    12371184    END DO loop_nbsrf
    12381185
    1239     PRINT *,'  Lluis after loop soil types: lp= ',lp,' ts ',lp,ts(lp,:)
    1240 
    12411186!****************************************************************************************
    12421187! 16) Calculate the mean value over all sub-surfaces for som variables
     
    12791224!   print*,'OK pbl 9'
    12801225   
    1281     PRINT *,'  Lluis adding tendencies: lp= ',lp,' nsrf ts d_ts_______'
    12821226    DO nsrf = 1, nbsrf
    12831227       DO i = 1, klon         
     
    13511295!!$       ENDDO
    13521296!!$    ENDDO
    1353 
    1354     PRINT *,'  Lluis last ts: ',ts(lp,:)
    13551297
    13561298    DO i = 1, klon
Note: See TracChangeset for help on using the changeset viewer.