Changeset 2715


Ignore:
Timestamp:
Nov 28, 2016, 4:02:59 PM (8 years ago)
Author:
oboucher
Message:

Fixing a small glitch in my StratAer? module
p_tropopause was used but not defined...
now it is diagnosed but not used !

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/StratAer/calcaerosolstrato_rrtm.F90

    r2690 r2715  
    33  USE infotrac, ONLY : nbtr
    44  USE phys_state_var_mod, ONLY: tau_aero_sw_rrtm, piz_aero_sw_rrtm, cg_aero_sw_rrtm, tau_aero_lw_rrtm
    5   USE phys_local_var_mod, ONLY: mdw, tausum_aero, tausum_strat, tau_strat_550, tau_strat_1020, p_tropopause
     5  USE phys_local_var_mod, ONLY: mdw, tausum_aero, tausum_strat, tau_strat_550, tau_strat_1020, stratomask
    66  USE aero_mod
    77  USE dimphy
     
    102102  DO i=1,klon
    103103  DO k=1,klev
    104     IF (pplay(i,k).LT.p_tropopause(i)) THEN
     104    IF (stratomask(i,k).GT.0.5) THEN
    105105      tausum_strat(i,1)=tausum_strat(i,1)+tau_strat_wave(i,k,2)  !--550 nm
    106106      tausum_strat(i,2)=tausum_strat(i,2)+tau_strat_wave(i,k,5)  !--1020 nm
  • LMDZ5/trunk/libf/phylmd/stratosphere_mask.F90

    r2536 r2715  
    2828USE dimphy
    2929USE phys_local_var_mod, ONLY: stratomask
     30#ifdef CPP_StratAer
     31USE phys_local_var_mod, ONLY: p_tropopause
     32#endif
    3033
    3134IMPLICIT NONE
     
    8992ENDDO
    9093
    91 !!--diagnostic not used for now
    92 !!p_tropopause(:)=tp(:)
     94!--this is only diagnosedd in the case of StratAer
     95!--but it could be useful to LMDz
     96#ifdef CPP_StratAer
     97p_tropopause(:)=tp(:)
     98#endif
    9399
    94100IF (ifil.gt.0) THEN
Note: See TracChangeset for help on using the changeset viewer.