Changeset 1401
- Timestamp:
- 07/07/17 10:41:03 (8 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_purge_simulation
r1392 r1401 104 104 105 105 oui|OUI|o|y|yes|YES) 106 echo "OK. It will be erased." 107 for dir in ${ListDirectories[@]} ; do 108 IGCM_sys_RshArchive rm -rf ${dir} 109 done 110 # Remove dods hardlink 111 IGCM_sys_Dods_Rm 112 # Remove run.card 113 rm -f ${SUBMIT_DIR}/run.card 114 # Remove Script_Output 115 rm -f ${SUBMIT_DIR}/Script_Output_*.?????? 116 # Remove the Debug directory 117 rm -rf ${SUBMIT_DIR}/Debug 118 # Send a message telling we want to purge 119 IGCM_debug_sendAMQP_Purge 120 echo "done." 106 107 ERASE=FALSE 108 if [ X${config_UserChoices_SpaceName} = XTEST ] ; then 109 ERASE=TRUE 110 else 111 echo -e "\033[1;32mPlease type in the exact Job Name of the simulation to erase?" 112 read jobname 113 if [ X${config_UserChoices_JobName} = X${jobname} ; then 114 ERASE=TRUE 115 fi 116 fi 117 118 if [ X${ERASE} = XTRUE ] ; then 119 echo "OK. It will be erased." 120 for dir in ${ListDirectories[@]} ; do 121 IGCM_sys_RshArchive rm -rf ${dir} 122 done 123 # Remove dods hardlink 124 IGCM_sys_Dods_Rm 125 # Remove run.card 126 rm -f ${SUBMIT_DIR}/run.card 127 # Remove Script_Output 128 rm -f ${SUBMIT_DIR}/Script_Output_*.?????? 129 # Remove the Debug directory 130 rm -rf ${SUBMIT_DIR}/Debug 131 # Send a message telling we want to purge 132 IGCM_debug_sendAMQP_Purge 133 echo "done." 134 fi 121 135 ;; 122 136 non|NON|n|no|NO) -
trunk/libIGCM/ins_job
r1391 r1401 33 33 -v : verbose mode 34 34 -e : turn on ensemble mode (hindcast/forecast or date restart) 35 -f : ins_job is force to create jobs even if they already exist 35 36 on curie only : 36 37 -p project : add default project on curie … … 76 77 x_v='silencious'; 77 78 x_e=false; 79 x_f=false; 78 80 x_p=false; 79 81 x_c=false; 80 82 x_m=false; 81 while getopts :hve c:p:m: V ; do83 while getopts :hvefc:p:m: V ; do 82 84 case $V in 83 85 (h) ins_job_Usage; exit 0;; 84 86 (v) x_v='verbose';; 85 87 (e) x_e=true;; 88 (f) x_f=true;; 86 89 (p) x_p=true 87 90 ProjectID=${OPTARG} ;; … … 368 371 # File name for Job 369 372 n_f='Job_'${JobName}; 370 [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; }373 [[ ${x_f} = 'false' ]] && [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 371 374 [[ ${x_v} = 'verbose' ]] && print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 372 375 sed -e "/^${W_W} */ s///" \ … … 391 394 [[ ${i_f} = 'AA_job' ]] && { continue; } 392 395 j=${i%/*}; n_f=${i_f#AA_}'.job'; 393 [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; }396 [[ ${x_f} = 'false' ]] && [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 394 397 [[ ${x_v} = 'verbose' ]] && print - "\nIn directory ${j}\n${i_f} -> ${n_f}" 395 398 sed -e "/^${W_W} */ s///" \ -
trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh
r1394 r1401 292 292 do_init="y" 293 293 # Do we need to bring initial state file for this component 294 if [ "${config_Restarts_OverRule}" = "y" ]; then294 if ( [ "${config_Restarts_OverRule}" = "y" ] || [ "${config_Restarts_OverRule}" = "Y" ] ) ; then 295 295 eval do_init="n" 296 296 else … … 684 684 if ( ${FirstInitialize} ) ; then 685 685 686 if [ "${config_Restarts_OverRule}" = "y" ]; then686 if ( [ "${config_Restarts_OverRule}" = "y" ] || [ "${config_Restarts_OverRule}" = "Y" ] ) ; then 687 687 eval config_${comp}_Restart="y" 688 688 eval config_${comp}_RestartDate=${config_Restarts_RestartDate}
Note: See TracChangeset
for help on using the changeset viewer.