Ignore:
Timestamp:
Oct 25, 2011, 10:10:00 PM (13 years ago)
Author:
aslmd
Message:

MESOSCALE: changes related to g95 support. but the model does not compile apparently. notes taken in NOTES.txt but sorry g95 with LMD_MM_MARS no longer supported at least on 64bits machines. LMDZ.MARS: minor changes related to warning while trying to compile with g95.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_g95

    r86 r330  
    152152#setenv localdir "LOCAL_DIR=`pwd`"
    153153#setenv localdir "`pwd`"
    154 cd $model
     154d $model
    155155if $CRAY then
    156156   set optim90="-Wp'-P' -DCRAY "'-p$(LIBO) -eiv '
     
    180180else if $LINUX then
    181181# Ehouarn 'g95' compiler
    182 # Aymeric : added option for NETCDF libraries
    183    set optim90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall "
    184    set optimtru90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall "
     182   set optim="-O3 -fstatic -funroll-loops -fno-second-underscore -DMESOSCALE"
     183   set optim90=" -O3 -fstatic -funroll-loops -fno-second-underscore -DMESOSCALE"
     184   set optimtru90=" -O3 -fstatic -funroll-loops -fno-second-underscore -DMESOSCALE"
     185## Aymeric : added option for NETCDF libraries
     186#   set optim90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall
     187#   set optimtru90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall
    185188#   set opt_link=" -Mfree -L/usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Wl,-Bstatic "
    186189# Ehouarn: there is no /usr/local/pgi/linux86/lib, but it doesn't matter
     
    339342                       
    340343    case -O:
    341         set optim90="$2" ; shift ; shift ; goto top
     344#        set optim90="$2" ; shift ; shift ; goto top
     345        set optim="$2" ; set optim90="$2" ; set optimtru90="$2" ; shift ; shift ; goto top
    342346
    343347     case -p
     
    375379           set optim90="$optim90"" -G1 "
    376380        else if $LINUX then
    377 #           set optim90="-g -Mbounds "
    378 #           set optim90="-mcmodel=medium"
    379 #         Aymeric : thought I'd complete the g95 debugging
    380           set optim="$optim"" -g -fbounds-check -DMESOSCALE "
    381           set optim90="$optim90"" -g -fbounds-check -DMESOSCALE "
    382           set optimtru90="$optimtru90"" -g -fbounds-check -DMESOSCALE "
     381##           set optim90="-g -Mbounds "
     382##           set optim90="-mcmodel=medium"
     383##         Aymeric : thought I'd complete the g95 debugging
     384#          set optim="$optim"" -g -fbounds-check -DMESOSCALE "
     385#          set optim90="$optim90"" -g -fbounds-check -DMESOSCALE "
     386#          set optimtru90="$optimtru90"" -g -fbounds-check -DMESOSCALE "
     387           ## for g95
     388           set optim="-g -Wall -ftrace=full -fbounds-check -DMESOSCALE"
     389           set optim90="-g -Wall -ftrace=full -fbounds-check -DMESOSCALE"
     390           set optimtru90="-g -Wall -ftrace=full -fbounds-check -DMESOSCALE"
    383391        else
    384392           echo "pas d option debug predefinie pour cette machine"
     
    523531# Build the appropriate 'dimensions.h' file
    524532cd dimension
    525 makdim $ntrac $dim
     533./makdim $ntrac $dim
    526534# echo contents of dimensions.h to standard output
    527535cat $libf/grid/dimensions.h
     
    751759else if $LINUX then
    752760# Ehouarn : adapt to g95
     761 set optim="$optim -fmod=$libo"
    753762 set optim90="$optim90 -fmod=$libo"
    754763 set optimtru90="$optimtru90 -fmod=$libo"
     
    772781echo $make -f $LMDGCM/makefile \
    773782OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \
     783OPTIM="$optim" \
    774784OPTIM90="$optim90" \
    775785OPTIMTRU90="$optimtru90" \
     
    796806$make -f $LMDGCM/makefile \
    797807OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \
     808OPTIM="$optim" \
    798809OPTIM90="$optim90" \
    799810OPTIMTRU90="$optimtru90" \
     
    817828PROG=$code
    818829
     830# cleanup, remove dimensions.h
    819831\rm $libf/grid/dimensions.h
Note: See TracChangeset for help on using the changeset viewer.