Changeset 906


Ignore:
Timestamp:
08/08/13 15:10:45 (11 years ago)
Author:
sdipsl
Message:
  • cleanup
  • whitespace-cleanup
Location:
trunk/libIGCM
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_RunChecker

    r843 r906  
    172172    echo "|===========================================================================================================|" 
    173173    printf "| JobName = ${ColExp}%-${#JobName}s${ColNon}" ${JobName} 
    174     printf "%-${len}s" ${Dum}  
     174    printf "%-${len}s" ${Dum} 
    175175    printf "run.card : ${ColExp}%-18s${ColNon}|\n" "${LastWrite}" 
    176176    echo "|-------------------------|-------------|-------------------------|-------------|-----:----------:----------|" 
     
    180180 
    181181    printf "| %-10s - %-10s | " \ 
    182            $DateBegin $DateEnd  
     182           $DateBegin $DateEnd 
    183183 
    184184    case $PeriodState in 
     
    226226    # Print rebuild and pack jobs 
    227227    # --------------------------- 
    228     for JobType in ${JobType_list[*]} ; do  
     228    for JobType in ${JobType_list[*]} ; do 
    229229      eval Date=\${${JobType}_Date[${ind}]} 
    230230      eval Status=\${${JobType}_Status[${ind}]} 
     
    506506    set -A JobType_list "${RebuildJob}" "pack_output" "pack_restart" "pack_debug" 
    507507 
    508     for JobType in ${JobType_list[*]} ; do  
     508    for JobType in ${JobType_list[*]} ; do 
    509509      typeset    name1="${JobType}_String" 
    510510      typeset    name2="${JobType}_Field" 
     
    532532    # ---------- 
    533533    NbLines=0 
    534     for JobType in ${JobType_list[*]} ; do  
     534    for JobType in ${JobType_list[*]} ; do 
    535535      eval String=\${${JobType}_String} 
    536536      eval Field=\${${JobType}_Field} 
     
    643643 
    644644fi 
    645  
  • trunk/libIGCM/AA_SE_Checker

    r837 r906  
    117117    # Debug Print 
    118118    IGCM_debug_Print 1 ${comp} 
    119     # Define component  
     119    # Define component 
    120120    IGCM_card_DefineArrayFromOption ${CARD_DIR}/config.card ListOfComponents ${comp} 
    121121    eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 
     
    175175          # 
    176176          (( countTotal = countTotal + 1 )) 
    177           IGCM_sys_TestFileArchive ${DIRECTORY}/${TestedFile} >/dev/null 2>&1  
     177          IGCM_sys_TestFileArchive ${DIRECTORY}/${TestedFile} >/dev/null 2>&1 
    178178          if [ ! $? = 0 ] ; then 
    179179            eval set +A LISTE_FILE_${comp}_${an_deb} \$\{LISTE_FILE_${comp}_${an_deb}[*]} ${TestedFile} 
     
    186186        (( i=i+3 )) # to explore file list 
    187187      done            # until [ $i -eq $NbFiles ] 
    188     fi                  # [ X${FileName0} != X${NULL_STR} ]  
     188    fi                  # [ X${FileName0} != X${NULL_STR} ] 
    189189 
    190190    [ $localcountBad = 0 ] || IGCM_debug_Print 1 "$localcountBad file(s) missing for ${comp} : " $( eval echo \${LISTE_FILE_${comp}_${an_deb}[*]} ) 
  • trunk/libIGCM/AA_SaveSourceModifications

    r832 r906  
    1414#-Q- titane ## TITANE   CEA ## 
    1515#-Q- titane ###################### 
    16 #-Q- titane #MSUB -r SaveSource     # Nom du job                 
     16#-Q- titane #MSUB -r SaveSource     # Nom du job 
    1717#-Q- titane #MSUB -n 1              # Reservation du processus 
    1818#-Q- titane #MSUB -T 1800           # Limite de temps elapsed du job 
     
    3131#-Q- lxiv8 #PBS -m a 
    3232#-Q- lxiv8 #PBS -j oe 
    33 #-Q- lxiv8 #PBS -q test   
     33#-Q- lxiv8 #PBS -q test 
    3434#-Q- lxiv8 #PBS -o SaveSource.$$ 
    3535#-Q- lxiv8 #PBS -S /bin/ksh 
     
    9393ERR_script_diff_model=$( cat out_script_diff_model | grep "script_diff_model return [0-9]*" | sed -e "s&script_diff_model return *\([0-9]*\)&\1&" ) 
    9494 
    95 if [ ! X${ERR_script_diff_model} = X0 ] ; then  
     95if [ ! X${ERR_script_diff_model} = X0 ] ; then 
    9696    echo 'Error in script_diff_model :' ${ERR_script_diff_model} 
    9797    exit ${ERR_script_diff_model} 
     
    100100MODIPSL_SAVE_NAME=$( cat out_script_diff_model | grep "SAVE directory in" | sed -e "s&SAVE directory in  &&" ) 
    101101MODIPSL_SAVE=${MODIPSL}/tmp/${MODIPSL_SAVE_NAME} 
    102 if ( [ X${MODIPSL_SAVE_NAME} = X ] || [ ! -d ${MODIPSL_SAVE} ] ) ; then  
     102if ( [ X${MODIPSL_SAVE_NAME} = X ] || [ ! -d ${MODIPSL_SAVE} ] ) ; then 
    103103    echo 'Error in SaveSourceModifications: no MODIPSL_SAVE_NAME avaible. We STOP' 
    104104    exit 1 
  • trunk/libIGCM/AA_additionnal

    r880 r906  
    22#-Q- curie ## CURIE   TGCC/CEA ## 
    33#-Q- curie ###################### 
    4 #-Q- curie #MSUB -r ATL_ADD        # Nom du job                
     4#-Q- curie #MSUB -r ATL_ADD        # 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   = ATL_ADD 
    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 
     
    7373 
    7474#D- Task type (computing or post-processing) 
    75 TaskType=post-processing  
     75TaskType=post-processing 
    7676 
    7777######################################################################### 
     
    106106 
    107107# -------------------------------------------- 
    108 # Insert your commands between III...III lines  
     108# Insert your commands between III...III lines 
    109109# and precise produced directories to save 
    110110# IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 
     
    120120 
    121121# Put ferret journal files together 
    122 for file in $( ls ${R_ATLAS}/ADD/*/*jnl ) ; do   
    123     echo -e "\n\n################################" ;  
    124     echo -e "$file\n" ; cat $file ;  
     122for file in $( ls ${R_ATLAS}/ADD/*/*jnl ) ; do 
     123    echo -e "\n\n################################" ; 
     124    echo -e "$file\n" ; cat $file ; 
    125125done  > ${R_ATLAS}/ADD/allferretscript.txt 
    126126 
  • trunk/libIGCM/AA_atlas_LMDZ

    r903 r906  
    132132 
    133133# -------------------------------------------- 
    134 # Insert your commands between III...III lines  
     134# Insert your commands between III...III lines 
    135135# and precise produced directories to save 
    136136# IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 
     
    148148 
    149149# Put ferret journal files together 
    150 for file in $( ls ${R_ATLAS}/ATM/*/*jnl ) ; do   
    151     echo -e "\n\n################################" ;  
    152     echo -e "$file\n" ; cat $file ;  
     150for file in $( ls ${R_ATLAS}/ATM/*/*jnl ) ; do 
     151    echo -e "\n\n################################" ; 
     152    echo -e "$file\n" ; cat $file ; 
    153153done  > ${R_ATLAS}/ATM/allferretscript.txt 
    154154 
  • trunk/libIGCM/AA_atlas_ORCA_LIM

    r903 r906  
    6666 
    6767#set -eu 
    68 #set -vx  
     68#set -vx 
    6969 
    7070date 
     
    9090######################################################################## 
    9191 
    92 #set -vx  
     92#set -vx 
    9393 
    9494IGCM_sys_MkdirWork ${RUN_DIR_PATH} 
     
    156156# Put ferret journal files together 
    157157for file in $( ls ${R_ATLAS}/OCE_T/*/*jnl ) ; do 
    158   echo -e "\n\n################################" ;  
    159   echo -e "$file\n" ; cat $file ;  
     158  echo -e "\n\n################################" ; 
     159  echo -e "$file\n" ; cat $file ; 
    160160done  > ${R_ATLAS}/OCE_T/allferretscript.txt 
    161161 
    162 for file in $( ls ${R_ATLAS}/OCE_U/*/*jnl ) ; do   
    163   echo -e "\n\n################################" ;  
    164   echo -e "$file\n" ; cat $file ;  
     162for file in $( ls ${R_ATLAS}/OCE_U/*/*jnl ) ; do 
     163  echo -e "\n\n################################" ; 
     164  echo -e "$file\n" ; cat $file ; 
    165165done  > ${R_ATLAS}/OCE_U/allferretscript.txt 
    166166 
    167 for file in $( ls ${R_ATLAS}/OCE_V/*/*jnl ) ; do   
    168   echo -e "\n\n################################" ;  
    169   echo -e "$file\n" ; cat $file ;  
     167for file in $( ls ${R_ATLAS}/OCE_V/*/*jnl ) ; do 
     168  echo -e "\n\n################################" ; 
     169  echo -e "$file\n" ; cat $file ; 
    170170done  > ${R_ATLAS}/OCE_V/allferretscript.txt 
    171171 
    172 for file in $( ls ${R_ATLAS}/OCE/*/*jnl ) ; do   
    173   echo -e "\n\n################################" ;  
    174   echo -e "$file\n" ; cat $file ;  
     172for file in $( ls ${R_ATLAS}/OCE/*/*jnl ) ; do 
     173  echo -e "\n\n################################" ; 
     174  echo -e "$file\n" ; cat $file ; 
    175175done  > ${R_ATLAS}/OCE/allferretscript.txt 
    176176 
    177 for file in $( ls ${R_ATLAS}/ICE/*/*jnl ) ; do   
    178   echo -e "\n\n################################" ;  
    179   echo -e "$file\n" ; cat $file ;  
     177for file in $( ls ${R_ATLAS}/ICE/*/*jnl ) ; do 
     178  echo -e "\n\n################################" ; 
     179  echo -e "$file\n" ; cat $file ; 
    180180done  > ${R_ATLAS}/ICE/allferretscript.txt 
    181181 
     
    197197 
    198198IGCM_sys_Rm -Rf ATLAS 
    199 IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_[TUVW].nc  
     199IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_[TUVW].nc 
    200200IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_icemod.nc 
    201201# WHILE WAITING FOR A MORE GENERIC SOLUTION 
    202202if ( [ ${config_UserChoices_TagName} = "IPSLCM5" ] || [ ${config_UserChoices_TagName} = "IPSLCM5A" ] || [ ${config_UserChoices_TagName} = "IPSLCM5A-MR" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ] ) ; then 
    203   IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_diaptr.nc ;  
     203  IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_diaptr.nc ; 
    204204fi 
    205205 
  • trunk/libIGCM/AA_atlas_ORCHIDEE

    r903 r906  
    22#-Q- curie ## CURIE   TGCC/CEA ## 
    33#-Q- curie ###################### 
    4 #-Q- curie #MSUB -r ATL_ORCH       # Nom du job                
     4#-Q- curie #MSUB -r ATL_ORCH       # 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   = ATL_ORCH 
    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 ATL_ORCH       # Nom du job                 
     45#-Q- titane #MSUB -r ATL_ORCH       # Nom du job 
    4646#-Q- titane #MSUB -eo 
    4747#-Q- titane #MSUB -n 1              # Reservation du processus 
     
    9999######################################################################## 
    100100 
    101 #set -vx  
     101#set -vx 
    102102 
    103103IGCM_sys_MkdirWork ${RUN_DIR_PATH} 
     
    142142 
    143143# -------------------------------------------- 
    144 # Insert your commands between III...III lines  
     144# Insert your commands between III...III lines 
    145145# and precise produced directories to save 
    146146# IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 
     
    155155 
    156156# Put ferret journal files together 
    157 for file in $( ls ${R_ATLAS}/SRF/*/*jnl ) ; do   
    158     echo -e "\n\n################################" ;  
    159     echo -e "$file\n" ; cat $file ;  
     157for file in $( ls ${R_ATLAS}/SRF/*/*jnl ) ; do 
     158    echo -e "\n\n################################" ; 
     159    echo -e "$file\n" ; cat $file ; 
    160160done  > ${R_ATLAS}/SRF/allferretscript.txt 
    161161 
  • trunk/libIGCM/AA_atlas_PISCES

    r903 r906  
    22#-Q- curie ## CURIE   TGCC/CEA ## 
    33#-Q- curie ###################### 
    4 #-Q- curie #MSUB -r ATL_PIS        # Nom du job                
     4#-Q- curie #MSUB -r ATL_PIS        # 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   = ATL_PIS 
    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 
     
    6666 
    6767#set -eu 
    68 #set -vx  
     68#set -vx 
    6969 
    7070date 
     
    9090######################################################################## 
    9191 
    92 #set -vx  
     92#set -vx 
    9393 
    9494IGCM_sys_MkdirWork ${RUN_DIR_PATH} 
  • trunk/libIGCM/AA_clean_month

    r896 r906  
    7373 
    7474#================================== 
    75 # Is the pack active  
     75# Is the pack active 
    7676if ( [ ! X${config_Post_PackFrequency} = X${NULL_STR} ] && [ ! X${config_Post_PackFrequency} = XNONE ] ) ; then 
    7777  Pack=true 
     
    8181[ $? != 0 ] && IGCM_debug_Exit "IGCM_sys_TestDirArchive" 
    8282 
    83 if [ ! -f ${SUBMIT_DIR}/run.card ]; then  
     83if [ ! -f ${SUBMIT_DIR}/run.card ]; then 
    8484  echo "You seem NOT to have a run.card in this directory !!" 
    8585  echo "This script will fail because it doesn't know what to do without run.card available." 
     
    121121 
    122122  IGCM_debug_Print 1 "Number of files to be erased : ${CountListFiles}." 
    123   if ( [ ${CountListFiles} -gt 0 ] || [ ${CountListFilesBuf} -gt 0 ] ) ; then  
     123  if ( [ ${CountListFiles} -gt 0 ] || [ ${CountListFilesBuf} -gt 0 ] ) ; then 
    124124    for file in ${ListFiles[@]} ; do 
    125125      IGCM_debug_Print 2 -e "\033[1;31m ${file}\033[m" 
     
    149149  fi 
    150150 
    151   if [ ${CountRebuildDir} -gt 0 ] ; then  
     151  if [ ${CountRebuildDir} -gt 0 ] ; then 
    152152    IGCM_debug_Print 1 "Number of REBUILD Dirs to be erased : ${CountRebuildDir}." 
    153153    for Dir in ${RebuildDir[@]} ; do 
  • trunk/libIGCM/AA_clean_year

    r832 r906  
    7373 
    7474#================================== 
    75 # Is the pack active  
     75# Is the pack active 
    7676if ( [ ! X${config_Post_PackFrequency} = X${NULL_STR} ] && \ 
    7777     [ ! X${config_Post_PackFrequency} = XNONE ] ) ; then 
     
    8282[ $? != 0 ] && IGCM_debug_Exit "IGCM_sys_TestDirArchive" 
    8383 
    84 if [ ! -f ${SUBMIT_DIR}/run.card ]; then  
     84if [ ! -f ${SUBMIT_DIR}/run.card ]; then 
    8585    echo "You seem NOT to have a run.card in this directory !!" 
    8686    echo "This script will fail because it doesn't know what to do without run.card available." 
     
    107107 
    108108if [ $# == 1 ] ; then 
    109   if [ ${#1} != 4 ] ; then  
     109  if [ ${#1} != 4 ] ; then 
    110110    echo "You must give a year (SSAA) as argument." 
    111111    exit 1 
     
    157157 
    158158 
    159   if ( [ ${CountListFiles} -gt 0 ] || [ ${CountListFilesBuf} -gt 0 ] ) ; then  
     159  if ( [ ${CountListFiles} -gt 0 ] || [ ${CountListFilesBuf} -gt 0 ] ) ; then 
    160160    IGCM_debug_Print 1 "Number of files to be erased from ${R_SAVE} : ${CountListFiles}." 
    161161    for file in ${ListFiles[@]} ; do 
     
    188188  fi 
    189189 
    190   if [ ${CountRebuildDir} -gt 0 ] ; then  
     190  if [ ${CountRebuildDir} -gt 0 ] ; then 
    191191    IGCM_debug_Print 1 "Number of REBUILD Dirs to be erased : ${CountRebuildDir}." 
    192192    for Dir in ${RebuildDir[@]} ; do 
     
    265265      else 
    266266        # Update run.card 
    267         cp ${SUBMIT_DIR}/run.card ${SUBMIT_DIR}/run.card.old  
     267        cp ${SUBMIT_DIR}/run.card ${SUBMIT_DIR}/run.card.old 
    268268        IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "OnQueue" 
    269269        IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration CumulPeriod ${NewCumulPeriod} 
  • trunk/libIGCM/AA_create_multi_se

    r903 r906  
    309309    (( an = an_multi_deb )) 
    310310    # Initialize array 
    311     #set -A liste_file_se 
    312     #set -A liste_file_se_tmp 
    313311    unset liste_file_se 
    314312    unset liste_file_se_tmp 
     
    319317      (( an_fin = an_deb + freq - 1 )) 
    320318      date=${an_deb}_${an_fin} 
    321       #set +A liste_file_se ${liste_file_se[*]} ${file_path}${config_UserChoices_JobName}_${date}_${file}.nc 
    322       #set +A liste_file_se_tmp ${liste_file_se_tmp[*]} ${config_UserChoices_JobName}_${date}_${file}.nc 
     319      # 
    323320      liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_SE_${date}_${file}.nc 
    324321      liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_SE_${date}_${file}.nc 
     
    363360    IGCM_sys_Rm ${OUT_SE[*]} 
    364361 
    365     # Put correct climatological axis following calendar  
     362    # Put correct climatological axis following calendar 
    366363    case ${config_UserChoices_CalendarType} in 
    367364      360d|360_day) 
  • trunk/libIGCM/AA_create_ts

    r903 r906  
    22#-Q- curie ## CURIE   TGCC/CEA ## 
    33#-Q- curie ###################### 
    4 #-Q- curie #MSUB -r TS             # Nom du job                
     4#-Q- curie #MSUB -r TS             # Nom du job 
    55#-Q- curie #MSUB -eo 
    66#-Q- curie #MSUB -n 1              # Reservation du processus 
     
    4343#-Q- titane ## TITANE   CEA ## 
    4444#-Q- titane ###################### 
    45 #-Q- titane #MSUB -r TS             # Nom du job                 
     45#-Q- titane #MSUB -r TS             # Nom du job 
    4646#-Q- titane #MSUB -eo 
    4747#-Q- titane #MSUB -n 1              # Reservation du processus 
     
    107107 
    108108#D- Flag to determine if rebuild process has been performed asynchronously 
    109 #D- Possible value true or false.  
     109#D- Possible value true or false. 
    110110#D- If true raw files has allready been patched by rebuild job 
    111111#D- If false create_ts will patch the raw files 
     
    167167 
    168168# Useful cleaning function 
    169 MENAGE ()  
     169MENAGE () 
    170170{ 
    171171  [ -f $3 ] && ( IGCM_sys_RshArchive rm -f $1/$2 ;) 
     
    478478    IGCM_sys_Cd ${RUN_DIR_PATH}/${comp} 
    479479    # 
    480     #set -A liste_file 
    481480    unset liste_file 
    482481    # 
     
    502501      for var in $( eval echo \${LISTE_VARS_${file}[*]} ) ; do 
    503502        # 
    504         #set +A liste_file ${liste_file[*]} ${file_path}/${TS_Dir}/${config_UserChoices_JobName}_${date}_${FlagDir}_${var}.nc 
    505503        liste_file[${#liste_file[*]}]=${file_path}/${TS_Dir}/${config_UserChoices_JobName}_${date}_${FlagDir}_${var}.nc 
    506504        # 
     
    548546 
    549547if [ ${NBRE_FILE_TOT} -le ${UNIX_MAX_LIMIT} ] ; then 
    550   NBRE_TOUR=1  
     548  NBRE_TOUR=1 
    551549elif [ ${NBRE_FILE_TOT}%${UNIX_MAX_LIMIT} -eq 0 ] ; then 
    552   let NBRE_TOUR=${NBRE_FILE_TOT}/${UNIX_MAX_LIMIT}  
     550  let NBRE_TOUR=${NBRE_FILE_TOT}/${UNIX_MAX_LIMIT} 
    553551else 
    554552  let NBRE_TOUR=${NBRE_FILE_TOT}/${UNIX_MAX_LIMIT}+1 
     
    557555CURRENT_LOOP=1 
    558556# THIS LOOP GIVES PARAMETERS FOR THE DATE'S LOOP ie : DATE_COURANTE, DATE_FIN. 
    559 # WE HAVE 3 LEVELS  
     557# WE HAVE 3 LEVELS 
    560558#    - LEVEL 1 : JUST ONE LOOP TO COMPLETE 
    561559#    - LEVEL 2 : WE ARE IN THE "DEEP" LOOP 
     
    564562while [ ${CURRENT_LOOP} -le  ${NBRE_TOUR} ] ; do 
    565563 
    566   if [ ${NBRE_FILE_TOT} -le ${UNIX_MAX_LIMIT} ] ; then  
     564  if [ ${NBRE_FILE_TOT} -le ${UNIX_MAX_LIMIT} ] ; then 
    567565    # - LEVEL 1 : JUST ONE LOOP TO COMPLETE 
    568566    NBRE_FILE_LOOP=${NBRE_FILE_TOT} 
     
    582580 
    583581    LEVEL=1 
    584     DEPOT="TRUE"        
     582    DEPOT="TRUE" 
    585583  elif [ ${CURRENT_LOOP} -ne  ${NBRE_TOUR} ] ; then 
    586584    # - LEVEL 2 : WE ARE IN THE "DEEP" LOOP 
     
    659657 
    660658      # Initialize array 
    661       #set -A liste_file 
    662       #set -A liste_file_tmp 
    663659      unset liste_file 
    664660      unset liste_file_tmp 
     
    676672        Length2=$( IGCM_date_DaysInNextPeriod ${DATE_LOOP} ${config_UserChoices_PeriodLength} ) 
    677673        DATE_LOOP=$( IGCM_date_AddDaysToGregorianDate ${DATE_LOOP} ${Length2} ) 
    678  
    679         #set +A liste_file ${liste_file[*]} ${file_path}${config_UserChoices_JobName}_${DATE_TAB}_${file}.nc 
    680         #set +A liste_file_tmp ${liste_file_tmp[*]} ${config_UserChoices_JobName}_${DATE_TAB}_${file}.nc 
    681674 
    682675        IGCM_sys_TestFileArchive ${file_path}${config_UserChoices_JobName}_${DATE_TAB}_${file}.nc 
     
    712705      if [ ! X${RebuildFrequency} = Xtrue ] ; then 
    713706        if [ X$( eval echo \${LISTE_PATCHES_${file}[0]} ) !=  X${NULL_STR} ]; then 
    714           for file_t in $( eval echo ${liste_file_tmp[*]} ); do          
     707          for file_t in $( eval echo ${liste_file_tmp[*]} ); do 
    715708            for Patch in $( eval echo \${LISTE_PATCHES_${file}[*]} ); do 
    716709              IGCM_${Patch} ${file_t} 
  • trunk/libIGCM/AA_move-and-rename

    r832 r906  
    1717# Change SpaceName/ExperimentName/JobName names and path for a simulation during the run. 
    1818# !! Be careful that the job is suspended before using this script !! 
    19 # You may call this script with those four variables already defined, or modify directly  
     19# You may call this script with those four variables already defined, or modify directly 
    2020# default values under here : 
    2121 
    22 # New Name Space of this experience  
     22# New Name Space of this experience 
    2323NEW_SpaceName=${NEW_SpaceName:=DEVT} 
    2424 
     
    112112  fi 
    113113  IGCM_debug_Print 3 "MOVE_and_RENAME_files all : ${VAR1}" 
    114   IGCM_debug_Print 3 "    to     ${FILE_OUT}."  
     114  IGCM_debug_Print 3 "    to     ${FILE_OUT}." 
    115115 
    116116  (( ifile = 0 )) 
     
    119119    RET=$? 
    120120    (( ifile = ifile + 1 )) 
    121   done     
     121  done 
    122122 
    123123  IGCM_debug_PopStack "MOVE_and_RENAME_files" 
     
    169169fi 
    170170 
    171 # We temporary change ${run_Configuration_PeriodState} to  
     171# We temporary change ${run_Configuration_PeriodState} to 
    172172if [ -f ${SUBMIT_DIR}/run.card ] ; then 
    173173  IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/run.card Configuration PeriodState 
  • trunk/libIGCM/AA_rebuild_fromArchive

    r880 r906  
    22#-Q- curie ## CURIE   TGCC/CEA ## 
    33#-Q- curie ###################### 
    4 #-Q- curie #MSUB -r REBUILDARCH    # Nom du job                
     4#-Q- curie #MSUB -r REBUILDARCH    # Nom du job 
    55#-Q- curie #MSUB -eo 
    66#-Q- curie #MSUB -n 1              # Reservation du processus 
     
    105105RebuildFromArchive=${RebuildFromArchive:=true} 
    106106 
    107 #D- Directory where files we need to rebuild are store  
     107#D- Directory where files we need to rebuild are store 
    108108#D- Default : value from AA_job if any 
    109109#D- if RebuildFromArchive=true REBUILD_DIR=${DMFDIR}/IGCM_OUT/.../JobName/TMP 
  • trunk/libIGCM/AA_rebuild_fromWorkdir

    r880 r906  
    105105RebuildFromArchive=${RebuildFromArchive:=false} 
    106106 
    107 #D- Directory where files we need to rebuild are store  
     107#D- Directory where files we need to rebuild are store 
    108108#D- Default : value from AA_job if any 
    109109#D- if RebuildFromArchive=true REBUILD_DIR=${DMFDIR}/IGCM_OUT/.../JobName/TMP 
Note: See TracChangeset for help on using the changeset viewer.