Ignore:
Timestamp:
Jan 26, 2022, 4:00:14 PM (2 years ago)
Author:
Laurent Fairhead
Message:

Corrections to r4059/r4062 so that phylmdiso compiles
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r4061 r4065  
    7373    USE tracinca_mod, ONLY: config_inca
    7474    USE tropopause_m,     ONLY: dyn_tropopause
     75    USE ice_sursat_mod,  ONLY: flight_init, airplane
    7576    USE vampir
    7677    USE VERTICAL_LAYERS_MOD, ONLY: aps,bps, ap, bp
     
    167168       ! [Variables internes non sauvegardees de la physique]
    168169       ! Variables locales pour effectuer les appels en serie
    169        t_seri,q_seri,ql_seri,qs_seri,u_seri,v_seri,tr_seri, &
     170       t_seri,q_seri,ql_seri,qs_seri,u_seri,v_seri,tr_seri,rneb_seri, &
    170171       ! Dynamic tendencies (diagnostics)
    171172       d_t_dyn,d_q_dyn,d_ql_dyn,d_qs_dyn,d_u_dyn,d_v_dyn,d_tr_dyn,d_rneb_dyn, &
     
    514515    INTEGER isol          ! indice de traceurs pour eau glace
    515516    PARAMETER (isol=3)
     517    INTEGER irneb         ! indice de traceurs pour fraction nuageuse LS (optional)
     518    PARAMETER (irneb=4)   
    516519    !
    517520    !
     
    13931396       ENDIF
    13941397
    1395        IF ((iflag_ice_sursat.GT.0).AND.(iflag_ice_thermo.EQ.0)) THEN
    1396           WRITE (lunout, *) ' iflag_ice_sursat=1 requires iflag_ice_thermo=1 as well'
     1398       IF (ok_ice_sursat.AND.(iflag_ice_thermo.EQ.0)) THEN
     1399          WRITE (lunout, *) ' ok_ice_sursat=y requires iflag_ice_thermo=1 as well'
    13971400          abort_message='see above'
    13981401          CALL abort_physic(modname,abort_message,1)
    13991402       ENDIF
    14001403
    1401        IF ((iflag_ice_sursat.GT.0).AND.(nqo.NE.4)) THEN
    1402           WRITE (lunout, *) ' iflag_ice_sursat=1 requires 4 H2O tracers ', &
     1404       IF (ok_ice_sursat.AND.(nqo.NE.4)) THEN
     1405          WRITE (lunout, *) ' ok_ice_sursat=y requires 4 H2O tracers ', &
    14031406               '(H2Ov, H2Ol, H2Oi, rnebi) but nqo=', nqo, '. Might as well stop here.'
    14041407          abort_message='see above'
     
    24032406          ELSE IF (nqo.eq.3) THEN
    24042407             qs_seri(i,k) = qx(i,k,isol)
     2408          ELSE IF (nqo.eq.4) THEN
     2409             qs_seri(i,k) = qx(i,k,isol)
     2410             rneb_seri(i,k) = qx(i,k,irneb)
    24052411          ENDIF
    24062412       ENDDO
     
    46204626    IF (ok_new_lscp) THEN
    46214627
    4622     CALL lscp(phys_tstep,missing_value,paprs,pplay, &
     4628    CALL lscp(phys_tstep,missing_val,paprs,pplay, &
    46234629         t_seri, q_seri,ptconv,ratqs, &
    46244630         d_t_lsc, d_q_lsc, d_ql_lsc, d_qi_lsc, rneb, rneb_seri, &
     
    46284634         prfl, psfl, rhcl,  &
    46294635         zqasc, fraca,ztv,zpspsk,ztla,zthl,iflag_cld_th, &
    4630          iflag_ice_thermo, iflag_ice_sursat)
     4636         iflag_ice_thermo, ok_ice_sursat)
    46314637
    46324638    ELSE
Note: See TracChangeset for help on using the changeset viewer.