Changeset 330 for trunk/MESOSCALE/LMD_MM_MARS
- Timestamp:
- Oct 25, 2011, 10:10:00 PM (13 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_g95
r86 r330 152 152 #setenv localdir "LOCAL_DIR=`pwd`" 153 153 #setenv localdir "`pwd`" 154 cd $model154 d $model 155 155 if $CRAY then 156 156 set optim90="-Wp'-P' -DCRAY "'-p$(LIBO) -eiv ' … … 180 180 else if $LINUX then 181 181 # 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 185 188 # set opt_link=" -Mfree -L/usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Wl,-Bstatic " 186 189 # Ehouarn: there is no /usr/local/pgi/linux86/lib, but it doesn't matter … … 339 342 340 343 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 342 346 343 347 case -p … … 375 379 set optim90="$optim90"" -G1 " 376 380 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" 383 391 else 384 392 echo "pas d option debug predefinie pour cette machine" … … 523 531 # Build the appropriate 'dimensions.h' file 524 532 cd dimension 525 makdim $ntrac $dim533 ./makdim $ntrac $dim 526 534 # echo contents of dimensions.h to standard output 527 535 cat $libf/grid/dimensions.h … … 751 759 else if $LINUX then 752 760 # Ehouarn : adapt to g95 761 set optim="$optim -fmod=$libo" 753 762 set optim90="$optim90 -fmod=$libo" 754 763 set optimtru90="$optimtru90 -fmod=$libo" … … 772 781 echo $make -f $LMDGCM/makefile \ 773 782 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 783 OPTIM="$optim" \ 774 784 OPTIM90="$optim90" \ 775 785 OPTIMTRU90="$optimtru90" \ … … 796 806 $make -f $LMDGCM/makefile \ 797 807 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 808 OPTIM="$optim" \ 798 809 OPTIM90="$optim90" \ 799 810 OPTIMTRU90="$optimtru90" \ … … 817 828 PROG=$code 818 829 830 # cleanup, remove dimensions.h 819 831 \rm $libf/grid/dimensions.h -
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r318 r330 389 389 # PGF90, 64 bits, no nesting 390 390 pgf_64_single) echo 1 | configure > log_compile 2> log_error 391 #### the following line is necessary because readtesassim has a line "use netcdf" in it! 392 #sed s+"-L../mars_lmd/libo -llmd"+"-L../mars_lmd/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf 391 393 sed -f mars.sed configure.wrf > yeah ; mv -f yeah configure.wrf ;; 392 394 # PGF90, 64 bits, nesting … … 400 402 g95_64_single) cd arch ; sed s/"PC Linux i486 i586 i686, g95 compiler"/"PC Linux i486 i586 i686 x86_64, g95 compiler"/g configure.defaults > yeahyeahyeah ; rm configure.defaults ; mv yeahyeahyeah configure.defaults ; cd .. 401 403 echo 14 | configure > log_compile 2> log_error 404 ##### marche pas .... 405 #sed s+"-fno-second-underscore"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf 406 #sed -f mars.sed configure.wrf > yeah ; mv -f yeah configure.wrf 407 #sed s+"-L../mars_lmd/libo -llmd"+"-L../mars_lmd/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf ;; 402 408 sed -f mars.sed configure.wrf > yeah ; mv -f yeah configure.wrf ;; 403 409 #sed s+"= g95"+"= /home/physastro/aspiga/mysoft/g95/g95-install/bin/x86_64-unknown-linux-gnu-g95"+g configure.wrf > yeah ; mv -f yeah configure.wrf;;
Note: See TracChangeset
for help on using the changeset viewer.