Changeset 122 for trunk/SRC/ForOldVersion
- Timestamp:
- 07/05/06 16:37:26 (18 years ago)
- Location:
- trunk/SRC/ForOldVersion
- Files:
-
- 6 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 -
trunk/SRC/ForOldVersion/oldcm_empty.pro
- Property svn:executable deleted
- Property svn:keywords set to Id
r102 r122 3 3 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 4 4 ; June 2005 5 ; @version $Id$ 5 6 ;- 6 7 ; -
trunk/SRC/ForOldVersion/oldcm_full.pro
- Property svn:executable deleted
- Property svn:keywords set to Id
r102 r122 3 3 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 4 4 ; 14/8/98 5 ; @version $Id$ 5 6 ;- 6 7 ; -
trunk/SRC/ForOldVersion/updatekwd.pro
- Property svn:executable deleted
- Property svn:keywords set to Id
r102 r122 1 1 ;+ 2 2 ; 3 ; @file_comments 3 ; @file_comments 4 4 ; compatibility with old keywords 5 ; if needed, force the definition of new keywords 6 ; with the old ones. 5 ; if needed, force the definition of new keywords with the old ones. 7 6 ; 8 7 ; @categories compatibility with previous version … … 12 11 ; (must be insert as an include in a procedure or function) 13 12 ; 14 ;15 13 ; @restrictions the compatibility can be made only if the keyword 16 14 ; given through _extra are given with their complete name … … 18 16 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 19 17 ; July 2005 18 ; @version $Id$ 19 ; 20 20 ;- 21 21 ; if ex is a structure... -
trunk/SRC/ForOldVersion/updatenew.pro
- Property svn:executable deleted
- Property svn:keywords set to Id
r102 r122 1 1 ;+ 2 ; file_comments2 ; @file_comments 3 3 ; common declaration 4 4 ; 5 5 ; check that key_forgetold and keep_compatibility are well defined... 6 ; 6 7 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 7 8 ; June 2005 9 ; @version $Id$ 8 10 ;- 9 ;10 11 ; 11 12 IF n_elements(key_forgetold) EQ 0 THEN keep_compatibility … … 15 16 @oldcm_used 16 17 ; 17 key_forgetold = keyword_set(key_forgetold) 18 key_forgetold = keyword_set(key_forgetold) 18 19 ; 19 20 IF NOT key_forgetold AND n_elements(sauveps) NE 0 THEN archive_ps = sauveps … … 55 56 ; 56 57 IF NOT key_forgetold AND n_elements(coefpalit) NE 0 AND n_elements(Lightness) EQ 0 $ 57 THEN Lightness = coefpalit 58 THEN Lightness = coefpalit 58 59 ; -
trunk/SRC/ForOldVersion/updateold.pro
- Property svn:executable deleted
- Property svn:keywords set to Id
r102 r122 2 2 ; @file_comments 3 3 ; check that key_forgetold and keep_compatibility are well defined... 4 ; 4 5 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 5 6 ; 14/8/98 7 ; @version $Id$ 8 ; 6 9 ;- 7 ;8 10 ; 9 11 IF n_elements(key_forgetold) EQ 0 THEN keep_compatibility … … 13 15 @oldcm_used 14 16 ; 15 key_forgetold = keyword_set(key_forgetold) 17 key_forgetold = keyword_set(key_forgetold) 16 18 17 19 IF NOT key_forgetold AND n_elements(jpt) NE 0 THEN jptmax = jpt
Note: See TracChangeset
for help on using the changeset viewer.