Changeset 2271


Ignore:
Timestamp:
07/02/14 18:19:55 (10 years ago)
Author:
sdipsl
Message:

add-on for ensemble handling:
update variable name
ensemble.card taken into account when a new directory is created by v5 configuration

NL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/ins_job

    r2246 r2271  
    163163#- 
    164164F_CFG='config.card'; 
     165F_CFG_ENS='ensemble.card'; 
     166SUBMIT_DIR_ENS=$( pwd ) 
    165167for i in $(find ${d_n}/.. -name ${F_CFG} -print) 
    166168do 
     
    243245    cp -r ${j}/GENERAL/* ${j}/${JobName}/. 
    244246    cp -f ${j}/${F_CFG}  ${j}/${JobName}/. 
     247    if [ -f ${F_CFG_ENS} ] ; then 
     248        cp -f ${j}/${F_CFG_ENS}  ${j}/${JobName}/. 
     249        SUBMIT_DIR_ENS=${j}/${JobName} 
     250    fi 
    245251    rm -f ${j}/${F_CFG} 
     252    rm -f ${j}/${F_CFG_ENS} 
    246253    rm -f ${j}/${F_CFG}.bak 
    247254    j=${j}/${JobName} 
     
    299306if [ ${x_e} = 'true' ] ; then 
    300307  #.. Read input data from ensemble.card ..  
    301   # TO BE CHANGED 
    302   FileName="ensemble.card" 
    303   SUBMIT_DIR=$( pwd ) 
     308  SUBMIT_DIR=${SUBMIT_DIR_ENS} 
    304309  RUN_DIR="${WORKDIR}/ENSEMBLE" 
    305310  # 
    306311  # Copy initial things around and define variables (hindcast/forecast case) 
     312  IGCM_sys_Cd ${SUBMIT_DIR} 
    307313  IGCM_ensemble_Init 
    308314   
     
    312318 
    313319  if [[ ${ensemble_Ens_DATE_active} = 'y' ]] ; then 
     320    IGCM_sys_Cd ${SUBMIT_DIR} 
    314321    IGCM_ensemble_DateInit 
    315322    # As it says 
     
    324331   
    325332  if [[ ${ensemble_Ens_PERTURB_active} = 'y' ]] ; then 
     333    IGCM_sys_Cd ${SUBMIT_DIR} 
    326334    IGCM_ensemble_CastInit 
    327335    # As it says 
Note: See TracChangeset for help on using the changeset viewer.