Changeset 1410 for trunk


Ignore:
Timestamp:
08/25/17 14:11:01 (7 years ago)
Author:
sdipsl
Message:
  • #326 fix the issue when SPACENAME = TEST
  • use a safer ksh syntax for testing equality
Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1407 r1410  
    836836          ( IGCM_sys_TestFileBuffer  ${R_BUF_KSH}/${Potential} ) || IGCM_sys_Cp ${Potential} ${R_BUF_KSH}/${Potential}.$$ 
    837837        else 
    838 #          ( IGCM_sys_TestFileArchive ${R_OUT_KSH}/${Potential} ) || IGCM_sys_Put_Out ${Potential} ${R_OUT_KSH}/${Potential}.$$ NOCHMOD 
    839            IGCM_debug_Print 1 "Save of previous ksh job output is not done for Pack=false" 
     838          ( IGCM_sys_TestFileArchive ${R_OUT_KSH}/${Potential} ) || IGCM_sys_Put_Out ${Potential} ${R_OUT_KSH}/${Potential}.$$ NOMOVE 
     839          IGCM_debug_Print 1 "Save of previous ksh job output is not done for Pack=false" 
    840840        fi 
    841841      done 
     
    848848        IGCM_sys_Cp ${SUBMIT_DIR}/run.card ${R_BUF_KSH}/run.card 
    849849      else 
    850 #        IGCM_sys_Put_Out ${SUBMIT_DIR}/run.card ${R_OUT_KSH}/run.card NOCHMOD 
    851          IGCM_debug_Print 1 "Save of run.card is not done for Pack=false" 
     850        IGCM_sys_Put_Out ${SUBMIT_DIR}/run.card ${R_OUT_KSH}/run.card NOMOVE 
     851        IGCM_debug_Print 1 "Save of run.card is not done for Pack=false" 
    852852      fi 
    853853      # 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r1409 r1410  
    687687        fi 
    688688 
    689         if [ ${fileDeviceNumberInHex} -ne ${directoryDeviceNumberInHex} ] ; then 
     689        if ( [ ${fileDeviceNumberInHex} -ne ${directoryDeviceNumberInHex} ] || [ X$3 = XNOMOVE] ) ; then 
    690690          # They are not on the same device. USUAL WAY 
    691691          \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 
     
    10551055# -------------------------------------------------------------------- 
    10561056 
    1057   if [ X${compilerVersion} == XV17 ] ; then 
     1057  if [ X${compilerVersion} = XV17 ] ; then 
    10581058      . /ccc/cont003/home/dsm/p86ipsl/.env_intel17.0.2_curie   > /dev/null 2>&1 
    1059   elif [ X${compilerVersion} == XV14 ] ; then 
     1059  elif [ X${compilerVersion} = XV14 ] ; then 
    10601060      . /ccc/cont003/home/dsm/p86ipsl/.env_intel14.0.3_curie   > /dev/null 2>&1 
    10611061  else 
Note: See TracChangeset for help on using the changeset viewer.