Ignore:
Timestamp:
Apr 13, 2015, 10:21:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes 2216:2237 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/add_phys_tend.F90

    r2160 r2258  
    22! $Id$
    33!
    4 SUBROUTINE add_phys_tend (zdu,zdv,zdt,zdq,zdql,zdqi,paprs,text)
     4SUBROUTINE add_phys_tend (zdu,zdv,zdt,zdq,zdql,zdqi,paprs,text,abortphy)
    55!======================================================================
    66! Ajoute les tendances des variables physiques aux variables
     
    2828REAL paprs(klon,klev+1)
    2929CHARACTER*(*) text
     30INTEGER abortphy
    3031
    3132! Local :
     
    5253! Initialisations
    5354
    54 debug_level=10
     55      IF (abortphy==1) RETURN ! on n ajoute pas les tendance si le modele
     56                              ! a deja plante.
     57
     58     debug_level=10
    5559     if (first) then
    5660        itap=0
     
    230234ENDIF
    231235
    232       CALL hgardfou(t_seri,ftsol,text)
     236
     237!======================================================================
     238! Contrôle des min/max pour arrêt du modèle
     239! Si le modele est en mode abortphy, on retire les tendances qu'on
     240! vient d'ajouter. Pas exactement parce qu'on ne tient pas compte des
     241! seuils.
     242!======================================================================
     243
     244      CALL hgardfou(t_seri,ftsol,text,abortphy)
     245      IF (abortphy==1) THEN
     246        Print*,'ERROR ABORT hgardfou dans ',text
     247        u_seri(:,:)=u_seri(:,:)-zdu(:,:)
     248        v_seri(:,:)=v_seri(:,:)-zdv(:,:)
     249        ql_seri(:,:)=ql_seri(:,:)-zdql(:,:)
     250        qs_seri(:,:)=qs_seri(:,:)-zdqi(:,:)
     251      ENDIF
     252
     253
     254
    233255      RETURN
    234256      END
Note: See TracChangeset for help on using the changeset viewer.