- Timestamp:
- 03/30/15 17:18:46 (9 years ago)
- Location:
- trunk/libIGCM/libIGCM_sys
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh
r1179 r1180 83 83 # ie storage filesystem 84 84 typeset -r STOREHOST=ergon 85 typeset -r REMOTE_RSYNC=/u /rech/ces/rces452/RSYNC/bin/rsync85 typeset -r REMOTE_RSYNC=/usr/bin/rsync 86 86 87 87 #==================================================== 88 # Set environment tools (ferret, nco, cdo )88 # Set environment tools (ferret, nco, cdo, rebuild, ...) 89 89 #==================================================== 90 90 source /smplocal/pub/Modules/default/init/ksh … … 136 136 137 137 #==================================================== 138 #- set PackDefault t rue on ada138 #- set PackDefault to true on ada 139 139 PackDefault=true 140 140 … … 951 951 fi 952 952 fi 953 954 953 IGCM_debug_PopStack "IGCM_sys_Mv" 955 954 } … … 1343 1342 i=0 1344 1343 while [ $i -lt $NB_ESSAI ] ; do 1345 # USUAL WAY 1346 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1347 status=$? 1344 if [ $( stat -c %d $1 ) -ne $( stat -c %d $( dirname $2 ) ) ] ; then 1345 # USUAL WAY 1346 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1347 status=$? 1348 else 1349 # NOT SO USUAL WAY 1350 \mv $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1351 status=$? 1352 fi 1348 1353 if [ ${status} -gt 0 ]; then 1349 1354 IGCM_debug_Print 2 "IGCM_sys_PutBuffer_Out : cp failed error code ${status} ${i}/${NB_ESSAI}" … … 1995 2000 fi 1996 2001 1997 else # Only one executable. (SPMD mode). 2002 # Only one executable (SPMD mode). 2003 else 1998 2004 1999 2005 for comp in ${config_ListOfComponents[*]} ; do … … 2092 2098 2093 2099 eval ${3}=${ID} 2094 2095 2100 IGCM_debug_PopStack "IGCM_sys_GetJobID" 2096 2101 } -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh
r1179 r1180 85 85 # ie storage filesystem 86 86 typeset -r STOREHOST=${MASTER} 87 typeset -r REMOTE_RSYNC=/usr/bin/rsync 87 88 88 89 #==================================================== 89 # Set environment tools (ferret, nco, cdo )90 # Set environment tools (ferret, nco, cdo, rebuild, ...) 90 91 #==================================================== 91 92 if [ X${TaskType} = Xcomputing ] ; then … … 172 173 173 174 #==================================================== 174 #- set PackDefault t rue on curie175 #- set PackDefault to true on curie 175 176 PackDefault=true 176 177 … … 1017 1018 fi 1018 1019 fi 1019 1020 1020 IGCM_debug_PopStack "IGCM_sys_Mv" 1021 1021 } … … 1075 1075 DELAI=2 1076 1076 1077 # Only if we use rsync1078 #IGCM_sys_TestDirArchive $( dirname $2 )1079 1077 # 1080 1078 # USUAL WAY … … 2521 2519 2522 2520 eval ${3}=${ID} 2523 2524 2521 IGCM_debug_PopStack "IGCM_sys_GetJobID" 2525 2522 } -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
r1179 r1180 64 64 # Host and user names 65 65 # $hostname ou hostname 66 typeset 66 typeset HOST=${HOST:=$( hostname )} 67 67 # $username ou whoami 68 typeset 68 typeset LOGIN=${LOGIN:=$( whoami )} 69 69 # $hostname of the MASTER job 70 typeset MASTER=${ HOST}70 typeset MASTER=${MASTER:=$( hostname )} 71 71 72 72 #D- … … 85 85 86 86 #==================================================== 87 # Set environment tools (ferret, nco, cdo )87 # Set environment tools (ferret, nco, cdo, rebuild, ...) 88 88 #==================================================== 89 89 #. /home/${LOGIN}/.atlas_env_${HOST}_ksh 90 91 export PATH=${PATH}:/home/jripsl/snapshot/Monitoring/CNClient/ 90 #export PATH=${PATH}:/home/${LOGIN}/rebuild/bin/ 92 91 93 92 #==================================================== … … 131 130 #- Max number of arguments passed to nco operator or demigration command 132 131 UNIX_MAX_LIMIT=360 132 133 #==================================================== 134 #- set PackDefault to false on obelix 135 PackDefault=false 133 136 134 137 #==================================================== … … 207 210 function IGCM_sys_RshMaster { 208 211 IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 209 /bin/ksh <<-EOF212 OUTCOMMAND_PATH=${OUTCOMMAND_PATH} /bin/ksh <<-EOF 210 213 export libIGCM=${libIGCM} 211 214 export DEBUG_debug=${DEBUG_debug} … … 264 267 fi 265 268 # keep standard input (stdin) for the loop onto temporary file 266 cat > /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}267 268 /bin/ksh </tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}269 cat >${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 270 271 OUTCOMMAND_PATH=${OUTCOMMAND_PATH} /bin/ksh <${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 269 272 if [ $? -gt 0 ] ; then 270 273 echo "IGCM_sys_RshPost : erreur." … … 272 275 fi 273 276 # delete temporary file 274 \rm /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}277 \rm ${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 275 278 IGCM_debug_PopStack "IGCM_sys_RshPost" 276 279 } … … 304 307 305 308 if [ ! -z ${config_UserChoices_MailName} ] ; then 306 mail x -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} <mail.txt309 mail -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < mail.txt 307 310 elif [ -f ~/.forward ] ; then 308 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < mail.txt 311 mail -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < mail.txt 312 else 313 mail -s "${config_UserChoices_JobName} ${status}" ${USER} < mail.txt 309 314 fi 310 315 … … 473 478 #D-#================================================== 474 479 #D-function IGCM_sys_IsFileArchived 475 #D-* Purpose: Test file that must NOT EXISTS on Archive 480 #D-* Purpose: Test file that must NOT EXISTS on Archive based on filename only 476 481 #D-* Examples: 477 482 #D- … … 556 561 fi 557 562 558 \ ls -lR ${@}563 \tree -f $@ 559 564 560 565 IGCM_debug_PopStack "IGCM_sys_Tree" … … 924 929 fi 925 930 if [ $DRYRUN = 0 ]; then 926 typeset status 927 928 #USUAL WAY 929 \cp -ur $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 930 status=$? 931 typeset NB_ESSAI DELAI status i 932 # number of tentative 933 NB_ESSAI=3 934 # time delay between tentative 935 DELAI=2 936 937 # 938 # USUAL WAY 939 i=0 940 while [ $i -lt $NB_ESSAI ] ; do 941 \cp -ur $1 $2 >> ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 942 status=$? 943 if [ ${status} -gt 0 ] ; then 944 IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status} ${i}/${NB_ESSAI}" 945 IGCM_debug_Print 2 "IGCM_sys_Get_Dir : sleep ${DELAI} seconds and try again." 946 sleep $DELAI 947 else 948 break 949 fi 950 (( i = i + 1 )) 951 done 931 952 932 953 if [ ${status} -gt 0 ] ; then … … 1033 1054 1034 1055 if [ ${status} -gt 0 ] ; then 1035 echo"IGCM_sys_Put_Rest : cp failed error code ${status}"1056 IGCM_debug_Print 2 "IGCM_sys_Put_Rest : cp failed error code ${status}" 1036 1057 [ -f ${1} ] && ls -l ${1} 1037 1058 [ -f ${2} ] && ls -l ${2} … … 1719 1740 echo "IGCM_sys_build_execution_scripts " $@ 1720 1741 fi 1742 1721 1743 typeset nodes listnodes init_node start_num init_exec comp ExeNameIn ExeNameOut 1722 1744 typeset node_num_current node_current comp_proc_mpi_loc comp_proc_omp_loc 1723 1745 typeset num_corempi nombre_restant_node nombre_restant_comp 1724 1725 if [ ! -f ${SUBMIT_DIR}/Job_${config_UserChoices_JobName} ] ; then1726 IGCM_debug_Exit "IGCM_sys_default build_execution_scripts : Job_${config_UserChoices_JobName} don't exist in SUBMIT_DIR : ${SUBMIT_DIR} "1727 fi1728 1746 1729 1747 if ( ${OK_PARA_MPMD} ) ; then … … 1762 1780 init_exec=n 1763 1781 1764 # Test : if oasis is there, we put it at the first position 1765 1782 # Build run_file 1783 1784 # First loop on the components for the coupler ie oasis (only if oasis3) 1785 # the coupler ie oasis3 must be the first one 1766 1786 for comp in ${config_ListOfComponents[*]} ; do 1767 1787 … … 1965 1985 1966 1986 fi 1987 1967 1988 done 1968 1989 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_iitm.ksh
r1179 r1180 64 64 # Host and user names 65 65 # $hostname ou hostname 66 typeset 66 typeset HOST=${HOST:=$( hostname )} 67 67 # $username ou whoami 68 typeset 68 typeset LOGIN=${LOGIN:=$( whoami )} 69 69 # $hostname of the MASTER job 70 ntypeset -rMASTER=iitm0170 typeset MASTER=iitm01 71 71 72 72 #D- … … 86 86 87 87 #==================================================== 88 # S ource default environment88 # Set environment tools (ferret, nco, cdo, rebuild, ...) 89 89 #==================================================== 90 ##. /etc/profile 91 92 #==================================================== 93 # Set environment tools (ferret, nco, cdo) 94 #==================================================== 95 # Not applicable here 90 # Not applicable here. Only rebuild path 91 export export PATH=${PATH}:/gpfs1/home/sebastien/REBUILD/ 96 92 97 93 #==================================================== … … 100 96 101 97 #==================================================== 102 #- Mirror libIGCM from iitm to a post-processing machine98 #- MirrorlibIGCM for frontend 103 99 typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 104 100 … … 137 133 138 134 #==================================================== 139 #- set PackDefault t rue on curie135 #- set PackDefault to false on iitm 140 136 PackDefault=false 141 137 … … 210 206 #D-#================================================== 211 207 #D-function IGCM_sys_RshMaster 212 #D-* Purpose: Just a fake command to wrapp 213 #D- IGCM_card call in post-treatment 214 #D- Ulam do not see brodie filesystem 215 #D- Cesium do not see all mercure filesystem 216 #D- That's why we need this hack. 208 #D-* Purpose: Connection to frontend machine. 217 209 #D-* Examples: 218 210 #D- 219 211 function IGCM_sys_RshMaster { 220 212 IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 221 /bin/ksh <<-EOF213 OUTCOMMAND_PATH=${OUTCOMMAND_PATH} /bin/ksh <<-EOF 222 214 export libIGCM=${libIGCM} 223 215 export DEBUG_debug=${DEBUG_debug} … … 252 244 253 245 #D-#================================================== 246 #D-function IGCM_sys_RshArchive_NoError 247 #D-* Purpose: Archive rsh command, without error 248 #D-* used only in monitoring.job 249 #D-* Examples: 250 #D- 251 function IGCM_sys_RshArchive_NoError { 252 IGCM_debug_PushStack "IGCM_sys_RshArchive_NoError" $@ 253 /bin/ksh <<-EOF 254 ${@} 2> /dev/null 255 EOF 256 IGCM_debug_PopStack "IGCM_sys_RshArchive_NoError" 257 } 258 259 #D-#================================================== 254 260 #D-function IGCM_sys_RshPost 255 261 #D-* Purpose: Post-process rsh command … … 261 267 echo "IGCM_sys_RshPost :" $@ 262 268 fi 263 264 # keep standard input to keep it for postpone if ulam don't answer 265 cat >/tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 266 267 /bin/ksh </tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 269 # keep standard input (stdin) for the loop onto temporary file 270 cat >${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 271 272 OUTCOMMAND_PATH=${OUTCOMMAND_PATH} /bin/ksh <${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 268 273 if [ $? -gt 0 ] ; then 269 274 echo "IGCM_sys_RshPost : erreur." … … 271 276 fi 272 277 # delete temporary file 273 \rm /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}278 \rm ${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 274 279 275 280 IGCM_debug_PopStack "IGCM_sys_RshPost" … … 304 309 305 310 if [ ! -z ${config_UserChoices_MailName} ] ; then 306 mail x-s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < mail.txt311 mail -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < mail.txt 307 312 elif [ -f ~/.forward ] ; then 308 mail x-s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < mail.txt313 mail -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < mail.txt 309 314 else 310 mail x-s "${config_UserChoices_JobName} ${status}" ${USER} < mail.txt315 mail -s "${config_UserChoices_JobName} ${status}" ${USER} < mail.txt 311 316 fi 312 317 … … 353 358 fi 354 359 #- creation de repertoire sur le serveur fichier 355 mkdir -p $1 356 status=$? 357 358 if [ ${status} -gt 0 ] ; then 359 IGCM_debug_Print 2 "IGCM_sys_MkdirArchive : mkdir failed error code ${status}" 360 IGCM_debug_Exit "IGCM_sys_MkdirArchive" 360 if [ ! -d ${1} ]; then 361 \mkdir -p $1 362 status=$? 363 364 if [ ${status} -gt 0 ] ; then 365 IGCM_debug_Print 2 "IGCM_sys_MkdirArchive : mkdir failed error code ${status}" 366 IGCM_debug_Exit "IGCM_sys_MkdirArchive" 367 fi 361 368 fi 362 369 IGCM_debug_PopStack "IGCM_sys_MkdirArchive" … … 473 480 #D-#================================================== 474 481 #D-function IGCM_sys_IsFileArchived 475 #D-* Purpose: Test file that must NOT EXISTS on Archive 482 #D-* Purpose: Test file that must NOT EXISTS on Archive based on filename only 476 483 #D-* Examples: 477 484 #D- … … 920 927 fi 921 928 fi 922 923 929 IGCM_debug_PopStack "IGCM_sys_Mv" 924 930 } … … 1080 1086 1081 1087 if [ ${status} -gt 0 ] ; then 1082 echo"IGCM_sys_Put_Rest : cp failed error code ${status}"1088 IGCM_debug_Print 2 "IGCM_sys_Put_Rest : cp failed error code ${status}" 1083 1089 cat ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 1084 1090 IGCM_debug_Exit "IGCM_sys_Put_Rest" … … 1236 1242 i=0 1237 1243 while [ $i -lt $NB_ESSAI ] ; do 1238 # USUAL WAY 1239 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1240 status=$? 1244 if [ $( stat -c %d $1 ) -ne $( stat -c %d $( dirname $2 ) ) ] ; then 1245 # USUAL WAY 1246 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1247 status=$? 1248 else 1249 # NOT SO USUAL WAY 1250 \mv $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1251 status=$? 1252 fi 1241 1253 if [ ${status} -gt 0 ]; then 1242 1254 IGCM_debug_Print 2 "IGCM_sys_PutBuffer_Out : cp failed error code ${status} ${i}/${NB_ESSAI}" … … 1507 1519 i=0 1508 1520 while [ $i -lt $NB_ESSAI ] ; do 1509 /gpfs1/home/sebastien/REBUILD/rebuild -f -o $@ > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&11521 rebuild -f -o $@ > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1510 1522 status=$? 1511 1523 if [ ${status} -gt 0 ] ; then … … 1583 1595 # 0 118 110.0000000000000 87.46478873239437 1584 1596 # 1 40 4.999999999999995 51.97183098591550 1597 1585 1598 # typeset iStation iProc list_opt file_in file_out prefix_invert 1586 1599 # typeset -Z4 j4 … … 1778 1791 1779 1792 if ( ${OK_PARA_MPI} ) ; then 1780 1781 1793 (( mpi_count = 1 )) 1782 1794 until [ ${mpi_count} -gt ${comp_proc_mpi_loc} ] ; do … … 1812 1824 1813 1825 if ( ${OK_PARA_MPI} ) ; then 1814 1815 1826 (( mpi_count = 1 )) 1816 1827 until [ ${mpi_count} -gt ${comp_proc_mpi_loc} ] ; do … … 1841 1852 fi 1842 1853 1843 else # Only one executable. launch it. 1854 # Only one executable (SPMD mode). 1855 else 1844 1856 1845 1857 for comp in ${config_ListOfComponents[*]} ; do … … 2383 2395 if [ ${status} -gt 0 ] ; then 2384 2396 echo "IGCM_sys_ncrcat : ncrcat error" 2385 2397 #IGCM_debug_Exit "ncrcat" 2386 2398 fi 2387 2399 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh
r1179 r1180 64 64 # Host and user names 65 65 # $hostname ou hostname 66 typeset 66 typeset HOST=${HOST:=$( hostname )} 67 67 # $username ou whoami 68 typeset 68 typeset LOGIN=${LOGIN:=$( whoami )} 69 69 # $hostname of the MASTER job 70 70 typeset MASTER=${MASTER:=$( hostname )} … … 85 85 86 86 #==================================================== 87 # Set environment tools (ferret, nco, cdo )87 # Set environment tools (ferret, nco, cdo, rebuild, ...) 88 88 #==================================================== 89 89 . /home/users/igcmg/.atlas_env_asterix_ksh 90 export PATH=${PATH}:/home/users/igcmg/rebuild/bin/ 90 91 91 92 #==================================================== … … 121 122 #- IN 122 123 typeset -r R_IN=${R_IN:=/home/orchideeshare/igcmg/IGCM} 124 typeset -r R_IN_ECMWF=${R_IN_ECMWF:=/home/orchideeshare/igcmg/IGCM} 123 125 124 126 #==================================================== … … 141 143 #- Max number of arguments passed to nco operator or demigration command 142 144 UNIX_MAX_LIMIT=360 145 146 #==================================================== 147 #- set PackDefault to false on obelix 148 PackDefault=false 143 149 144 150 #==================================================== … … 217 223 function IGCM_sys_RshMaster { 218 224 IGCM_debug_PushStack "IGCM_sys_RshMaster" $@ 219 /bin/ksh <<-EOF225 OUTCOMMAND_PATH=${OUTCOMMAND_PATH} /bin/ksh <<-EOF 220 226 export libIGCM=${libIGCM} 221 227 export DEBUG_debug=${DEBUG_debug} … … 274 280 fi 275 281 # keep standard input (stdin) for the loop onto temporary file 276 cat > /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}277 278 /bin/ksh </tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}282 cat >${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 283 284 OUTCOMMAND_PATH=${OUTCOMMAND_PATH} /bin/ksh <${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 279 285 if [ $? -gt 0 ] ; then 280 286 echo "IGCM_sys_RshPost : erreur." … … 282 288 fi 283 289 # delete temporary file 284 \rm /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}290 \rm ${OUTCOMMAND_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 285 291 IGCM_debug_PopStack "IGCM_sys_RshPost" 286 292 } … … 314 320 315 321 if [ ! -z ${config_UserChoices_MailName} ] ; then 316 mail x -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} <mail.txt322 mail -s "${config_UserChoices_JobName} ${status}" ${config_UserChoices_MailName} < mail.txt 317 323 elif [ -f ~/.forward ] ; then 318 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < mail.txt 324 mail -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < mail.txt 325 else 326 mail -s "${config_UserChoices_JobName} ${status}" ${USER} < mail.txt 319 327 fi 320 328 … … 483 491 #D-#================================================== 484 492 #D-function IGCM_sys_IsFileArchived 485 #D-* Purpose: Test file that must NOT EXISTS on Archive 493 #D-* Purpose: Test file that must NOT EXISTS on Archive based on filename only 486 494 #D-* Examples: 487 495 #D- … … 624 632 cat ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 625 633 if [ ${status} -gt 0 ] ; then 626 IGCM_debug_Print 2 "IGCM_sys_Qsub $ 1 : error code ${status}"634 IGCM_debug_Print 2 "IGCM_sys_Qsub ${options} $1 : error code ${status}" 627 635 IGCM_debug_Exit "IGCM_sys_Qsub" 628 636 else … … 945 953 fi 946 954 if [ $DRYRUN = 0 ]; then 947 typeset status 948 949 #USUAL WAY 950 \cp -ur $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 951 status=$? 955 typeset NB_ESSAI DELAI status i 956 # number of tentative 957 NB_ESSAI=3 958 # time delay between tentative 959 DELAI=2 960 961 # 962 # USUAL WAY 963 i=0 964 while [ $i -lt $NB_ESSAI ] ; do 965 \cp -ur $1 $2 >> ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 966 status=$? 967 if [ ${status} -gt 0 ] ; then 968 IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status} ${i}/${NB_ESSAI}" 969 IGCM_debug_Print 2 "IGCM_sys_Get_Dir : sleep ${DELAI} seconds and try again." 970 sleep $DELAI 971 else 972 break 973 fi 974 (( i = i + 1 )) 975 done 952 976 953 977 if [ ${status} -gt 0 ] ; then … … 1054 1078 1055 1079 if [ ${status} -gt 0 ] ; then 1056 echo"IGCM_sys_Put_Rest : cp failed error code ${status}"1080 IGCM_debug_Print 2 "IGCM_sys_Put_Rest : cp failed error code ${status}" 1057 1081 [ -f ${1} ] && ls -l ${1} 1058 1082 [ -f ${2} ] && ls -l ${2} … … 1537 1561 i=0 1538 1562 while [ $i -lt $NB_ESSAI ] ; do 1539 /home/users/igcmg/rebuild/bin/rebuild -f -o $@ > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&11563 rebuild -f -o $@ > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 1540 1564 status=$? 1541 1565 if [ ${status} -gt 0 ] ; then … … 1740 1764 echo "IGCM_sys_build_execution_scripts " $@ 1741 1765 fi 1766 1742 1767 typeset nodes listnodes init_node start_num init_exec comp ExeNameIn ExeNameOut 1743 1768 typeset node_num_current node_current comp_proc_mpi_loc comp_proc_omp_loc 1744 1769 typeset num_corempi nombre_restant_node nombre_restant_comp 1745 1746 if [ ! -f ${SUBMIT_DIR}/Job_${config_UserChoices_JobName} ] ; then1747 IGCM_debug_Exit "IGCM_sys_obelix build_execution_scripts : Job_${config_UserChoices_JobName} don't exist in SUBMIT_DIR : ${SUBMIT_DIR} "1748 fi1749 1770 1750 1771 if ( ${OK_PARA_MPMD} ) ; then … … 1783 1804 init_exec=n 1784 1805 1785 # Test : if oasis is there, we put it at the first position 1786 1806 # Build run_file 1807 1808 # First loop on the components for the coupler ie oasis (only if oasis3) 1809 # the coupler ie oasis3 must be the first one 1787 1810 for comp in ${config_ListOfComponents[*]} ; do 1788 1811 … … 1986 2009 1987 2010 fi 2011 1988 2012 done 1989 2013
Note: See TracChangeset
for help on using the changeset viewer.