Changeset 517 for branches


Ignore:
Timestamp:
11/08/11 17:07:16 (12 years ago)
Author:
sdipsl
Message:

Avoid troubleshooting when ${R_SAVE}/${comp}/Analyse/${TS_Dir} does not exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_MPI_OpenMP/AA_TimeSeries_Checker

    r475 r517  
    276276                                TestedFile=${config_UserChoices_JobName}_${ChunckDebut}_${ChunckFin}_${FlagDir}_${var}.nc 
    277277                                # 
    278                                 Candidat=$( find ${DIRECTORY} -name "${config_UserChoices_JobName}_${ChunckDebut}_*_${FlagDir}_${var}.nc" ) 
     278                                if [ -d ${DIRECTORY} ] ; then 
     279                                    Candidat=$( find ${DIRECTORY} -name "${config_UserChoices_JobName}_${ChunckDebut}_*_${FlagDir}_${var}.nc" ) 
     280                                else 
     281                                    Candidat="" 
     282                                fi 
    279283                                # 
    280284                                BestCandidat=${ChunckDebut} 
Note: See TracChangeset for help on using the changeset viewer.