Changeset 2727 in lmdz_wrf


Ignore:
Timestamp:
Oct 17, 2019, 9:21:21 PM (5 years ago)
Author:
lfita
Message:

Fixing zero indices analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_generic.f90

    r2726 r2727  
    13541354    INTEGER                                              :: ii, ij, oi, oj, il
    13551355    INTEGER                                              :: isame, osame, irun, orun
    1356     INTEGER                                              :: ilx, olx
     1356    INTEGER                                              :: ilx, olx, iln, oln
    13571357    CHARACTER(len=3)                                     :: isS, osS
    13581358
     
    13961396    END IF
    13971397
     1398    iln = MINVAL(inlist)
     1399    oln = MINVAL(olist)
     1400
     1401    IF (iln < 1) THEN
     1402      WRITE(isS,'(I3)')iln
     1403      msg = 'Incorrect minimum input index: ' // isS // ' Negative or zero indices not allowed !!'
     1404      CALL ErrMsg(msg, fname, -1)
     1405    END IF
     1406
     1407    IF (oln < 1) THEN
     1408      WRITE(isS,'(I3)')oln
     1409      msg = 'Incorrect minimum output index: ' // isS // ' Negative or zero indices not allowed !!'
     1410      CALL ErrMsg(msg, fname, -1)
     1411    END IF
     1412
    13981413    ilx = MAXVAL(inlist)
    13991414    olx = MAXVAL(olist)
Note: See TracChangeset for help on using the changeset viewer.