Changeset 1513 for trunk/libIGCM


Ignore:
Timestamp:
01/14/20 18:53:44 (4 years ago)
Author:
acosce
Message:

add specific case for training account (dataproject = for) who are not stored in /rech/ partition - revert previous commit [1511]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_jeanzay.ksh

    r1511 r1513  
    205205  #==================================================== 
    206206  #- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    207   typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/gpfsscratch/rech/${DataProject}/${LOGIN}/RUN_DIR/${SLURM_JOBID}_${$}} 
     207  #- DataProject = for is the dataproject for Training account at Idris  
     208  #- they are not store in rech but in another partition  
     209  if [ X${DataProject} = Xfor  ]; then 
     210      typeset -r RUN_DIR_PATH=$SCRATCH/RUN_DIR/${SLURM_JOBID}_${$} 
     211  else 
     212      typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/gpfsscratch/rech/${DataProject}/${LOGIN}/RUN_DIR/${SLURM_JOBID}_${$}} 
     213  fi 
    208214 
    209215  if [ ! X${config_UserChoices_ARCHIVE} = X ]; then 
     
    212218    ARCHIVE=${config_UserChoices_ARCHIVE} 
    213219  else 
    214     #==================================================== 
    215     #- ARCHIVE (dedicated to large files) 
    216     ARCHIVE=/gpfsstore/rech/${DataProject}/${LOGIN} 
     220      if [ X${DataProject} = Xfor  ]; then 
     221          ARCHIVE=$STORE 
     222      else 
     223          #==================================================== 
     224          #- ARCHIVE (dedicated to large files) 
     225          ARCHIVE=/gpfsstore/rech/${DataProject}/${LOGIN} 
     226      fi 
    217227  fi 
    218228 
     
    224234    #==================================================== 
    225235    #- STORAGE (dedicated to small/medium files) 
    226     STORAGE=/gpfswork/rech/${DataProject}/${LOGIN} 
     236      if [ X${DataProject} = Xfor  ]; then 
     237          STORAGE=$WORK 
     238      else 
     239          STORAGE=/gpfswork/rech/${DataProject}/${LOGIN} 
     240      fi 
    227241  fi 
    228242 
     
    230244    #==================================================== 
    231245    #- R_OUT 
    232     R_OUT=${R_OUT:=/gpfsscratch/rech/${DataProject}/${LOGIN}}/IGCM_OUT 
    233  
     246    if [ X${DataProject} = Xfor  ]; then 
     247        R_OUT=$SCRATCH/IGCM_OUT 
     248    else 
     249        R_OUT=/gpfsscratch/rech/${DataProject}/${LOGIN}/IGCM_OUT 
     250    fi 
    234251    #==================================================== 
    235252    #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 
     
    254271  #==================================================== 
    255272  #- R_BUF (ONLY FOR double copy an scratch) 
    256   R_BUF=${R_BUF:=/gpfsscratch/rech/${DataProject}/${LOGIN}}/IGCM_OUT 
     273   
     274  if [ X${DataProject} = Xfor  ]; then 
     275      R_BUF=$SCRATCH/IGCM_OUT 
     276  else 
     277      R_BUF=/gpfsscratch/rech/${DataProject}/${LOGIN}/IGCM_OUT 
     278  fi 
    257279 
    258280  IGCM_debug_Print 1 "R_OUT has been defined = ${R_OUT}" 
Note: See TracChangeset for help on using the changeset viewer.