Ignore:
Timestamp:
Feb 6, 2020, 4:49:54 PM (5 years ago)
Author:
jvatant
Message:

Minor correction in bilinearbig, fixing a bug
when reaching exactly the T range limit
causing nasty overflow error.
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/bilinearbig.F90

    r1699 r2239  
    5555
    5656!     ... and for y within the temperature range
    57       if ((y.lt.y_arr(1)).or.(y.gt.y_arr(nY))) then
    58          print*,y_arr(1),y_arr(nY)
     57      if ((y.le.y_arr(1)).or.(y.ge.y_arr(nY))) then
     58         !print*,y_arr(1),y_arr(nY)
    5959         !write(*,*) 'Warning from bilinearbig routine:'
    6060         !write(*,*) 'Outside continuum temperature range!'
    61          if(y.lt.y_arr(1))then
     61         if(y.le.y_arr(1))then
    6262            y=y_arr(1)+0.01
    6363            b=1
     
    6565            y2=y_arr(b+1)
    6666         endif
    67          if(y.gt.y_arr(nY))then
     67         if(y.ge.y_arr(nY))then
    6868            y=y_arr(nY)-0.01
    6969            b=nY-1
     
    7474        j=1
    7575        y2=y_arr(j)
    76         do while ( y2 .le. y )
     76        do while ( y2 .lt. y )
    7777          y1=y2
    7878          j=j+1
Note: See TracChangeset for help on using the changeset viewer.