Changeset 1644


Ignore:
Timestamp:
07/26/24 14:19:24 (2 months ago)
Author:
aclsce
Message:

Small fix on handling of environment variables.

Location:
branches/libIGCM_STORE_IDRIS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_STORE_IDRIS/libIGCM_comp/libIGCM_comp.ksh

    r1643 r1644  
    779779 
    780780            if [ ! X${OLDARCHIVE} = X ]; then 
    781               IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep ^/fsstor ) != X ] && echo 0 || echo 1 ) 
     781              IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep fsstor ) != X ] && echo 0 || echo 1 ) 
    782782              if [ ${IsSTOREFlag} = 0 ] ; then 
    783783                  Path_OLDOUT=$( echo ${Path_OUT} | sed "s%/lustre/fsstor/projects%/gpfsstore%" ) 
     
    788788 
    789789            if [ ! X${TMPARCHIVE} = X ]; then 
    790               IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep ^/fsstor ) != X ] && echo 0 || echo 1 ) 
     790              IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep fsstor ) != X ] && echo 0 || echo 1 ) 
    791791              if [ ${IsSTOREFlag} = 0 ] ; then 
    792792                  Path_TMPOUT=$( echo ${Path_OUT} | sed "s%/lustre/fsstor/projects%/lustre/fsnomig/ipsl/tmpstore%" ) 
     
    832832              if [ X${IsMatching} = X ] ; then 
    833833                  if ( [ ! X${OLDARCHIVE} = X ] && [ ! X${TMPARCHIVE} = X ] ) ; then 
    834                       IsSTOREFlag=$( [ X$( echo ${RestartPath} | grep ^/fsstor ) != X ] && echo 0 || echo 1 ) 
     834                      IsSTOREFlag=$( [ X$( echo ${RestartPath} | grep fsstor ) != X ] && echo 0 || echo 1 ) 
    835835                      if [ ${IsSTOREFlag} = 0 ] ; then 
    836836                          OLDRestartPath=$( echo ${RestartPath} | sed "s%/lustre/fsstor/projects%/gpfsstore%" ) 
     
    998998 
    999999          if [ ! X${OLDARCHIVE} = X ]; then 
    1000               IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep ^/fsstor ) != X ] && echo 0 || echo 1 ) 
     1000              IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep fsstor ) != X ] && echo 0 || echo 1 ) 
    10011001              if [ ${IsSTOREFlag} = 0 ] ; then 
    10021002                  Path_OLDOUT=$( echo ${Path_OUT} | sed "s%/lustre/fsstor/projects%/gpfsstore%" ) 
     
    10071007 
    10081008          if [ ! X${TMPARCHIVE} = X ]; then 
    1009               IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep ^/fsstor ) != X ] && echo 0 || echo 1 ) 
     1009              IsSTOREFlag=$( [ X$( echo ${Path_OUT} | grep fsstor ) != X ] && echo 0 || echo 1 ) 
    10101010              if [ ${IsSTOREFlag} = 0 ] ; then 
    10111011                  Path_TMPOUT=$( echo ${Path_OUT} | sed "s%/lustre/fsstor/projects%/lustre/fsnomig/ipsl/tmpstore%" ) 
  • branches/libIGCM_STORE_IDRIS/libIGCM_sys/libIGCM_sys_jeanzay.ksh

    r1643 r1644  
    190190NB_CORE_PER_NODE=40 
    191191 
    192 #==================================================== 
    193 #- set OLDARCHIVE to access OLDSTORE  
    194 OLDARCHIVE=${OLDSTORE} 
    195  
    196 #==================================================== 
    197 #- set TMPARCHIVE to access TMPSTORE  
    198 TMPARCHIVE=${TMPSTORE} 
    199  
    200192#D-#================================================== 
    201193#D-function IGCM_sys_defineArchives 
     
    225217  IGCM_debug_Print 1 "Data project for output to be used: ${DataProject}" 
    226218 
    227   #==================================================== 
     219#==================================================== 
     220#- set OLDARCHIVE to access OLDSTORE  
     221OLDARCHIVE=/gpfsstore/rech/${DataProject}/${LOGIN} 
     222 
     223#==================================================== 
     224#- set TMPARCHIVE to access TMPSTORE  
     225TMPARCHIVE=/lustre/fsnomig/ipsl/tmpstore/rech/${DataProject}/${LOGIN} 
     226 
     227#==================================================== 
    228228  #- RUN_DIR_PATH : Temporary working directory (=> TMP) 
    229229  #- DataProject = for is the dataproject for Training account at Idris  
Note: See TracChangeset for help on using the changeset viewer.