Changeset 905


Ignore:
Timestamp:
08/08/13 15:02:37 (11 years ago)
Author:
sdipsl
Message:

-cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_create_se

    r904 r905  
    332332        (( an = an_deb )) 
    333333        # Initialize array 
    334         #set -A liste_file_se 
    335         #set -A liste_file_se_tmp 
    336334        unset liste_file_se 
    337335        unset liste_file_se_tmp 
     
    340338          an4=$(printf "%04i\n" ${an} ) 
    341339          # 
    342           Length=$( IGCM_date_DaysInCurrentPeriod ${an4}0101 ${config_UserChoices_PeriodLength} ) 
    343           afin=$( IGCM_date_AddDaysToGregorianDate ${an4}0101 ${Length}-1 ) 
     340          diy=$( IGCM_date_DaysInCurrentPeriod ${an4}0101 ${config_UserChoices_PeriodLength} ) 
     341          afin=$( IGCM_date_AddDaysToGregorianDate ${an4}0101 $(( diy - 1 )) ) 
    344342          # 
    345343          date=${an4}0101_${afin} 
    346           #set +A liste_file_se ${liste_file_se[*]} ${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    347           #set +A liste_file_se_tmp ${liste_file_se_tmp[*]} ${config_UserChoices_JobName}_${date}_${file}.nc 
     344          # 
    348345          liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    349346          liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_${date}_${file}.nc 
     
    396393          (( an = an_deb )) 
    397394          # Initialize array 
    398           #set -A liste_file_se 
    399           #set -A liste_file_se_tmp 
    400395          unset liste_file_se 
    401396          unset liste_file_se_tmp 
     
    406401            # 
    407402            date=${an4}${mois}01_${an4}${mois}${moisL} 
    408             #set +A liste_file_se ${liste_file_se[*]} ${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    409             #set +A liste_file_se_tmp ${liste_file_se_tmp[*]} ${config_UserChoices_JobName}_${date}_${file}.nc 
     403            # 
    410404            liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    411405            liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_${date}_${file}.nc 
     
    451445          (( an = an_deb )) 
    452446          # Initialize array 
    453           #set -A liste_file_se 
    454           #set -A liste_file_se_tmp 
    455447          unset liste_file_se 
    456448          unset liste_file_se_tmp 
     
    471463              day_end=$( IGCM_date_AddDaysToGregorianDate ${day_beg} ${length_d} ) 
    472464              date=${an4}${mois}${day_beg}_${an4}${mois}${day_end} 
    473               #set +A liste_file_se ${liste_file_se[*]} ${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    474               #set +A liste_file_se_tmp ${liste_file_se_tmp[*]} ${config_UserChoices_JobName}_${date}_${file}.nc 
     465              # 
    475466              liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    476467              liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_${date}_${file}.nc 
Note: See TracChangeset for help on using the changeset viewer.