Changeset 1743 in lmdz_wrf for trunk/tools/module_scientific.f90


Ignore:
Timestamp:
Dec 16, 2017, 8:47:35 PM (7 years ago)
Author:
lfita
Message:

Giving a -1 value when no closest point is found in 'reconstruct_matrix'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_scientific.f90

    r1728 r1743  
    109109          mindiff = MINVAL(diff)
    110110          IF (mindiff > maxdiff) THEN
    111             WRITE(RSa, '(f20.10)')mindiff
    112             WRITE(RSb, '(f20.10)')maxdiff
    113             msg = 'Difference: ' // TRIM(RSa) // ' overpasses the maximum authorized distance: ' //   &
    114               TRIM(RSb)
    115             CALL ErrMsg(msg, fname, -1)
     111            !Assuming no values
     112            matind(i,j) = -1
     113            !WRITE(RSa, '(f20.10)')mindiff
     114            !WRITE(RSb, '(f20.10)')maxdiff
     115            !msg = 'Difference: ' // TRIM(RSa) // ' overpasses the maximum authorized distance: ' //   &
     116            !  TRIM(RSb)
     117            !CALL ErrMsg(msg, fname, -1)
     118          ELSE
     119            matind(i,j) = mindiffloc(1)
    116120          END IF
    117 
    118           matind(i,j) = mindiffloc(1)
    119121
    120122        END DO
Note: See TracChangeset for help on using the changeset viewer.