Ignore:
Timestamp:
Jul 23, 2014, 1:11:39 PM (10 years ago)
Author:
lfita
Message:

Fixing a series of mistakes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LMDZ_WRFmeas/WRFV3/lmdz/diagphy_mod.F90

    r36 r37  
    158158
    159159! L. Fita, LMD July 2014. Checking for consistency
    160       IF (fs_bound .NE. fs_bound .OR. ABS(fs_bound) > laragest) THEN
     160      IF (fs_bound .NE. fs_bound .OR. ABS(fs_bound) > largest) THEN
    161161        PRINT *,TRIM(errmsg)
    162162        PRINT *,'  ' + TRIM(fname) + ': Wrong fs_bound= ',fs_bound,' !!!'
     
    166166        IF (airetot .NE. airetot .OR. ABS(airetot) > largest) THEN
    167167          varname = 'airephy'
    168           CALL check_var(fname, varn, airephy, klon, largest, .FALSE.)
     168          CALL check_var(fname, varname, airephy, klon, largest, .FALSE.)
    169169        END IF
    170170        PRINT *,'    stops= ',stops
    171171        IF (stops .NE. stops .OR. ABS(stops) > largest) THEN
    172172          varname = 'tops'
    173           CALL check_var(fname, varn, tops, klon, largest, .FALSE.)
     173          CALL check_var(fname, varname, tops, klon, largest, .FALSE.)
    174174        END IF
    175175        PRINT *,'    stopl= ',stopl
    176176        IF (stopl .NE. stopl .OR. ABS(stopl) > largest) THEN
    177177          varname = 'topl'
    178           CALL check_var(fname, varn, topl, klon, largest, .FALSE.)
     178          CALL check_var(fname, varname, topl, klon, largest, .FALSE.)
    179179        END IF
    180180        PRINT *,'    ssols= ',ssols
    181181        IF (ssols .NE. ssols .OR. ABS(ssols) > largest) THEN
    182182          varname = 'sols'
    183           CALL check_var(fname, varn, sols, klon, largest, .FALSE.)
     183          CALL check_var(fname, varname, sols, klon, largest, .FALSE.)
    184184        END IF
    185185        PRINT *,'    ssoll= ',ssoll
    186186        IF (ssoll .NE. ssoll .OR. ABS(ssoll) > largest) THEN
    187187          varname = 'soll'
    188           CALL check_var(fname, varn, soll, klon, largest, .FALSE.)
     188          CALL check_var(fname, varname, soll, klon, largest, .FALSE.)
    189189        END IF
    190190        PRINT *,'    ssens= ',ssens
    191191        IF (ssens .NE. ssens .OR. ABS(ssens) > largest) THEN
    192192          varname = 'sens'
    193           CALL check_var(fname, varn, sens, klon, largest, .FALSE.)
     193          CALL check_var(fname, varname, sens, klon, largest, .FALSE.)
    194194        END IF
    195195        PRINT *,'    sfront= ',sfront
    196196        IF (sfront .NE. sfront .OR. ABS(sfront) > largest) THEN
    197197          varname = 'evap'
    198           CALL check_var(fname, varn, evap, klon, largest, .FALSE.)
     198          CALL check_var(fname, varname, evap, klon, largest, .FALSE.)
    199199          varname = 'rain_fall'
    200           CALL check_var(fname, varn, rain_fall, klon, largest, .FALSE.)
     200          CALL check_var(fname, varname, rain_fall, klon, largest, .FALSE.)
    201201          varname = 'snow_fall'
    202           CALL check_var(fname, varn, snow_fall, klon, largest, .FALSE.)
     202          CALL check_var(fname, varname, snow_fall, klon, largest, .FALSE.)
    203203          varname = 'ts'
    204           CALL check_var(fname, varn, ts, klon, largest, .FALSE.)
     204          CALL check_var(fname, varname, ts, klon, largest, .FALSE.)
    205205        END IF
    206206        STOP
     
    216216        IF (airetot .NE. airetot .OR. ABS(airetot) > largest) THEN
    217217          varname = 'airephy'
    218           CALL check_var(fname, varn, airephy, klon, largest, .FALSE.)
     218          CALL check_var(fname, varname, airephy, klon, largest, .FALSE.)
    219219        END IF
    220220        IF (evap_tot .NE. evap_tot .OR. ABS(evap_tot) > largest) THEN
    221221          varname = 'evap'
    222           CALL check_var(fname, varn, evap, klon, largest, .FALSE.)
     222          CALL check_var(fname, varname, evap, klon, largest, .FALSE.)
    223223        END IF
    224224        PRINT *,'    rain_fall_tot= ',rain_fall_tot
    225225        IF (rain_fall_tot .NE. rain_fall_tot .OR. ABS(rain_fall_tot) > largest) THEN
    226226          varname = 'rain_fall'
    227           CALL check_var(fname, varn, rain_fall, klon, largest, .FALSE.)
     227          CALL check_var(fname, varname, rain_fall, klon, largest, .FALSE.)
    228228        END IF
    229229        PRINT *,'    snow_fall_tot= ',snow_fall_tot
    230230        IF (snow_fall_tot .NE. snow_fall_tot .OR. ABS(snow_fall_tot) > largest) THEN
    231231          varname = 'snow_fall'
    232           CALL check_var(fname, varn, snow_fall, klon, largest, .FALSE.)
     232          CALL check_var(fname, varname, snow_fall, klon, largest, .FALSE.)
    233233        END IF
    234234        STOP
     
    277277  wrongi = 0
    278278  DO i=1,sizev
    279     IF (var(i) /= var(i) .OR. ABS(var(i)) > bigvalule ) THEN
     279    IF (var(i) /= var(i) .OR. ABS(var(i)) > bigvalue ) THEN
    280280      IF (wrongi == 0) found = .TRUE.
    281281      wrongi = wrongi + 1
     
    288288    PRINT *,TRIM(errmsg)
    289289    PRINT *,"  at '" // TRIM(funcn) // "' variable '" //TRIM(varn)//                 &
    290       "' is wrong at i value___'
     290      "' is wrong at i value___"
    291291    DO i=1,wrongi
    292292      PRINT *,wronggridpt(i), wrongvalues(i)
Note: See TracChangeset for help on using the changeset viewer.