Changeset 253 for trunk/LMDZ.GENERIC/makegcm
- Timestamp:
- Aug 2, 2011, 11:13:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/makegcm
r135 r253 18 18 ######################################################################## 19 19 20 ###### VERSION LMDZ.3.321 # set LMDGCM=$HOME/LMDZ.3.322 #23 24 20 #### If you want you can set environment variables here 25 #setenv LMDGCM /d5/emlmd/test_universal/v0.4/LMDZ.UCM21 #setenv LMDGCM "/san/home/rdword/gcm/LMDZ.GENERIC" 26 22 #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 23 setenv NCDFLIB /usr/local/lib 24 setenv NCDFINC /usr/local/include 36 25 #### 37 26 … … 181 170 else if $DEC then 182 171 else 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 190 177 set mod_suffix=mod 191 178 else if $NEC then … … 337 324 ######################################################################## 338 325 339 case -d :326 case -d 340 327 set dim=$2 ; shift ; shift ; goto top 341 328 342 329 case -O: 343 set optim90="$2" ; set optim tru90="$2" ; shift ; shift ; goto top330 set optim90="$2" ; set optim="$2" ; set optimtru90="$2" ; shift ; shift ; goto top 344 331 345 332 case -p … … 380 367 set optim90="$optim90"" -G1 " 381 368 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" 384 372 else 385 373 echo "pas d option debug predefinie pour cette machine" … … 393 381 endsw 394 382 endif 383 395 384 396 385 echo "apres les opts dim $dim" … … 425 414 #subtilites sur le nom de la librairie 426 415 ######################################################################## 416 427 417 428 418 \rm tmp ; touch tmp … … 548 538 549 539 # Build the appropriate 'bands.h' file 550 cd dimension551 540 makbands $bands 552 541 # echo contents of bands.h to standard output … … 657 646 ######################################################################## 658 647 648 659 649 echo PHYSIQUE $phys 660 650 echo dynamique $dyn $dimension … … 674 664 set f90=f90 675 665 else 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 678 671 else if $SUN then 679 672 set f77=f90 … … 769 762 set optimtru90=" $optimtru90 -I$libo " 770 763 else if $LINUX then 764 set optim="$optim -module $libo" 771 765 set optim90="$optim90 -module $libo" 772 766 set optimtru90="$optimtru90 -module $libo" … … 788 782 cd $localdir 789 783 784 790 785 echo $make -f $LMDGCM/makefile \ 791 786 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 792 OPTIM="$optim 90" \787 OPTIM="$optim" \ 793 788 OPTIM90="$optim90" \ 794 789 OPTIMTRU90="$optimtru90" \ … … 815 810 $make -f $LMDGCM/makefile \ 816 811 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ 817 OPTIM="$optim 90" \812 OPTIM="$optim" \ 818 813 OPTIM90="$optim90" \ 819 814 OPTIMTRU90="$optimtru90" \
Note: See TracChangeset
for help on using the changeset viewer.