Changeset 2268 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Jun 9, 2017 10:34:09 AM (8 years ago)
Author:
raasch
Message:

bugfix for calculating cycle numbers for output files in r2261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r2262 r2268  
    2727# -----------------
    2828# $Id$
     29# bugfix for calculating cycle numbers for output files in r2261
     30#
     31# 2262 2017-06-08 14:52:23Z raasch
    2932# bugfix for r2261
    3033#
     
    14041407                # check if there is an extension
    14051408             extension=${basefilename##*.}
    1406              if [[ "$extension" = "$extin[$i]" ]]
     1409             if [[ "$extension" = "${extout[$i]}" ]]
    14071410             then
    1408                 basefilename=${basefilename&.*}
     1411                basefilename=${basefilename%.*}
    14091412             fi
    14101413
     
    14231426             fi
    14241427
    1425 #             cycle=$(echo $zeile | cut -f2 -d".")
    1426 #             if [[ "$cycle" = "$zeile"  ||  "$cycle" = ${extout[$i]} ]]
    1427 #             then
    1428 #                (( icycle = 1 ))
    1429 #             else
    1430 #                (( icycle = $cycle + 1 ))
    1431 #             fi
    1432 #             if (( icycle > maxcycle ))
    1433 #             then
    1434 #                (( maxcycle = icycle ))
    1435 #             fi
    14361428          done <filelist
    14371429          rm filelist
     
    14601452       
    14611453       (( cycnum[$i] = maxcycle ))
     1454       echo "### file \"$filename\" will get cycle ${cycnum[$i]}"
    14621455       pathout[$i]=$filename
    14631456
Note: See TracChangeset for help on using the changeset viewer.