Changeset 1626


Ignore:
Timestamp:
02/05/24 15:06:11 (2 months ago)
Author:
jgipsl
Message:

Correction of the case when ChunkJob2D or ChunkJob3D is set to OFF. This also avoids error when the list is empty. Bug found by Lucas Bastien.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_TimeSeries_Checker

    r1603 r1626  
    216216            if ( [ $( eval echo \${${compname}_${flag_post}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] || \ 
    217217              [ ${chunck_size} = OFF ] ) ; then 
    218               #IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}" 
    219               #(( i=i+3 )) 
    220                 (( i_ = i+1 )) 
    221                 eval Testvar_=\${${ListFilesName}[$i_]} > /dev/null 2>&1 
    222                 eval Testvar=${Testvar_} 
    223                 if [[ ${Testvar} =~ [0-9][DMY]$ ]] ; then 
    224                     (( i = i+4 )) 
    225                 else 
    226                     (( i = i+3 )) 
    227                 fi           
     218              IGCM_debug_Print 2 "Empty TS : ${compname}_${flag_post}_TimeSeriesVars${Dimension}" 
    228219              continue 
    229220            fi 
Note: See TracChangeset for help on using the changeset viewer.