Changeset 1279 for LMDZ4/trunk/makegcm
- Timestamp:
- Dec 10, 2009, 10:02:56 AM (15 years ago)
- Location:
- LMDZ4/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk
- Property svn:mergeinfo changed
/LMDZ4/branches/LMDZ4-dev merged: 1150-1162,1164-1193,1195-1231,1234-1235,1237-1240,1242-1274,1276
- Property svn:mergeinfo changed
-
LMDZ4/trunk/makegcm
r1146 r1279 1 1 #!/bin/csh 2 2 # 3 # $ Header$3 # $Id$ 4 4 # 5 5 #set verbose echo … … 24 24 set OPTIMI=' -ftrace ' 25 25 set OPT_LINUX='-O3' 26 set OPT_LINUX="-i4 -r8 -O3" 26 27 set io=ioipsl 28 set cosp=false 27 29 28 30 set FC_LINUX=g95 29 31 #set FC_LINUX=pgf90 32 if ( $FC_LINUX == g95 ) then 33 set OPT_LINUX="-O3" 34 else 35 # pgf90 options 36 set OPT_LINUX="-i4 -r8 -O2 -Munroll -Mnoframe -Mautoinline -Mcache_align" 37 endif 30 38 31 39 ######################################################################## … … 37 45 #setenv LIBOGCM $LMDGCM/libo 38 46 set INCALIB=../INCA3/config/lib 39 set LMDGCM="`pwd`"40 setenv LIBOGCM $LMDGCM/libo47 #set LMDGCM="`pwd`" 48 #setenv LIBOGCM $LMDGCM/libo 41 49 #set LMDGCM=/d4/fairhead/V4/ 42 50 #setenv LIBOGCM $LMDGCM/libo 43 51 # 44 52 # 45 #setenv IOIPSLDIR /u/fairhead/modipsl_ioipsl_3/lib_i4r4_32bits 46 #setenv MODIPSLDIR /u/fairhead/modipsl_ioipsl_3/lib_i4r4_32bits 47 #setenv NCDFINC /distrib/local/netcdf/pgi_32bits/include 48 #setenv NCDFLIB /distrib/local/netcdf/pgi_32bits/lib/ 49 setenv IOIPSLDIR /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/modipsl/lib/ 50 setenv MODIPSLDIR /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/modipsl/lib/ 51 setenv NCDFINC /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/netcdf-3.6.1/include 52 setenv NCDFLIB /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/netcdf-3.6.1/lib 53 #setenv NCDFINC /tmpdir/fairhead/1P1bis/netcdf-3.6.1/include 54 #setenv NCDFLIB /tmpdir/fairhead/1P1bis/netcdf-3.6.1/lib 55 #setenv IOIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib 56 #setenv MODIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib 53 57 54 58 … … 182 186 set opt_link="" 183 187 set adjnt="" 188 set lcosp="" 184 189 set opt_dep="" 185 190 set libchimie="" … … 254 259 else if $LINUX then 255 260 ################# 256 if ( $FC_LINUX == "pgf90" ) then 257 set optim="-fast " 258 set optim90=" -fast " 259 set optimtru90=" -fast -c -Mfree " 260 # set optim=" " 261 # set optim90=" " 262 # set optimtru90=" -c -Mfree " 263 else if ( $FC_LINUX == 'g95' ) then 261 if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 ) then 264 262 set optim=" $OPT_LINUX " 265 263 set optim90=" $OPT_LINUX " … … 428 426 -adjnt Pour compiler la l'adjoint du code dynamique 429 427 428 -cosp true|false 429 Pour compiler avec cosp 430 430 431 -filtre filtre 431 432 Pour choisir le filtre en longitude dans les regions polaires. … … 483 484 set opt_dep="$opt_dep adjnt" ; set adjnt="-ladjnt -ldyn3d " 484 485 set optim="$optim -Dadj" ; shift ; goto top 486 487 case -cosp 488 set cosp="$2"; shift ; shift ; goto top 485 489 486 490 case -filtre … … 542 546 endif 543 547 548 if ( "$cosp" == 'true' ) then 549 set cppflags="$cppflags -DCPP_COSP" 550 set include="$include"' -I$(LIBF)/cosp ' 551 set opt_dep="$opt_dep cosp" 552 # set lcosp="-lcosp -lphy$physique " 553 set lcosp="-lcosp " 554 if ( $XNEC || $X8BRODIE || $X6NEC) then 555 # set lcosp="-lsxcosp -lsxphy$physique " 556 set lcosp="-lsxcosp " 557 endif 558 endif 559 544 560 if ( "$physique" == 'nophys' ) then 545 561 set phys="L_PHY= LIBPHY=" … … 552 568 if ( "$veget" == 'true' ) then 553 569 set cppflags="$cppflags -DCPP_VEGET" 554 set link_veget=" -lsechiba -lparameters -lstomate -lorglob -lparallel" 570 # set link_veget=" -lsechiba -lparameters -lstomate -lorglob -lparallel" 571 set link_veget=" -lsechiba -lparameters -lstomate" 555 572 if ( $XNEC || $X8BRODIE || $X6NEC) then 556 set link_veget=" -lsxsechiba -lsxparameters -lsxstomate -lsxorglob -lsxparallel" 573 # set link_veget=" -lsxsechiba -lsxparameters -lsxstomate -lsxorglob -lsxparallel" 574 set link_veget=" -lsxsechiba -lsxparameters -lsxstomate " 557 575 endif 558 576 endif … … 902 920 ################## 903 921 set f77=sxmpif90 904 set f90=sxmpif90 922 set f90=sxmpif90 905 923 if $MODIPSL then 906 924 set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas" … … 1029 1047 FLAG_PARA="$FLAG_PARA"\ 1030 1048 L_ADJNT="$adjnt" \ 1049 L_COSP="$lcosp" \ 1031 1050 L_CHIMIE="$libchimie" \ 1032 1051 LOCAL_DIR="$localdir" \ … … 1054 1073 FLAG_PARA="$FLAG_PARA"\ 1055 1074 L_ADJNT="$adjnt" \ 1075 L_COSP="$lcosp" \ 1056 1076 L_CHIMIE="$libchimie" \ 1057 1077 LOCAL_DIR="$localdir" \
Note: See TracChangeset
for help on using the changeset viewer.