Changeset 393 for trunk


Ignore:
Timestamp:
02/20/09 16:39:43 (15 years ago)
Author:
smasson
Message:

small bugfix of vertical box definition in section

Location:
trunk/SRC/ToBeReviewed
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/GRILLE/domdef.pro

    r370 r393  
    429429;------------------------------------------------------------------- 
    430430      (keyword_set(xindex) AND keyword_set(yindex)) OR keyword_set(index):BEGIN 
    431         fstx = min([x1, x2], max = lstx) 
    432         fsty = min([y1, y2], max = lsty) 
     431        fstx = min(long([x1, x2]), max = lstx) 
     432        fsty = min(long([y1, y2]), max = lsty) 
    433433        IF fstx LT 0 OR lstx GE jpi THEN BEGIN 
    434434          ras = report('Bad definition of X1 or X2') 
     
    488488;------------------------------------------------------------------- 
    489489      keyword_set(xindex):BEGIN 
    490         fstx = min([x1, x2], max = lstx) 
     490        fstx = min(long([x1, x2]), max = lstx) 
    491491        IF fstx LT 0 OR lstx GE jpi THEN BEGIN 
    492492          ras = report('Bad definition of X1 or X2') 
     
    656656;------------------------------------------------------------------- 
    657657      keyword_set(yindex):BEGIN 
    658         fsty = min([y1, y2], max = lsty) 
     658        fsty = min(long([y1, y2]), max = lsty) 
    659659        IF fsty LT 0 OR lsty GE jpj THEN BEGIN 
    660660          ras = report('Bad definition of Y1 or Y2') 
     
    935935  ENDIF ELSE BEGIN 
    936936    CASE N_PARAMS() OF 
    937       2:fstz = min([x1, x2], max = lstz) 
     937      2:fstz = min(long([x1, x2]), max = lstz) 
    938938      4:return 
    939       6:fstz = min([z1, z2], max = lstz) 
     939      6:fstz = min(long([z1, z2]), max = lstz) 
    940940    ENDCASE 
    941941    IF fstz LT 0 OR lstz GE jpk THEN BEGIN 
  • trunk/SRC/ToBeReviewed/TRIANGULATION/section.pro

    r386 r393  
    9292; -> problem... why 10 points as a test value??? 
    9393; how can we find a good test value? 
    94   IF nx * ny LE 10 THEN domdef, GRIDTYPE = grillechoice, _extra = ex 
     94  IF nx * ny LE 10 THEN domdef, [0, jpi-1, 0, jpj-1, localbox[4:5]], /xindex, /yindex, GRIDTYPE = grillechoice, _extra = ex 
    9595; We redefine lon1, ... in case findalways has been used in domdef 
    9696  lon1 = min([endpoints[0], endpoints[2]], max = lon2) 
Note: See TracChangeset for help on using the changeset viewer.