Changeset 904


Ignore:
Timestamp:
08/08/13 14:53:22 (11 years ago)
Author:
sdipsl
Message:
  • handle *Y packed files. See #134
  • whitespace-cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_create_se

    r903 r904  
    22#-Q- curie ## CURIE   TGCC/CEA ## 
    33#-Q- curie ###################### 
    4 #-Q- curie #MSUB -r SE             # Nom du job                
     4#-Q- curie #MSUB -r SE             # Nom du job 
    55#-Q- curie #MSUB -eo 
    66#-Q- curie #MSUB -n 1              # Reservation du processus 
     
    2020#-Q- ada # Nom du travail LoadLeveler 
    2121#-Q- ada # @ job_name   = SE 
    22 #-Q- ada # Fichier de sortie standard du travail        
     22#-Q- ada # Fichier de sortie standard du travail 
    2323#-Q- ada # @ output     = $(job_name).$(jobid) 
    2424#-Q- ada # Fichier de sortie d'erreur du travail 
     
    4343#-Q- titane ## TITANE   CEA ## 
    4444#-Q- titane ###################### 
    45 #-Q- titane #MSUB -r SE             # Nom du job                 
     45#-Q- titane #MSUB -r SE             # Nom du job 
    4646#-Q- titane #MSUB -eo 
    4747#-Q- titane #MSUB -n 1              # Reservation du processus 
     
    9595 
    9696#D- Flag to determine if rebuild process has been performed asynchronously 
    97 #D- Possible value true or false.  
     97#D- Possible value true or false. 
    9898#D- If true raw files has allready been patched by rebuild job 
    9999#D- If false create_ts will patch the raw files 
     
    328328    case ${config_UserChoices_PeriodLength} in 
    329329      # For Yearly simulation : 
    330       1Y|1y) 
     330      *Y|*y) 
     331        PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | sed -e 's/[yY]//' ) 
    331332        (( an = an_deb )) 
    332333        # Initialize array 
     
    336337        unset liste_file_se_tmp 
    337338        while [ ${an} -le ${an_fin} ] ; do 
    338           moisL=$( IGCM_date_DaysInMonth ${an} ${mois} ) 
    339339          # 
    340340          an4=$(printf "%04i\n" ${an} ) 
    341341          # 
    342           diy=$( IGCM_date_DaysInYear $an4 ) 
    343           afin=$( IGCM_date_AddDaysToGregorianDate ${an4}0101 $(( diy - 1 )) ) 
     342          Length=$( IGCM_date_DaysInCurrentPeriod ${an4}0101 ${config_UserChoices_PeriodLength} ) 
     343          afin=$( IGCM_date_AddDaysToGregorianDate ${an4}0101 ${Length}-1 ) 
     344          # 
    344345          date=${an4}0101_${afin} 
    345346          #set +A liste_file_se ${liste_file_se[*]} ${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
     
    347348          liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    348349          liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_${date}_${file}.nc 
    349           (( an = an + 1 )) 
     350          (( an = an + ${PeriodLengthInYears} )) 
    350351        done 
    351352        # 
     
    525526    var_unlim=$(ncdump -h ${RESULT_SE}|grep UNLIMITED| cut -d ' ' -f 1) 
    526527 
    527     # Put correct climatological axis following calendar  
     528    # Put correct climatological axis following calendar 
    528529    case ${config_UserChoices_CalendarType} in 
    529530      360d|360_day) 
     
    568569export POST_DIR; export SUBMIT_DIR; export libIGCM; export R_INIT; export R_BC; export StandAlone 
    569570export RESOL_ATM; export RESOL_OCE ; export RESOL_ICE ; export RESOL_MBG ; export RESOL_SRF ; export RESOL_SBG 
    570 export R_SAVE; export config_UserChoices_JobName; export config_UserChoices_TagName; export YEARS; export DIR_OUT  
     571export R_SAVE; export config_UserChoices_JobName; export config_UserChoices_TagName; export YEARS; export DIR_OUT 
    571572listVarEnv="POST_DIR,SUBMIT_DIR,libIGCM,R_INIT,R_BC,StandAlone,RESOL_ATM,RESOL_OCE,RESOL_ICE,RESOL_MBG,RESOL_SRF,RESOL_SBG,R_SAVE,config_UserChoices_JobName,config_UserChoices_TagName,YEARS,DIR_OUT" 
    572573export listVarEnv; 
Note: See TracChangeset for help on using the changeset viewer.