Changeset 116


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

bugfix in triangule + staring point of virtual machine

Location:
trunk/SRC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Commons/cm_general.pro

    r97 r116  
    66; 
    77COMMON directories, homedir, iodir, animdir, psdir, imagedir, myuniquetmpdir 
    8 COMMON key_general, key_performance, key_forgetold 
     8COMMON key_general, key_performance, key_forgetold, key_vm 
    99; 
  • trunk/SRC/Documentation/xmldoc/savesaxo.sh

    r115 r116  
    3232set -u 
    3333# 
    34 docompileall=0 
     34docompileall=1 
    3535dohtml=0 
    3636dooldtest=0 
     
    3838doidldoc_html=0 
    3939doidldoc_assistant=0 
    40 doTARsrc=1 
     40doTARsrc=0 
    4141doTARdata=0 
    42 doforge=1 
     42doforge=0 
    4343doSRClodyc=0 
    4444doDTAlodyc=0 
     
    283283fi 
    284284#------------------------------------------------------------------ 
    285 if [ $doSRCipsl -eq 1 ] 
    286 then 
    287     echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd" 
    288     infosrc=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_SRC_*.tar.gz  | head -n 1) 
    289     filesrc=$(echo ${infosrc} | awk '{print $NF}') 
    290     filesrc=$( basename $filesrc ) 
    291 # 
    292     cat <<EOF > job_src_$$ 
    293 #!/bin/bash 
    294 cd SAXO_DIR 
    295 # 
    296 rm -rf SRC 
    297 wget http://forge.ipsl.jussieu.fr/saxo/download/$filesrc 
    298 gunzip $filesrc 
    299 tar vxf $( basename $filesrc .gz ) 
    300 rm -f $( basename $filesrc .gz ) 
    301 # 
    302 chmod -R 755 * 
    303 exit 
    304 # 
    305 EOF 
    306 fi 
    307 # 
    308285if [[ ($doDTAlodyc -eq 1) || ($doDTAipsl -eq 1) ]] 
    309286then 
     
    346323if [ $doSRCipsl -eq 1 ] 
    347324then 
    348 # update src on cook 
    349 # 
    350     echo "iii : update src on cook" 
    351     scp job_src_$$ smlod@cook.ipsl.jussieu.fr:. 
    352     ssh smlod@cook.ipsl.jussieu.fr "chmod 755 job_src_$$ ; ./job_src_$$ ; rm -f job_src_$$" 
     325# update src on calcul2 
     326# 
     327    echo "iii : update src on calcul2" 
     328    ssh smlod@calcul2.ipsl.jussieu.fr "svn update SAXO_DIR/SRC ; chmod -R 755 SAXO_DIR" 
    353329fi 
    354330#------------------------------------------------------------------ 
  • 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. 
  • trunk/SRC/ToBeReviewed/TRIANGULATION/triangule.pro

    r114 r116  
    55@common 
    66; 
    7   IF jpi EQ 1 OR jpj EQ 1 THEN return, -1 
     7  szmsk = size(maskentree) 
     8  IF szmsk[0] EQ 0 THEN BEGIN 
     9    nx = jpi 
     10    ny = jpj 
     11  ENDIF ELSE BEGIN  
     12    nx = szmsk[1] 
     13    ny = szmsk[2] 
     14  ENDELSE 
     15  IF nx EQ 1 OR ny EQ 1 THEN return, -1 
    816; 
    917  IF arg_present(coinmonte) THEN coinmonte = 1 
Note: See TracChangeset for help on using the changeset viewer.