- Timestamp:
- 02/19/13 18:35:41 (11 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh
r778 r801 716 716 # Look after the tar file we want if we did not found it already 717 717 if [ X${IsMatching} = X ] ; then 718 for PotentialTarFile in $( find ${RestartPath}/${RestartJobName}/RESTART -name "${RestartJobName}_*_restart.tar" -print) ; do718 for PotentialTarFile in $( IGCM_sys_RshArchive "find ${RestartPath}/${RestartJobName}/RESTART -name "${RestartJobName}_*_restart.tar" -print" ) ; do 719 719 IsMatching=$( echo ${PotentialTarFile##*/} | \ 720 720 sed "s:^${RestartJobName}_::" | \ … … 728 728 done 729 729 fi 730 IGCM_debug_Print 1 "tar xvf ${TarFileFound} ${comp}_${generic_restart_file_name_in}*.${extension_in}" 731 tar xvf ${TarFileFound} ${comp}_${generic_restart_file_name_in}*.${extension_in} 730 TarFileLocation=$( IGCM_sys_PrepareTaredRestart ${TarFileFound} ) 731 IGCM_debug_Print 1 "tar xvf ${TarFileLocation} ${comp}_${generic_restart_file_name_in}*.${extension_in}" 732 tar xvf ${TarFileLocation} ${comp}_${generic_restart_file_name_in}*.${extension_in} 732 733 nb_restart_file=$( IGCM_sys_CountFileBuffer ${comp}_${generic_restart_file_name_in}_????.${extension_in} ) 733 734 fi … … 819 820 # Look after the tar file we want if we did not found it already 820 821 if [ X${IsMatching} = X ] ; then 821 for PotentialTarFile in $( find ${R_SAVE}/RESTART -name "${config_UserChoices_JobName}_*_restart.tar" -print) ; do822 for PotentialTarFile in $( IGCM_sys_RshArchive "find ${R_SAVE}/RESTART -name "${config_UserChoices_JobName}_*_restart.tar" -print" ) ; do 822 823 IsMatching=$( echo ${PotentialTarFile##*/} | sed "s:^${config_UserChoices_JobName}_::" | sed "s:\.restart\.tar$::" | gawk -F_ -v restartdate=${LastPeriodDateEnd} '{if (($1 < restartdate) && ($2 >= restartdate)) {print $1"_"$2}}' ) 823 824 if [ ! X${IsMatching} = X ] ; then … … 827 828 done 828 829 fi 829 tar xvf ${TarFileFound} ${comp}_${generic_restart_file_name_in}*.${extension_in} 830 TarFileLocation=$( IGCM_sys_PrepareTaredRestart ${TarFileFound} ) 831 IGCM_debug_Print 1 "tar xvf ${TarFileLocation} ${comp}_${generic_restart_file_name_in}*.${extension_in}" 832 tar xvf ${TarFileLocation} ${comp}_${generic_restart_file_name_in}*.${extension_in} 830 833 nb_restart_file=$( IGCM_sys_CountFileBuffer ${comp}_${generic_restart_file_name_in}_????.${extension_in} ) 831 834 fi -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh
r798 r801 1207 1207 fi 1208 1208 IGCM_debug_PopStack "IGCM_sys_PutBuffer_Rest" 1209 } 1210 1211 #D-#================================================== 1212 #D-function IGCM_sys_PrepareTaredRestart 1213 #D-* Purpose: Prepare tared restart to be access by computing job. 1214 #D-* Examples: 1215 #D- 1216 function IGCM_sys_PrepareTaredRestart { 1217 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1218 if [ $DRYRUN = 0 ]; then 1219 [ ! -f $( basename $1 ) ] && DEBUG_sys=false IGCM_sys_Get $1 . 1220 else 1221 ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 1222 fi 1223 echo $( basename $1 ) 1224 1225 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1209 1226 } 1210 1227 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
r782 r801 1022 1022 fi 1023 1023 IGCM_debug_PopStack "IGCM_sys_Put_Rest" 1024 } 1025 1026 #D-#================================================== 1027 #D-function IGCM_sys_PrepareTaredRestart 1028 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 1029 #D-* Examples: 1030 #D- 1031 function IGCM_sys_PrepareTaredRestart { 1032 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1033 echo $1 1034 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1024 1035 } 1025 1036 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh
r785 r801 1227 1227 fi 1228 1228 IGCM_debug_PopStack "IGCM_sys_PutBuffer_Rest" 1229 } 1230 1231 #D-#================================================== 1232 #D-function IGCM_sys_PrepareTaredRestart 1233 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 1234 #D-* Examples: 1235 #D- 1236 function IGCM_sys_PrepareTaredRestart { 1237 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1238 echo $1 1239 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1229 1240 } 1230 1241 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
r800 r801 1027 1027 fi 1028 1028 IGCM_debug_PopStack "IGCM_sys_PutBuffer_Rest" 1029 } 1030 1031 #D-#================================================== 1032 #D-function IGCM_sys_PrepareTaredRestart 1033 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 1034 #D-* Examples: 1035 #D- 1036 function IGCM_sys_PrepareTaredRestart { 1037 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1038 echo $1 1039 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1029 1040 } 1030 1041 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_iitm.ksh
r786 r801 892 892 893 893 #D-#================================================== 894 #D-function IGCM_sys_PrepareTaredRestart 895 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 896 #D-* Examples: 897 #D- 898 function IGCM_sys_PrepareTaredRestart { 899 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 900 echo $1 901 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 902 } 903 904 #D-#================================================== 894 905 #D-function IGCM_sys_Put_Out 895 906 #D-* Purpose: Copy a file on $(ARCHIVE) after have chmod it in readonly -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh
r782 r801 1026 1026 fi 1027 1027 IGCM_debug_PopStack "IGCM_sys_PutBuffer_Rest" 1028 } 1029 1030 #D-#================================================== 1031 #D-function IGCM_sys_PrepareTaredRestart 1032 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 1033 #D-* Examples: 1034 #D- 1035 function IGCM_sys_PrepareTaredRestart { 1036 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1037 echo $1 1038 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1028 1039 } 1029 1040 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh
r782 r801 1140 1140 fi 1141 1141 IGCM_debug_PopStack "IGCM_sys_PutBuffer_Rest" 1142 } 1143 1144 #D-#================================================== 1145 #D-function IGCM_sys_PrepareTaredRestart 1146 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 1147 #D-* Examples: 1148 #D- 1149 function IGCM_sys_PrepareTaredRestart { 1150 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1151 echo $1 1152 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1142 1153 } 1143 1154 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh
r800 r801 1046 1046 fi 1047 1047 IGCM_debug_PopStack "IGCM_sys_PutBuffer_Rest" 1048 } 1049 1050 #D-#================================================== 1051 #D-function IGCM_sys_PrepareTaredRestart 1052 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 1053 #D-* Examples: 1054 #D- 1055 function IGCM_sys_PrepareTaredRestart { 1056 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1057 echo $1 1058 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1048 1059 } 1049 1060 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
r782 r801 1245 1245 fi 1246 1246 IGCM_debug_PopStack "IGCM_sys_PutBuffer_Rest" 1247 } 1248 1249 #D-#================================================== 1250 #D-function IGCM_sys_PrepareTaredRestart 1251 #D-* Purpose: Prepare tared restart to be access by computing job. Identity here. 1252 #D-* Examples: 1253 #D- 1254 function IGCM_sys_PrepareTaredRestart { 1255 IGCM_debug_PushStack "IGCM_sys_PrepareTaredRestart" $@ 1256 echo $1 1257 IGCM_debug_PopStack "IGCM_sys_PrepareTaredRestart" 1247 1258 } 1248 1259
Note: See TracChangeset
for help on using the changeset viewer.