Ignore:
Timestamp:
06/22/06 10:17:23 (18 years ago)
Author:
smasson
Message:

bugfix in triangule + staring point of virtual machine

File:
1 edited

Legend:

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

    r114 r116  
    4141    return 
    4242  ENDIF 
     43; are we using the virtual machine?? 
     44  IF n_elements(key_vm) EQ 0 THEN $ 
     45     key_vm = total(file_test(expand_path(!path, /array)+'/keep_compatibility.pro')) EQ 0 
    4346; 
    4447  IF n_elements(myuniquetmpdir) NE 0 THEN BEGIN 
     
    5760; 3) define and create myuniquetmpdir and add it to !path 
    5861  def_myuniquetmpdir 
     62; if we are using the virtual machine, there is no need to do this 
     63  IF NOT keyword_set(key_vm) THEN BEGIN 
    5964; 
    6065; 4) copy oldcm_full(_empty) to myuniquetmpdir+'oldcm_used.pro' 
    6166; select which file should be copied to oldcm_used.pro 
    62   IF key_forgetold THEN BEGIN  
    63     oldcm = find('oldcm_empty') 
    64     print, 'We forget the compatibility with the old version' 
    65   ENDIF ELSE BEGIN  
    66     oldcm = find('oldcm_full')  
    67     print, 'We keep the compatibility with the old version' 
    68   ENDELSE  
     67    IF key_forgetold THEN BEGIN  
     68      oldcm = find('oldcm_empty') 
     69      print, 'We forget the compatibility with the old version' 
     70    ENDIF ELSE BEGIN  
     71      oldcm = find('oldcm_full')  
     72      print, 'We keep the compatibility with the old version' 
     73    ENDELSE  
    6974; 
    70   oldcm = oldcm[0] 
    71   IF oldcm EQ 'NOT FOUND' THEN BEGIN 
    72     print, 'Error: oldcm_full or oldcm_empty must be found in the !path' 
    73     stop 
     75    oldcm = oldcm[0] 
     76    IF oldcm EQ 'NOT FOUND' THEN BEGIN 
     77      print, 'Error: oldcm_full or oldcm_empty must be found in the !path' 
     78      stop 
     79    ENDIF 
     80; copy 
     81    file_copy, oldcm, myuniquetmpdir + 'oldcm_used.pro', /overwrite 
     82; 
     83; make sure we can make the plots even if we are using the demo mode 
     84; 
     85    demomode_compatibility 
    7486  ENDIF 
    75 ; copy 
    76   file_copy, oldcm, myuniquetmpdir + 'oldcm_used.pro', /overwrite 
    77 ; 
    78 ; make sure we can make the plots enev if we are using the demo mode 
    79 ; 
    80   demomode_compatibility 
    8187; 
    8288;  make sure that the common variables are correctly initialized. 
Note: See TracChangeset for help on using the changeset viewer.