Changeset 122 for trunk/SRC/ForOldVersion/keep_compatibility.pro
- Timestamp:
- 07/05/06 16:37:26 (18 years ago)
- 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 1 1 ;+ 2 ; @file_comments 2 ; @file_comments 3 3 ; 1) define key_forgetold = 1b - keyword_set(flag) 4 4 ; 2) remove all oldcm_used.pro found in !path … … 8 8 ; @categories compatibility with old version 9 9 ; 10 ; @examples11 ; IDL> keep_compatibility [, flag]12 ;13 10 ; @param flag {in}{optional} 1 or 0 to keep or forget the compatibility 14 11 ; 15 ; uses cm_general12 ; @uses cm_general 16 13 ; 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 19 20 ; 20 21 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 21 22 ; June 2005 23 ; 24 ; @version $Id$ 22 25 ; 23 26 ;- … … 31 34 ; version should be at least 6.0 32 35 ; 33 IF fix(strmid(!version.release, 0, 1)) LT 6 THEN BEGIN 36 IF fix(strmid(!version.release, 0, 1)) LT 6 THEN BEGIN 34 37 print, ' *** ***** ***' 35 38 print, ' *** ERROR ***' … … 48 51 !path = !path+ ':' + expand_path(myuniquetmpdir) 49 52 return 50 ENDIF 53 ENDIF 51 54 ; 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) 53 56 ; 1) automatic definition of key_forgetold 54 key_forgetold = 1b - keyword_set(flag) 57 key_forgetold = 1b - keyword_set(flag) 55 58 ; 56 59 ; 2) remove all oldcm_used.pro found in !path … … 65 68 ; 4) copy oldcm_full(_empty) to myuniquetmpdir+'oldcm_used.pro' 66 69 ; select which file should be copied to oldcm_used.pro 67 IF key_forgetold THEN BEGIN 70 IF key_forgetold THEN BEGIN 68 71 oldcm = find('oldcm_empty') 69 72 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') 72 75 print, 'We keep the compatibility with the old version' 73 ENDELSE 76 ENDELSE 74 77 ; 75 78 oldcm = oldcm[0] … … 88 91 ; make sure that the common variables are correctly initialized. 89 92 ; 90 IF size(ccmeshparameters, /type) NE 8 THEN BEGIN 93 IF size(ccmeshparameters, /type) NE 8 THEN BEGIN 91 94 computegrid, 1, 1, 1, 1, 1, 1, /fullcgrid 92 @cm_4data 95 @cm_4data 93 96 varname = '' 94 97 vargrid = 'T' … … 98 101 valmask = 1.e20 99 102 ENDIF 100 ; 103 ; 101 104 return 102 105 END
Note: See TracChangeset
for help on using the changeset viewer.