- Timestamp:
- 08/10/12 16:53:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/find_size_pack.sh
r1822 r1851 199 199 200 200 new_period=999999 201 newpackinyear=0 201 202 202 203 for type_file in `awk '{print $0}' ${IGCM_DEM_SIMU}/info_name_file.txt` … … 216 217 # il faut donc commencer par calculer la taille du pack que l'on a fait # 217 218 newpackinyear=$(( ${year_end} - ${year_begin} )) 219 newpackinyear=$(( $newpackinyear + 1 )) 218 220 [[ ${newpackinyear} -lt 1 ]] && newpackinyear=1 219 221 … … 234 236 235 237 # on veut que la taille de pack soit de 1 2 5 10 20 50 ou 100 ans 238 # sauf si newperiod = nb annee de simul auquel cas on ne tronque pas 236 239 declare -a liste_period=( 1 2 5 10 20 50 100 ) 237 240 238 241 change=0 239 242 for i in 1 2 3 4 5 6 ; do 240 if [[ ${new_period} -lt ${liste_period[i]} && ${change} -eq 0 ]]243 if [[ ${new_period} -lt ${liste_period[i]} && ${change} -eq 0 && ${newpackinyear} -eq 0 ]] 241 244 then 242 245 new_period=${liste_period[i-1]}
Note: See TracChangeset
for help on using the changeset viewer.