Changeset 1616


Ignore:
Timestamp:
Sep 27, 2016, 9:31:17 AM (8 years ago)
Author:
emillour
Message:

Generic physics: better control of warning messages in tpindex, only write these if strictly out of range.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/tpindex.F

    r1600 r1616  
    7676      IF(TW.LE.TREF(1)) THEN
    7777        MT = 1
     78        IF (TW.LT.TREF(1)) THEN
     79         write(*,*) 'tpindex: Caution! Temperature of upper levels lower
     80     $ than ref temperature for k-coef: k-coeff fixed for upper levels'
     81         write(*,*) "         TW=",TW
     82         write(*,*) "         TREF(1)=",TREF(1)
     83        ENDIF
    7884      ELSE
    7985        do n=1,L_NTREF-1
     
    9298      IF (MT.eq.1) THEN
    9399         TW=tref(1)*1.00
    94          write(*,*) 'tpindex: Caution! Pressure of upper levels lower
    95      $than ref pressure for k-coef: k-coeff fixed for upper levels'
     100!         write(*,*) 'tpindex: Caution! Temperature of upper levels lower
     101!     $than ref temperature for k-coef: k-coeff fixed for upper levels'
     102!         write(*,*) "         TW=",TW
     103!         write(*,*) "         TREF(1)=",TREF(1)
    96104      ENDIF
    97105
     
    117125      !TB15 : case low pressure : n=2 : fixed pwl, right above pref(1)
    118126      IF (MP.eq.1) THEN
    119          PWL=Pref(1)*1.00
     127        IF (PWL.LT.PREF(1)) THEN
    120128         write(*,*) 'tpindex: Caution! Pressure of upper levels lower
    121129     $than ref pressure for k-coef: k-coeff fixed for upper levels'
     130         write(*,*) "         PWL=",PWL
     131         write(*,*) "         PREF(1)=",PREF(1)
     132        ENDIF
     133        PWL=Pref(1)*1.00
    122134      ENDIF
    123135
Note: See TracChangeset for help on using the changeset viewer.