Changeset 1210 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Aug 14, 2013 10:58:20 AM (11 years ago)
Author:
raasch
Message:

fftw support added; object file list in Makefile replaced by a short one line statement

Location:
palm/trunk/SCRIPTS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mbuild

    r1197 r1210  
    2222# Current revisions:
    2323# ------------------
    24 # adjustments for CSC Helsinki (lccrayf)
     24# fftw support added
    2525#
    2626# Former revisions:
    2727# -----------------
    2828# $Id$
     29#
     30# 1197 2013-07-04 06:19:45Z raasch
     31# adjustments for CSC Helsinki (lccrayf)
    2932#
    3033# 1099 2013-02-10 01:47:43Z raasch
     
    450453    fi
    451454
     455    fftw_inc=""
     456    fftw_lib=""
    452457    modules=""
    453458    netcdf_inc=""
     
    705710
    706711
    707        # NETCDF-OPTIONEN ERMITTELN
     712       # get netCDF options
    708713    line=""
    709714    grep  "$remote_host_string" $config_file | grep "%netcdf_inc"  >  $tmp_mbuild
     
    738743             # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
    739744          netcdf_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
     745       fi
     746
     747    done < $tmp_mbuild
     748
     749
     750
     751       # get fftw options
     752    line=""
     753    grep  "$remote_host_string" $config_file | grep "%fftw_inc"  >  $tmp_mbuild
     754    while read line1
     755    do
     756
     757       if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]]
     758       then
     759          line="$line1"
     760       fi
     761
     762       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
     763       then
     764             # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
     765          fftw_inc=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
     766       fi
     767
     768    done < $tmp_mbuild
     769
     770    line=""
     771    grep  "$remote_host_string" $config_file | grep "%fftw_lib"  >  $tmp_mbuild
     772    while read line1
     773    do
     774
     775       if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]]
     776       then
     777          line="$line1"
     778       fi
     779
     780       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
     781       then
     782             # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN
     783          fftw_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'`
    740784       fi
    741785
     
    785829          found=true
    786830
    787              # NETCDF-INCLUDEVERZEICHNIS HINZUFUEGEN
    788           compiler_options="$compiler_options $netcdf_inc"
     831             # add include paths for netCDF and fftw
     832          compiler_options="$compiler_options $netcdf_inc $fftw_inc"
    789833       fi
    790834
     
    857901          found=true
    858902
    859              # NETCDF-LIBRARY HINZUFUEGEN
    860           loader_options="$loader_options $netcdf_lib"
     903             # add netCDF- and fftw-library
     904          loader_options="$loader_options $netcdf_lib $fftw_lib"
    861905       fi
    862906
     
    13031347          echo "  *** execute \"make\" on local host"
    13041348
     1349          echo "make  $make_options  PROG=$mainprog  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$compiler_options"  LDFLAGS="$loader_options"  2>&1 | tee ${remote_host}_last_make_protokoll"
    13051350          make  $make_options  PROG=$mainprog  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$compiler_options"  LDFLAGS="$loader_options"  2>&1 | tee ${remote_host}_last_make_protokoll
    13061351
  • palm/trunk/SCRIPTS/mrun

    r1203 r1210  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# fftw support added
    2525#
    2626# Former revisions:
     
    143143 executable=""
    144144 execution_error=false
     145 fftw_inc=""
     146 fftw_lib=""
     147 fftw_support=false
    145148 fimm=false
    146149 fname=test
     
    19171920
    19181921    # COMPILE- UND LINK-OPTIONEN BESTIMMEN
    1919  fopts="$fopts $netcdf_inc $dvr_inc"
    1920  lopts="$lopts $netcdf_lib $dvr_lib"
     1922 fopts="$fopts $netcdf_inc $fftw_inc $dvr_inc"
     1923 lopts="$lopts $netcdf_lib $fftw_lib $dvr_lib"
    19211924 ROPTS="$ropts"
    19221925# if [[ ( $(echo $host | cut -c1-3) = nec  ||  $(echo $host | cut -c1-3) = ibm  ||  $host = lckyoto  ||  $host = lcsgih  ||  $host = lcsgib  ||  $host = lctit  ||  $host = lcfimm  ||  $host = lcflow  ||  $host = lcxe6 ||  $host = lcxt5m || $host = lck || $host = lckiaps || $host = lckordi || $host = lcsb || $host )  &&  -n $numprocs ]]
Note: See TracChangeset for help on using the changeset viewer.