Ignore:
Timestamp:
07/05/06 16:37:26 (18 years ago)
Author:
pinsard
Message:

Add svn:keyword Id ForOldVersion/?*.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ForOldVersion/keep_compatibility.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r116 r122  
    11;+ 
    2 ; @file_comments  
     2; @file_comments 
    33;   1) define key_forgetold = 1b - keyword_set(flag) 
    44;   2) remove all oldcm_used.pro found in !path 
     
    88; @categories compatibility with old version 
    99; 
    10 ; @examples 
    11 ; IDL> keep_compatibility [, flag] 
    12 ; 
    1310; @param flag {in}{optional} 1 or 0 to keep or forget the compatibility 
    1411; 
    15 ; uses cm_general 
     12; @uses cm_general 
    1613; 
    17 ; @restrictions copy oldcm_full or oldcm_empty must be found in the 
    18 ; !path. dir must also be in the !path 
     14; @restrictions 
     15; copy oldcm_full or oldcm_empty must be found in the !path. 
     16; dir must also be in the !path 
     17; 
     18; @examples 
     19; IDL> keep_compatibility,0 
    1920; 
    2021; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    2122;                      June 2005 
     23; 
     24; @version $Id$ 
    2225; 
    2326;- 
     
    3134; version should be at least 6.0 
    3235; 
    33   IF fix(strmid(!version.release, 0, 1)) LT 6 THEN BEGIN  
     36  IF fix(strmid(!version.release, 0, 1)) LT 6 THEN BEGIN 
    3437    print, '                   *** ***** ***' 
    3538    print, '                   *** ERROR ***' 
     
    4851    !path = !path+ ':' + expand_path(myuniquetmpdir) 
    4952    return 
    50   ENDIF  
     53  ENDIF 
    5154; 
    52   if n_elements(flag) eq 0 then flag = 1b - keyword_set(key_forgetold)  
     55  if n_elements(flag) eq 0 then flag = 1b - keyword_set(key_forgetold) 
    5356; 1) automatic definition of key_forgetold 
    54   key_forgetold = 1b - keyword_set(flag)  
     57  key_forgetold = 1b - keyword_set(flag) 
    5558; 
    5659; 2) remove all oldcm_used.pro found in !path 
     
    6568; 4) copy oldcm_full(_empty) to myuniquetmpdir+'oldcm_used.pro' 
    6669; select which file should be copied to oldcm_used.pro 
    67     IF key_forgetold THEN BEGIN  
     70    IF key_forgetold THEN BEGIN 
    6871      oldcm = find('oldcm_empty') 
    6972      print, 'We forget the compatibility with the old version' 
    70     ENDIF ELSE BEGIN  
    71       oldcm = find('oldcm_full')  
     73    ENDIF ELSE BEGIN 
     74      oldcm = find('oldcm_full') 
    7275      print, 'We keep the compatibility with the old version' 
    73     ENDELSE  
     76    ENDELSE 
    7477; 
    7578    oldcm = oldcm[0] 
     
    8891;  make sure that the common variables are correctly initialized. 
    8992; 
    90   IF size(ccmeshparameters, /type) NE 8 THEN BEGIN  
     93  IF size(ccmeshparameters, /type) NE 8 THEN BEGIN 
    9194    computegrid, 1, 1, 1, 1, 1, 1, /fullcgrid 
    92 @cm_4data     
     95@cm_4data 
    9396    varname = '' 
    9497    vargrid = 'T' 
     
    98101    valmask = 1.e20 
    99102  ENDIF 
    100 ;   
     103; 
    101104  return 
    102105END 
Note: See TracChangeset for help on using the changeset viewer.