Changeset 1101 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Feb 17, 2013 10:20:21 AM (12 years ago)
Author:
raasch
Message:

mrun script now running under bash; small adjustment for lckyuh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r1100 r1101  
    1 #!/bin/ksh
     1#!/bin/bash
    22
    33# mrun - script for running PALM jobs
     
    2222# Current revisions:
    2323# ------------------
    24 #
     24# script now running under bash instead of ksh, which required small adjustments
     25# (output formatting with printf instead "typeset -L/-R", print replaced by echo,
     26# read from stdin),
     27# cross comilername on lckyuh compute nodes replaced by real compiler name
    2528#
    2629# Former revisions:
     
    177180 usern=$LOGNAME
    178181 use_openmp=false
     182 version="MRUN  2.0 Rev$Rev$"
    179183 working_directory=`pwd`
    180184 TOPT=""
     
    183187
    184188 typeset -i  iec=0 iic=0 iin=0 ioc=0 iout=0 memory=0 stagein_anz=0 stageout_anz=0
    185  typeset -i  cputime i ii iia iii iio icycle inode ival jobges jobsek maxcycle minuten nodes pes sekunden tp1
    186 
    187  typeset  -R30 calltime
    188  typeset  -L20 spalte1
    189  typeset  -L40 spalte2
    190  typeset  -L60 spalte3
    191  typeset  -L35 string1=`date`
    192  typeset  -L12 string2=$usern
    193  typeset  -L12 string3=$localhost_realname
    194  typeset  -L12 string4
    195  typeset  -L12 string5
    196  typeset  -L30 version="MRUN  2.0 Rev$Rev$"
     189 typeset -i  cputime i ii iia iii iio icycle inode ival jobges jobsek last_char maxcycle minuten nodes pes sekunden tp1
     190
    197191
    198192
     
    225219#
    226220#             # EINTRAG IN DIE STATISTIK-DATEI
    227 #          string4=$host
    228 #          string5=$locat
     221#          string1=`date`                  #-L35
     222#          string2=$usern                  #-L12
     223#          string3=$localhost_realname     #-L12
     224#          string4=$host                   #-L12
     225#          string5=$locat                  #-L12
    229226#          if [[ "$job_on_file" = ""  &&  $locat != control_c  &&  $locat != user_abort ]]
    230227#          then
     
    251248             eval  ${err_command[$i]}
    252249          done
    253           if [[ -n $interpreted_config_file ]]  then
     250          if [[ -n $interpreted_config_file ]]
     251          then
    254252             rm -rf  $interpreted_config_file
    255253          fi
    256           if [[ -n .mrun_environment ]]  then
     254          if [[ -n .mrun_environment ]]
     255          then
    257256             rm -rf  .mrun_environment
    258257          fi
     
    366365    # EVTL. POSITIONSPARAMETER EINLESEN
    367366    # ZUR ZEIT GIBT ES NUR DEN PARAMETER ? (=KURZINFO)
    368  shift OPTIND-1
    369 
     367 (( to_shift = $OPTIND - 1 ))
     368 shift $to_shift
    370369
    371370    # KURZE AUFRUFBESCHREIBUNG WIRD HIER AUSGEGEBEN
     
    11991198       while  read zeile
    12001199       do
    1201           cycle=$(print $zeile | cut -f2 -d".")
     1200          cycle=$(echo $zeile | cut -f2 -d".")
    12021201          if [[ "$cycle" = "$zeile" ]]
    12031202          then
     
    13231322          while  read zeile
    13241323          do
    1325              cycle=$(print $zeile | cut -f2 -d".")
     1324             cycle=$(echo $zeile | cut -f2 -d".")
    13261325             if [[ "$cycle" = "$zeile"  ||  "$cycle" = ${extout[$i]} ]]
    13271326             then
     
    20001999 printf "\n"
    20012000# [[ $silent = false ]]  &&  clear
    2002  printf "#--------------------------------------------------------------# \n"
    2003  printf "| $version$calltime | \n"
    2004  printf "|                                                              | \n"
     2001 printf "#------------------------------------------------------------------------# \n"
     2002 printf "| %-35s%35s | \n" "$version" "$calltime"
     2003 printf "|                                                                        | \n"
    20052004 spalte1="called on:"; spalte2=$localhost_realname
    2006  printf "| $spalte1$spalte2 | \n"
     2005 printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    20072006 if [[ $local_compile = false ]]
    20082007 then
     
    20162015    spalte1="compiling test only!"; spalte2=""
    20172016 fi
    2018  printf "| $spalte1$spalte2 | \n"
     2017 printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    20192018 if [[ -n $numprocs ]]
    20202019 then
    20212020    spalte1="number of PEs:"; spalte2=$numprocs
    2022     printf "| $spalte1$spalte2 | \n"
     2021    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    20232022 fi
    20242023 if [[ -n $tasks_per_node ]]
    20252024 then
    20262025    spalte1="tasks per node:"; spalte2="$tasks_per_node (number of nodes: $nodes)"
    2027     printf "| $spalte1$spalte2 | \n"
     2026    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    20282027 fi
    20292028 if [[ $maximum_parallel_io_streams != $numprocs ]]
    20302029 then
    20312030    spalte1="max par io streams:"; spalte2="$maximum_parallel_io_streams"
    2032     printf "| $spalte1$spalte2 | \n"
     2031    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    20332032 fi
    20342033 if [[ $use_openmp = true ]]
    20352034 then
    20362035    spalte1="threads per task:"; spalte2="$threads_per_task"
    2037     printf "| $spalte1$spalte2 | \n"
    2038  fi
    2039  printf "|                                                              | \n"
     2036    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2037 fi
     2038 printf "|                                                                        | \n"
    20402039 if [[ $do_compile = true ]]
    20412040 then
    20422041    if [[ "$mopts" != "" ]]
    20432042    then
    2044        spalte1="make options:"; spalte2=$mopts
    2045        printf "| $spalte1$spalte2 | \n"
    2046        zeile=$(echo "$mopts" | cut -c41-)
     2043       spalte1="make options:"; spalte2=$(echo "$mopts" | cut -c-45)
     2044       printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2045       zeile=$(echo "$mopts" | cut -c46-)
    20472046       while [[ "$zeile" != "" ]]
    20482047       do
    20492048          spalte1=""
    2050           spalte2=$zeile
    2051           printf "| $spalte1$spalte2 | \n"
    2052           zeile=$(echo "$zeile" | cut -c41-)
     2049          spalte2=$(echo "$zeile" | cut -c-45)
     2050          printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2051          zeile=$(echo "$zeile" | cut -c46-)
    20532052       done
    20542053    fi
    20552054
    2056     spalte1="cpp directives:"; spalte2=$cpp_options
    2057     printf "| $spalte1$spalte2 | \n"
    2058     zeile=$(echo "$cpp_options" | cut -c41-)
     2055    spalte1="cpp directives:"; spalte2=$(echo "$cpp_options" | cut -c-45)
     2056    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2057    zeile=$(echo "$cpp_options" | cut -c46-)
    20592058    while [[ "$zeile" != "" ]]
    20602059    do
    20612060       spalte1=""
    2062        spalte2=$zeile
    2063        printf "| $spalte1$spalte2 | \n"
    2064        zeile=$(echo "$zeile" | cut -c41-)
     2061       spalte2=$(echo "$zeile" | cut -c-45)
     2062       printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2063       zeile=$(echo "$zeile" | cut -c46-)
    20652064    done
    20662065
    2067     spalte1="compiler options:"; spalte2="$fopts"
    2068     printf "| $spalte1$spalte2 | \n"
    2069     zeile=$(echo "$fopts" | cut -c41-)
     2066    spalte1="compiler options:"; spalte2=$(echo "$fopts" | cut -c-45)
     2067    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2068    zeile=$(echo "$fopts" | cut -c46-)
    20702069    while [[ "$zeile" != "" ]]
    20712070    do
    20722071       spalte1=""
    2073        spalte2=$zeile
    2074        printf "| $spalte1$spalte2 | \n"
    2075        zeile=$(echo "$zeile" | cut -c41-)
     2072       spalte2=$(echo "$zeile" | cut -c-45)
     2073       printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2074       zeile=$(echo "$zeile" | cut -c46-)
    20762075    done
    20772076
    2078     spalte1="linker options:"; spalte2=$lopts
    2079     printf "| $spalte1$spalte2 | \n"
    2080     zeile=$(echo "$lopts" | cut -c41-)
     2077    spalte1="linker options:"; spalte2=$(echo "$lopts" | cut -c-45)
     2078    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2079    zeile=$(echo "$lopts" | cut -c46-)
    20812080    while [[ "$zeile" != "" ]]
    20822081    do
    20832082       spalte1=""
    2084        spalte2=$zeile
    2085        printf "| $spalte1$spalte2 | \n"
    2086        zeile=$(echo "$zeile" | cut -c41-)
     2083       spalte2=$(echo "$zeile" | cut -c-45)
     2084       printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2085       zeile=$(echo "$zeile" | cut -c46-)
    20872086    done
    20882087
    2089     spalte1="modules to be load:"; spalte2=$modules
    2090     printf "| $spalte1$spalte2 | \n"
    2091     zeile=$(echo "$modules" | cut -c41-)
     2088    spalte1="modules to be load:"; spalte2=$(echo "$modules" | cut -c-45)
     2089    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2090    zeile=$(echo "$modules" | cut -c46-)
    20922091    while [[ "$zeile" != "" ]]
    20932092    do
    20942093       spalte1=""
    2095        spalte2=$zeile
    2096        printf "| $spalte1$spalte2 | \n"
    2097        zeile=$(echo "$zeile" | cut -c41-)
     2094       spalte2=$(echo "$zeile" | cut -c-45)
     2095       printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2096       zeile=$(echo "$zeile" | cut -c46-)
    20982097    done
    20992098
    2100     spalte1="main program":; spalte2=$mainprog
    2101     printf "| $spalte1$spalte2 | \n"
     2099    spalte1="main program:"; spalte2=$mainprog
     2100    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    21022101 else
    21032102    spalte1=executable:; spalte2=$executable
    2104     printf "| $spalte1$spalte2 | \n"
    2105  fi
    2106  printf "|                                                              | \n"
    2107  spalte1="base name of files":; spalte2=$fname
    2108  printf "| $spalte1$spalte2 | \n"
     2103    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2104 fi
     2105 printf "|                                                                        | \n"
     2106 spalte1="base name of files:"; spalte2=$fname
     2107 printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    21092108 if [[ $fname != $afname ]]
    21102109 then
    2111     spalte1="base name of input files":; spalte2=$afname
    2112     printf "| $spalte1$spalte2 | \n"
    2113  fi
    2114  spalte1="INPUT control list":; spalte2=$input_list
    2115  printf "| $spalte1$spalte2 | \n"
    2116  spalte1="OUTPUT control list":; spalte2=$output_list
    2117  printf "| $spalte1$spalte2 | \n"
     2110    spalte1="base name of input files:"; spalte2=$afname
     2111    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2112 fi
     2113 spalte1="INPUT control list:"; spalte2=$(echo $input_list)
     2114 printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
     2115 spalte1="OUTPUT control list:"; spalte2=$(echo $output_list)
     2116 printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    21182117
    21192118 if [[ $do_batch = true  ||  "$LOADLBATCH" = yes ]]
    21202119 then
    21212120    spalte1="memory demand / PE":; spalte2="$memory MB"
    2122     printf "| $spalte1$spalte2 | \n"
     2121    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    21232122    spalte1=CPU-time:; spalte2="$minuten:$sekunden"
    2124     printf "| $spalte1$spalte2 | \n"
     2123    printf "| %-25s%-45s | \n" "$spalte1" "$spalte2"
    21252124 fi
    21262125
    21272126 if [[ $do_compile = true ]]
    21282127 then
    2129     printf "|                                                              | \n"
    2130     printf "| Files to be compiled:                                        | \n"
     2128    printf "|                                                                        | \n"
     2129    printf "| Files to be compiled:                                                  | \n"
    21312130    zeile=$source_list
    21322131    while [[ "$zeile" != "" ]]
    21332132    do
    2134        spalte3=$zeile
    2135        printf "| $spalte3 | \n"
    2136        zeile=$(echo "$zeile" | cut -c61-)
     2133       linestart=$(echo $zeile | cut -c-70)
     2134       printf "| %-70s | \n" "$linestart"
     2135       zeile=$(echo "$zeile" | cut -c71-)
    21372136    done
    21382137 fi
    2139  printf "#--------------------------------------------------------------#"
     2138 printf "#------------------------------------------------------------------------#"
    21402139
    21412140
     
    21922191    antwort=dummy
    21932192    printf "\n\n"
    2194     while [[ "$antwort" != y  &&  "$antwort" != Y  &&  "$antwort" != n  &&  "$antwort" != N ]]
     2193    printf " >>> everything o.k. (y/n) ?  "
     2194    while  read antwort
    21952195    do
    2196        printf " >>> everything o.k. (y/n) ?  "
    2197        read  antwort
     2196       if [[ "$antwort" != y  &&  "$antwort" != Y  &&  "$antwort" != n  &&  "$antwort" != N ]]
     2197       then
     2198          printf " >>> everything o.k. (y/n) ?  "
     2199       else
     2200          break
     2201       fi
    21982202    done
    21992203    if [[ $antwort = n  ||  $antwort = N ]]
     
    22142218 fi
    22152219
    2216 #### PERFORM PARAMETER FILE CHECK (COUPLED RUNS ARE NOT SUPPORTED YET)
    2217 
    2218 #DEFINE VARIABLES FOR FREQUENTLY USED DIRECTORIES
     2220
     2221    # PERFORM PARAMETER FILE CHECK (COUPLED RUNS ARE NOT SUPPORTED YET)
     2222    # DEFINE VARIABLES FOR FREQUENTLY USED DIRECTORIES
    22192223 check_depository="${working_directory}/trunk/UTIL"
    22202224 check_sources="${working_directory}/tmp_check_namelist_files"
    22212225 skip_check=false
    22222226
    2223 #CHECK IF NAMELIST_FILE_CHECK HAS BEEN COMPILED SUCCESSFULLY
     2227    # CHECK IF NAMELIST_FILE_CHECK HAS BEEN COMPILED SUCCESSFULLY
    22242228 if [[ ! -f $check_depository/check_namelist_files.tar ]]
    22252229 then
    2226       skip_check=true
    2227       reason="run on remote host or parameter file check has not been compiled."
     2230    skip_check=true
     2231    reason="run on remote host or parameter file check has not been compiled."
    22282232 fi
    22292233 if [[ ! -f $PALM_BIN/check_namelist_files.x ]]
    22302234 then
    2231       skip_check=true
    2232       reason="parameter file check has not been compiled."
    2233  fi
    2234 
    2235 #CHECK FOR PARALLEL RUN; OTHERWISE SKIP CHECK
     2235    skip_check=true
     2236    reason="parameter file check has not been compiled."
     2237 fi
     2238
     2239    # CHECK FOR PARALLEL RUN; OTHERWISE SKIP CHECK
    22362240 if [[ "$cond1" != "parallel"  &&  "$cond2" != "parallel" ]]
    22372241 then
    2238      skip_check=true
    2239      reason="serial run."
    2240  fi
    2241 
    2242 #ONLY PERFORM CHECK IF -z OPTION IS NOT SET, NO RESTART RUN IS CARRIED OUT AND IF THE EXECUTION HOST IS THE LOCAL HOST
    2243 # ATTENTION: THIS ROUTINE DOES NOT WORK IF THE COMPILER ON THE LOCAL HOST DIFFERS FROM THE COMPILER ON THE REMOTE HOST
     2242    skip_check=true
     2243    reason="serial run."
     2244 fi
     2245
     2246    # ONLY PERFORM CHECK IF -z OPTION IS NOT SET, NO RESTART RUN IS CARRIED OUT
     2247    # AND IF THE EXECUTION HOST IS THE LOCAL HOST
     2248    # ATTENTION: THIS ROUTINE DOES NOT WORK IF THE COMPILER ON THE LOCAL HOST
     2249    # DIFFERS FROM THE COMPILER ON THE REMOTE HOST
    22442250 if [[ $check_namelist_files == false ]]
    22452251 then
    2246      skip_check=true
    2247      reason="-z option set."
     2252    skip_check=true
     2253    reason="-z option set."
    22482254 fi
    22492255
    22502256 if [[ $fromhost != $localhost ]]
    22512257 then
    2252      skip_check=true
    2253      reason="submitting host is local host." 
     2258    skip_check=true
     2259    reason="submitting host is local host." 
    22542260 fi 
    22552261
     
    22642270    skip_check=true
    22652271    reason="restart run."     
    2266 
    2267  fi
    2268 
    2269 #SKIP CHECK IN CASE OF RESTART RUN: CHECK WHETHER THE LAST CHAR IS "f" IN PARIN
    2270  ((last_char = `echo $filename_input | wc -c` - 1))
    2271  last_char=`echo $filename_input |cut -c$last_char`
     2272 fi
     2273
     2274    # SKIP CHECK IN CASE OF RESTART RUN: CHECK WHETHER THE LAST CHAR IS "f" IN PARIN
     2275 (( last_char = `echo $filename_input | wc -c` - 1 ))
     2276 last_char=`echo $filename_input | cut -c $last_char`
    22722277 if [[ "$last_char" == "f" ]]
    22732278 then
     
    22782283 if [[ $skip_check == false ]]
    22792284 then
    2280 
    22812285    tmp_check=${working_directory}/tmp_check
    22822286
    2283  GET TOPOGRAPHY PARAMETER FILE SUFFIX (USUALLY "_P3DF"). THIS FILE MIGHT IS
    2284  NOT NECESSARILY REQUIRED
     2287       # GET TOPOGRAPHY PARAMETER FILE SUFFIX (USUALLY "_P3DF"). THIS FILE MIGHT IS
     2288       # NOT NECESSARILY REQUIRED
    22852289    line=""
    22862290    found=false
     
    23032307    rm -rf ${working_directory}/tmp_check
    23042308
    2305  CHECK IF THE A P3DF FILE MUST BE CHECKED
     2309       # CHECK IF THE A P3DF FILE MUST BE CHECKED
    23062310    for  item  in  $input_list
    23072311    do
     
    23142318    done
    23152319
    2316  ERROR IF NO PARAMETER FILE WAS FOUND, OTHERWISE PROCEED
    2317     if [[ (! -f $filename_input) && ( "$filename_input" != "") ]]
     2320      # ERROR IF NO PARAMETER FILE WAS FOUND, OTHERWISE PROCEED
     2321    if [[ (! -f $filename_input) && ( "$filename_input" != "" ) ]]
    23182322    then
    23192323       printf "\n\n  +++ ERROR: parameter file ($filename_input) not found."
     
    23212325    fi
    23222326   
    2323  CHECK IF THE RESTART PARAMETER FILE EXISTS (IF NECESSARY)
     2327       # CHECK IF THE RESTART PARAMETER FILE EXISTS (IF NECESSARY)
    23242328    if  [[ $check_restart == 1 ]]
    23252329    then
    2326 
    2327 
    23282330
    23292331       filenamef="${filename_input}f"
     
    23532355    fi
    23542356
    2355  CREATE TEMPORARY SOURCES_FOR_CHECK PATH
     2357       # CREATE TEMPORARY SOURCES_FOR_CHECK PATH
    23562358    mkdir $check_sources
    23572359    cd $check_sources
    23582360
    23592361
    2360  CHECK FOR USER CODE, OTHERWISE USE THE PRECOMPILED CHECK_NAMELIST_FILES.X
     2362       # CHECK FOR USER CODE, OTHERWISE USE THE PRECOMPILED CHECK_NAMELIST_FILES.X
    23612363    if [[ -d $add_source_path ]]
    23622364    then
     
    23712373       touch check_namelist_files.f90
    23722374
    2373 #      GET COMPILER OPTIONS AND PERFORM MAKE
     2375          # GET COMPILER OPTIONS AND PERFORM MAKE
    23742376       printf "\n\n  *** compiling code if necessary...\n"
    23752377
    2376 #      workaround for batch jobs on local machine (lcxe6)
     2378          # workaround for batch jobs on local machine (lcxe6)
    23772379       if [[ $do_batch == true && $do_remote == false ]]
    23782380       then
     
    23802382       fi
    23812383
    2382        # GET CHECK OPTIONS
     2384          # GET CHECK OPTIONS
    23832385       line=""
    23842386       found=false
     
    23962398          if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
    23972399          then
    2398           # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING UND ALLE -D ENTFERNEN
    2399           line="$line "
     2400                # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING UND ALLE -D ENTFERNEN
     2401             line="$line "
    24002402             copts_check=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g' | sed 's/-D[^ ]* //g' | sed 's/ -D.*//g'`
    24012403             found=true
     
    24072409       make -f Makefile_check F90=$compiler_name_ser  COPT="$copts_check"
    24082410
    2409 #      GET MAKE OUTPUT
     2411          # GET MAKE OUTPUT
    24102412       if [[ $? != 0 ]]
    24112413       then
     
    24472449       cp ${pathname}/${fname}${topo_suffix} ./TOPOGRAPHY_DATA
    24482450
    2449 #      IN CASE OF TOPOGRAPHY AND HIGH GRID POINT NUMBERS, THE STACK SIZE
    2450 #      MUST BE INCREASED. THIS IS DUE TO THE ARRAY nzb_local AND topo_height,
    2451 #      WHICH REQUIRE SUFFICIENT MEMORY
     2451          # IN CASE OF TOPOGRAPHY AND HIGH GRID POINT NUMBERS, THE STACK SIZE
     2452          # MUST BE INCREASED. THIS IS DUE TO THE ARRAY nzb_local AND topo_height,
     2453          # WHICH REQUIRE SUFFICIENT MEMORY
    24522454       ulimit -s unlimited         
    24532455    fi
    24542456
    2455  CREATE ENVPAR FILE, WHICH IS NEEDED BY CHECK_NAMELIST_FILES.X
     2457       # CREATE ENVPAR FILE, WHICH IS NEEDED BY CHECK_NAMELIST_FILES.X
    24562458    cat  >  ENVPAR  <<  %%END%%
    24572459 &envpar  run_identifier = '$fname', host = '$host',
     
    24642466%%END%%
    24652467
    2466 #   SAFETY CHECK: ONLY PROCEED IF THE PARAMETER CHECK PROGRAM WAS PROPERLY COMPILED
    2467     if [[ ! -f check_namelist_files.x && $skip_check == false ]] then
     2468       # SAFETY CHECK: ONLY PROCEED IF THE PARAMETER CHECK PROGRAM WAS PROPERLY COMPILED
     2469    if [[ ! -f check_namelist_files.x  &&  $skip_check == false ]]
     2470    then
    24682471       printf "\n  +++ WARNING: check_namelist_files.x not found."
    24692472       answer=dummy
     
    24832486             locat=normal; exit
    24842487          else
    2485              printf "\n  *** skipping parameter file check."
    2486          
     2488             printf "\n  *** skipping parameter file check."         
    24872489          fi
    24882490      fi
     
    24902492    elif [[ $skip_check == false ]]
    24912493    then
    2492 #      STARTING THE PARAMETER FILE CHECK
     2494          # STARTING THE PARAMETER FILE CHECK
    24932495       printf "\n\n  *** starting parameter file check..."
    24942496
    2495 #      CHECKING THE P3D FILE
     2497          # CHECKING THE P3D FILE
    24962498       printf "\n\n      (1) checking $filename_input" 
    24972499       echo "$numprocs 0 0" > VARIN
     
    25082510       fi
    25092511
    2510 #      CHECKING THE PD3F FILE IF NECESSARY
     2512          # CHECKING THE PD3F FILE IF NECESSARY
    25112513       if [[ $check_restart == 1 && $check_error == false ]]
    25122514       then
    25132515          printf "\n\n      (2) checking $filenamef" 
    25142516
    2515 #         FIRST CHECK IF INITIALIZING_ACTIONS="READ_RESTART_DATA" IS SET IN &INIPAR LIST
     2517             # FIRST CHECK IF INITIALIZING_ACTIONS="READ_RESTART_DATA" IS SET
     2518             # IN &INIPAR LIST
    25162519          found=false
    2517           cat PARINF|while read line
     2520          cat PARINF | while read line
    25182521          do
    25192522             line=$(echo $line|sed 's/ //g')
     
    25472550          fi
    25482551
    2549 #        READ max_user_pr FROM FILES
     2552             # READ max_user_pr FROM FILES
    25502553          if [[ -f parin_for_check ]]
    25512554          then
     
    25682571       fi
    25692572   
    2570 #      REPORT ERRORS AND CONTINUE/EXIT
     2573          # REPORT ERRORS AND CONTINUE/EXIT
    25712574       if [[ $check_error == true ]]
    25722575       then
     
    25772580          while [[ "$answer" != c  &&  "$answer" != C  && "$answer" != a  &&  "$answer" != A ]]
    25782581          do
    2579           printf " >>> continue anyway (c(ontinue)/a(bort)) ?  "
    2580           read  answer
     2582             printf " >>> continue anyway (c(ontinue)/a(bort)) ?  "
     2583             read  answer
    25812584          done
    25822585
     
    26892692
    26902693
    2691        basename=`print $mainprog | cut -f1 -d"."`
     2694       basename=`echo $mainprog | cut -f1 -d"."`
    26922695       eval make_depository=${local_depository_path}/${basename}_current_version.tar
    26932696       if [[ ! -f $make_depository ]]
     
    47814784          # with the SGE batch system
    47824785       echo  "cat > $config_file << \"%END%\""      >>  $jobfile
    4783        sed 's/#$.*//g'   $config_file               >>  $jobfile
     4786       if [[ $host = lckyuh ]]
     4787       then
     4788             # no cross compiler on compute node
     4789          sed  's/frtpx/frt/g'  $config_file        >>  $jobfile
     4790       else
     4791          sed 's/#$.*//g'   $config_file            >>  $jobfile
     4792       fi
    47844793       echo  "%END%"                                >>  $jobfile
    47854794       echo  " "                                    >>  $jobfile
     
    47884797          # ABSPEICHERN DER AKTUELLEN MRUN-VERSION
    47894798          # ABDECKZEICHEN VERHINDERN, DASS ERSETZUNGEN ERFOLGEN
    4790        echo  "cat > $mrun_script_name <<\"%END%\""    >>  $jobfile
    4791        cat   ${PALM_BIN}/$mrun_script_name            >>  $jobfile
    4792        echo  "%END%"                                  >>  $jobfile
     4799       echo  "cat > $mrun_script_name <<\"%END%\""  >>  $jobfile
     4800       cat   ${PALM_BIN}/$mrun_script_name          >>  $jobfile
     4801       echo  "%END%"                                >>  $jobfile
    47934802       echo  "chmod u+x $mrun_script_name"          >>  $jobfile
    47944803       echo  "execute_mrun=true"                    >>  $jobfile
     
    48514860
    48524861       # MRUN AUF ZIELRECHNER AUFRUFEN (queue is workaround for ibmkisti)
    4853     echo  "set -x"                                      >>  $jobfile
    4854     echo  "queue=$queue"                                >>  $jobfile
    4855 #    echo  "echo \"*** shell test\" "                    >>  $jobfile
    4856 #    echo  "which ksh"                                   >>  $jobfile
    4857 #    echo  "ls -al /bin"                                 >>  $jobfile
     4862    echo  "set -x"                                        >>  $jobfile
     4863    echo  "queue=$queue"                                  >>  $jobfile
    48584864    echo  "[[ \$execute_mrun = true ]]  &&  ./$mrun_com"  >>  $jobfile
    4859 
    4860     echo  'ls -al; echo `pwd`'                          >>  $jobfile
    4861     echo  "cd \$HOME"                                   >>  $jobfile
    4862     echo  "rm -rf  $TEMPDIR"                            >>  $jobfile
     4865    echo  'ls -al; echo `pwd`'                            >>  $jobfile
     4866    echo  "cd \$HOME"                                     >>  $jobfile
     4867    echo  "rm -rf  $TEMPDIR"                              >>  $jobfile
    48634868
    48644869
Note: See TracChangeset for help on using the changeset viewer.