Changeset 646


Ignore:
Timestamp:
04/13/12 13:25:13 (12 years ago)
Author:
sdipsl
Message:
  • On SX9 basename don't work with long path. Adapt the restart tar detection mechanism to work on SX9

+ basename /scratch/cont003/p86ipsl/trusting_sx9/IPSLCM5A-LMDZ5V1.0-dev/trusting_sx9_20101020T1315/modipsl/config/IPSLCM5A/EXP00/PARAM/cosp_input_nl.txt
expr: Paren problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r631 r646  
    754754            if [ X${IsMatching} = X ] ; then 
    755755              for PotentialTarFile in $( find ${R_SAVE}/RESTART -name "${config_UserChoices_JobName}_*_restart.tar" -print ) ; do 
    756                 IsMatching=$( echo $( basename ${PotentialTarFile} ) | sed "s:^${config_UserChoices_JobName}_::" | sed "s:\.restart\.tar$::" | gawk -F_ -v restartdate=${LastPeriodDateEnd} '{if (($1 < restartdate) && ($2 >= restartdate)) {print $1"_"$2}}' ) 
     756                IsMatching=$( echo ${PotentialTarFile##*/} | sed "s:^${config_UserChoices_JobName}_::" | sed "s:\.restart\.tar$::" | gawk -F_ -v restartdate=${LastPeriodDateEnd} '{if (($1 < restartdate) && ($2 >= restartdate)) {print $1"_"$2}}' ) 
    757757                if [ ! X${IsMatching} = X ] ; then 
    758758                  TarFileFound=${PotentialTarFile} 
Note: See TracChangeset for help on using the changeset viewer.