Ignore:
Timestamp:
02/02/10 09:47:19 (14 years ago)
Author:
smasson
Message:

make sure that x[y]min[max]mesh are properly used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Grid/computegrid.pro

    r399 r421  
    232232; if (we did not activate /plain and xminmesh, xmaxmesh, yminmesh, 
    233233; ymaxmesh keywords are defined to their default values), we redefine 
    234 ; xminmesh, xmaxmesh, yminmesh, ymaxmesh in order to reove the 
     234; xminmesh, xmaxmesh, yminmesh, ymaxmesh in order to remove the 
    235235; overlapping part and/or to open the domain (avoid it be forced 
    236236; to use cell_fill = 1). 
     
    362362  IF strlen(key_gridtype) EQ 3 THEN fullcgrid = 1 
    363363; 
    364   IF n_elements(xminmesh) NE 0 AND n_elements(xmaxmesh) NE 0 THEN BEGIN 
     364  IF n_elements(xminmesh) NE 0 OR n_elements(xmaxmesh) NE 0 THEN BEGIN 
     365    IF n_elements(xminmesh) EQ 0 THEN xminmesh = ixminmesh 
     366    IF n_elements(xmaxmesh) EQ 0 THEN xmaxmesh = ixmaxmesh 
    365367    IF nx EQ jpi AND xminmesh EQ ixminmesh AND xmaxmesh EQ ixmaxmesh THEN xalreadycut = 1 
    366368  ENDIF 
     
    383385  ENDELSE 
    384386 
    385   IF n_elements(yminmesh) NE 0 AND n_elements(ymaxmesh) NE 0 THEN BEGIN 
     387  IF n_elements(yminmesh) NE 0 OR n_elements(ymaxmesh) NE 0 THEN BEGIN 
     388    IF n_elements(yminmesh) EQ 0 THEN yminmesh = iyminmesh 
     389    IF n_elements(ymaxmesh) EQ 0 THEN ymaxmesh = iymaxmesh 
    386390    IF ny EQ jpj AND yminmesh EQ iyminmesh AND ymaxmesh EQ iymaxmesh THEN yalreadycut = 1 
    387391  ENDIF 
Note: See TracChangeset for help on using the changeset viewer.