Changeset 1725


Ignore:
Timestamp:
05/15/12 17:01:37 (12 years ago)
Author:
acosce
Message:

Correct a bug in find_size_pack (script ccrt to tgcc)
there is no need to use month for calculate the period pack length.
If month=08 or 09 it's make a bug with the mathematic operator ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/find_size_pack.sh

    r1709 r1725  
    203203        # Dans ce cas la il n'y avait pas assez de fichiers pour remplir une periode complete # 
    204204        # il faut donc commencer par calculer la taille du pack que l'on a fait # 
    205         yearnewpack=$((    ${year_end}  - ${year_begin}        )) 
    206         monthnewpack=$((   ${month_end} - ${month_begin} + 1   )) 
    207         newpackinmonth=$(( ${yearnewpack}*12 + ${monthnewpack} )) 
    208         newpackinyear=$((  ${newpackinmonth}/12                )) 
     205        newpackinyear=$((    ${year_end}  - ${year_begin}        )) 
    209206        [[ ${newpackinyear} -lt 1 ]] && newpackinyear=1 
    210207         
Note: See TracChangeset for help on using the changeset viewer.