Changeset 1401


Ignore:
Timestamp:
07/07/17 10:41:03 (7 years ago)
Author:
sdipsl
Message:
Location:
trunk/libIGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_purge_simulation

    r1392 r1401  
    104104 
    105105  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 
    121135    ;; 
    122136  non|NON|n|no|NO) 
  • trunk/libIGCM/ins_job

    r1391 r1401  
    3333  -v                  : verbose mode 
    3434  -e                  : turn on ensemble mode (hindcast/forecast or date restart) 
     35  -f                  : ins_job is force to create jobs even if they already exist 
    3536on curie only :  
    3637  -p project          : add default project on curie 
     
    7677x_v='silencious'; 
    7778x_e=false; 
     79x_f=false; 
    7880x_p=false; 
    7981x_c=false; 
    8082x_m=false; 
    81 while getopts :hvec:p:m: V ; do 
     83while getopts :hvefc:p:m: V ; do 
    8284  case $V in 
    8385  (h)  ins_job_Usage; exit 0;; 
    8486  (v)  x_v='verbose';; 
    8587  (e)  x_e=true;; 
     88  (f)  x_f=true;; 
    8689  (p)  x_p=true 
    8790       ProjectID=${OPTARG} ;; 
     
    368371  # File name for Job 
    369372  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; } 
    371374  [[ ${x_v} = 'verbose' ]] && print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 
    372375  sed -e "/^${W_W} */ s///" \ 
     
    391394  [[ ${i_f} = 'AA_job' ]] && { continue; } 
    392395  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; } 
    394397  [[ ${x_v} = 'verbose' ]] && print - "\nIn directory ${j}\n${i_f} -> ${n_f}" 
    395398  sed -e "/^${W_W} */ s///" \ 
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r1394 r1401  
    292292      do_init="y" 
    293293      # Do we need to bring initial state file for this component 
    294       if [ "${config_Restarts_OverRule}" = "y" ] ; then 
     294      if ( [ "${config_Restarts_OverRule}" = "y" ] || [ "${config_Restarts_OverRule}" = "Y" ] ) ; then 
    295295        eval do_init="n" 
    296296      else 
     
    684684    if ( ${FirstInitialize} ) ; then 
    685685 
    686       if [ "${config_Restarts_OverRule}" = "y" ] ; then 
     686      if ( [ "${config_Restarts_OverRule}" = "y" ] || [ "${config_Restarts_OverRule}" = "Y" ] ) ; then 
    687687        eval config_${comp}_Restart="y" 
    688688        eval config_${comp}_RestartDate=${config_Restarts_RestartDate} 
Note: See TracChangeset for help on using the changeset viewer.