Ignore:
Timestamp:
Feb 4, 2010 2:26:16 AM (14 years ago)
Author:
raasch
Message:

make options can be set in configuration file; bugfix for generating serial jobs; bugfix for masked output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r440 r475  
    196196     # 18/12/09 - Carolin- modification of archiving (permq)
    197197     # 01/02/10 - Siggi  - adapted for lcxt5m and lckyoto (Fujitsu HX600)
     198     # 03/02/10 - Siggi  - make options (mopts) to be set by configuration file
     199     #                     implemented
    198200
    199201
     
    21212123 if [[ $do_compile = true ]]
    21222124 then
     2125    if [[ "$mopts" != "" ]]
     2126    then
     2127       spalte1=make-options:; spalte2=$mopts
     2128       printf "| $spalte1$spalte2 | \n"
     2129       zeile=$(echo "$mopts" | cut -c41-)
     2130       while [[ "$zeile" != "" ]]
     2131       do
     2132          spalte1=""
     2133          spalte2=$zeile
     2134          printf "| $spalte1$spalte2 | \n"
     2135          zeile=$(echo "$zeile" | cut -c41-)
     2136       done
     2137    fi
     2138
    21232139    spalte1=cpp-directives:; spalte2=$cpp_options
    21242140    printf "| $spalte1$spalte2 | \n"
     
    23702386       cp  SOURCES_FOR_RUN_$fname/*  $TEMPDIR_COMPILE
    23712387
    2372           # FALLS USER-INTERFACE VORHANDEN UND AUF DATEI MIT ANDEREM NAMEN
    2373           # ALS user_interface.f90 LIEGT, DIESEN GEAENDERTEN NAMEN INS
    2374           # MAKEFILE EINTRAGEN
    2375 #       cd  $TEMPDIR_COMPILE
    2376 #       interface_file=`grep -l "END SUBROUTINE user_parin" $source_list`
    2377 #       if [[ "$interface_file" != "" ]]
    2378 #       then
    2379 #          interface_file=`echo $interface_file | cut -d"." -f1`
    2380 #          mv  Makefile  Makefile_old
    2381 #          sed "s/user_interface/$interface_file/g"  Makefile_old  >  Makefile
    2382 #       fi
    2383 #       cd -  > /dev/null
    23842388    else
     2389
    23852390       cp  $executable   ${TEMPDIR}/a.out
     2391
    23862392    fi
    23872393
    23882394
    23892395       # WECHSEL IN TEMPORAEREN KATALOG
    2390     cd $TEMPDIR
     2396    cd  $TEMPDIR
    23912397    printf "\n  *** changed to temporary directory: $TEMPDIR"
    23922398
     
    24182424       printf "  *** compilation with make using following options:\n"
    24192425       printf "      make depository:          $make_depository"
     2426       if [[ "$mopts" != "" ]]
     2427       then
     2428          printf "      make options:             $mopts\n"
     2429       fi
    24202430       printf "      compilername:             $compiler_name\n"
    2421        printf "      options:                  $fopts\n"
     2431       printf "      compiler options:         $fopts\n"
    24222432       printf "      preprocessor-directives:  $cpp_options \n"
    24232433       printf "      linker-options:           $lopts \n"
     
    24262436       if [[ $localhost = nech ]]
    24272437       then
    2428           ssh  136.172.44.192 -l $usern ". /SX/opt/etc/initsx.sh; cd \$HOME/work/${usern}.$kennung; sxmake -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" "
     2438          ssh  136.172.44.192 -l $usern ". /SX/opt/etc/initsx.sh; cd \$HOME/work/${usern}.$kennung; sxmake $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" "
    24292439          cp  $TEMPDIR_COMPILE/a.out  .
    24302440          [[ $? != 0 ]]  &&  compile_error=true
     
    24332443       then
    24342444          printf "      compiler is called via ssh on \"plogin1\" \n"
    2435           ssh  plogin1  -l $usern  "export PATH=/sw/ibm/xlf/12.1.0.3/usr/bin:$PATH; cd $TEMPDIR; make -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" "
     2445          ssh  plogin1  -l $usern  "export PATH=/sw/ibm/xlf/12.1.0.3/usr/bin:$PATH; cd $TEMPDIR; make $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" "
    24362446          [[ ! -f a.out ]]  &&  compile_error=true
    24372447          continue   # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN
     
    24392449       then
    24402450          printf "      compiler is called via ssh on \"bicegate\" using module \"$mpilib\" \n"
    2441           ssh  130.73.232.103  -l $usern  ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" "
     2451          ssh  130.73.232.103  -l $usern  ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" "
    24422452          [[ ! -f a.out ]]  &&  compile_error=true
    24432453          continue   # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN
     
    24452455       then
    24462456          printf "      compiler is called via ssh on \"hicegate2\" using module \"$mpilib\" \n"
    2447           ssh  130.75.4.103  -l $usern  ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" 2>&1 "
     2457          ssh  130.75.4.103    -l $usern  ". /usr/share/modules/init/bash; module load ifort/11.0.069; module load $mpilib; cd $TEMPDIR; make $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT=\"$cpp_options\"  F90FLAGS=\"$fopts\"  LDFLAGS=\"$lopts\" 2>&1 "
    24482458          [[ ! -f a.out ]]  &&  compile_error=true
    24492459          continue   # ANDERENFALLS IST STATUS=1, FALLS A.OUT VORHANDEN
    24502460       else
    24512461          [[ $localhost = lctit ]]  &&  export LM_LICENSE_FILE=27050@tggls
    2452           make -f Makefile PROG=a.out  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$fopts"  LDFLAGS="$lopts"
     2462          make $mopts -f Makefile PROG=a.out  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$fopts"  LDFLAGS="$lopts"
    24532463       fi
    24542464
Note: See TracChangeset for help on using the changeset viewer.