Ignore:
Timestamp:
Aug 2, 2011, 11:13:07 AM (13 years ago)
Author:
emillour
Message:

Generic GCM

  • Massive update to version 0.7

EM+RW

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/makegcm

    r135 r253  
    1818########################################################################
    1919
    20 ###### VERSION LMDZ.3.3
    21 # set LMDGCM=$HOME/LMDZ.3.3
    22 #
    23 
    2420#### If you want you can set environment variables here
    25 #setenv LMDGCM /d5/emlmd/test_universal/v0.4/LMDZ.UCM
     21#setenv LMDGCM "/san/home/rdword/gcm/LMDZ.GENERIC"
    2622#setenv LIBOGCM $LMDGCM/libo
    27 #if ( `uname -m` == "x86_64" ) then
    28 ## 64 bit machines
    29 #  setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_pgi/lib
    30 #  setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_pgi/include
    31 #else
    32 #  setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_pgi/lib
    33 #  setenv NCDFINC /donnees/emlmd/netcdf-4.0.1_pgi/include
    34 #endif
    35 
     23setenv NCDFLIB /usr/local/lib
     24setenv NCDFINC /usr/local/include
    3625####
    3726
     
    181170else if $DEC then
    182171else if $LINUX then
    183    set optim90=" -fast"
    184    set optimtru90=" -fast -c -Mfree "
    185 #   set opt_link=" -Mfree -L/usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Wl,-Bstatic "
    186 # Ehouarn: there is no /usr/local/pgi/linux86/lib, but it doesn't matter
    187 #          also changed -Wl,-Bstatic to -Bstatic
    188    set opt_link=" -Mfree -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Bstatic "
    189    set mod_loc_dir=$localdir
     172   #NB: on gnome -O3 ==> NaNs ...
     173   set optim=" -O2 -ip -mkl=sequential -align common "
     174   set optim90=" -O2 -ip -mkl=sequential -align common "
     175   set optimtru90=" -O2 -ip -mkl=sequential -align common "
     176   set mod_loc_dir=$LIBOGCM
    190177   set mod_suffix=mod
    191178else if $NEC then
     
    337324########################################################################
    338325
    339     case -d:
     326    case -d
    340327        set dim=$2 ; shift ; shift ; goto top
    341328                       
    342329    case -O:
    343         set optim90="$2" ; set optimtru90="$2" ; shift ; shift ; goto top
     330        set optim90="$2" ; set optim="$2" ; set optimtru90="$2" ; shift ; shift ; goto top
    344331
    345332     case -p
     
    380367           set optim90="$optim90"" -G1 "
    381368        else if $LINUX then
    382            set optim90="-g -Mbounds "
    383            set optimtrue90="-g -Mbounds -Mfree"
     369           set optim=" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"
     370           set optim90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"
     371           set optimtru90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"
    384372        else
    385373           echo "pas d option debug predefinie pour cette machine"
     
    393381   endsw
    394382endif
     383
    395384
    396385echo "apres les opts dim $dim"
     
    425414#subtilites sur le nom de la librairie
    426415########################################################################
     416
    427417
    428418\rm tmp ; touch tmp
     
    548538
    549539# Build the appropriate 'bands.h' file
    550 cd dimension
    551540makbands $bands
    552541# echo contents of bands.h to standard output
     
    657646########################################################################
    658647
     648
    659649echo PHYSIQUE $phys
    660650echo dynamique $dyn $dimension
     
    674664   set f90=f90
    675665else if $LINUX then
    676    set f77=pgf90
    677    set f90=pgf90
     666   set f77=ifort
     667   set f90=ifort
     668   set opt_link=" -L$LIBOGCM -L$NCDFLIB -lnetcdf "
     669#   set f77=pgf90
     670#   set f90=pgf90
    678671else if $SUN then
    679672   set f77=f90
     
    769762 set optimtru90=" $optimtru90 -I$libo "
    770763else if $LINUX then
     764 set optim="$optim -module $libo"
    771765 set optim90="$optim90 -module $libo"
    772766 set optimtru90="$optimtru90 -module $libo"
     
    788782cd $localdir
    789783
     784
    790785echo $make -f $LMDGCM/makefile \
    791786OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \
    792 OPTIM="$optim90" \
     787OPTIM="$optim" \
    793788OPTIM90="$optim90" \
    794789OPTIMTRU90="$optimtru90" \
     
    815810$make -f $LMDGCM/makefile \
    816811OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \
    817 OPTIM="$optim90" \
     812OPTIM="$optim" \
    818813OPTIM90="$optim90" \
    819814OPTIMTRU90="$optimtru90" \
Note: See TracChangeset for help on using the changeset viewer.