Changeset 2014
- Timestamp:
- Apr 11, 2014, 2:40:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/makegcm
r1944 r2014 7 7 # options par defaut pour la commande make 8 8 ######################################################################## 9 10 echo ' ' 11 echo 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' 12 echo 'Attention makegcm n est plus supporte par l equipe de developpement' 13 echo 'Il faut maintenant utiliser ./makelmdz ou ./makelmdz_fcm ' 14 echo 'Si vous tenez absolument a utiliser makegcm, editez le script et' 15 echo 'retirer ces lignes (a vos risques et perils)' 16 echo 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' 17 echo ' ' 18 19 exit 20 21 9 22 set dim="96x71x19" 10 23 set physique=lmd … … 30 43 set FC_LINUX=gfortran 31 44 32 if ( $FC_LINUX == g 95) then33 set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"45 if ( $FC_LINUX == gfortran ) then 46 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 34 47 else if ( $FC_LINUX == gfortran ) then 35 48 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 36 49 else 37 50 # pgf90 options 38 set OPT_LINUX="-O3 - i4 -r8 -DNC_DOUBLE"51 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 39 52 endif 40 53 … … 51 64 setenv IOIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib 52 65 setenv MODIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib 53 setenv NCDFINC / d1/mpllmd/LMDZtesting/netcdf-4.0.1/include54 setenv NCDFLIB / d1/mpllmd/LMDZtesting/netcdf-4.0.1/lib66 setenv NCDFINC /tmpdir/fairhead/Test_install/LMDZtrunk/netcdf-4.0.1/include 67 setenv NCDFLIB /tmpdir/fairhead/Test_install/LMDZtrunk/netcdf-4.0.1/lib 55 68 56 69 … … 104 117 if ( ! $?NCDFLIB ) then 105 118 echo You must initialize the variable NCDFLIB in your environnement 106 echo for instance: "setenv NCDFLIB / d1/mpllmd/LMDZtesting/netcdf-4.0.1/lib119 echo for instance: "setenv NCDFLIB /tmpdir/fairhead/Test_install/LMDZtrunk/netcdf-4.0.1/lib 107 120 exit 108 121 endif 109 122 if ( ! $?NCDFINC ) then 110 123 echo You must initialize the variable NCDFINC in your environnement 111 echo for instance: "setenv NCDFINC / d1/mpllmd/LMDZtesting/netcdf-4.0.1/include124 echo for instance: "setenv NCDFINC /tmpdir/fairhead/Test_install/LMDZtrunk/netcdf-4.0.1/include 112 125 exit 113 126 endif … … 259 272 else if $LINUX then 260 273 ################# 261 if ( $FC_LINUX == pgf90 || $FC_LINUX == g 95|| $FC_LINUX == gfortran ) then274 if ( $FC_LINUX == pgf90 || $FC_LINUX == gfortran || $FC_LINUX == gfortran ) then 262 275 set optim=" $OPT_LINUX " 263 276 set optim90=" $OPT_LINUX " … … 519 532 set optim90="$optim90"" -g -ffpe-trap=invalid,zero,overflow -fbounds-check -Wall " 520 533 set optimtru90="$optimtru90"" -ffpe-trap=invalid,zero,overflow -g -fbounds-check -Wall " 521 else if ( $FC_LINUX == 'g 95' ) then534 else if ( $FC_LINUX == 'gfortran' ) then 522 535 set optim="$optim"" -g -fbounds-check -freal=nan -ftrace=full -Wall " 523 536 set optim90="$optim90"" -g -fbounds-check -freal=nan -ftrace=full -Wall " … … 585 598 set cppflags="$cppflags -DCPP_VEGET" 586 599 # set link_veget=" -lsechiba -lparameters -lstomate " 587 set link_veget=" -lsechiba -lparameters -lstomate -lparallel -lorglob-lorchidee"600 set link_veget=" -lsechiba -lparameters -lstomate -lorchidee" 588 601 if ( $XNEC || $X8BRODIE || $X6NEC) then 589 602 # set link_veget=" -lsxsechiba -lsxparameters -lsxstomate -lsxorglob -lsxparallel" … … 845 858 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf " 846 859 endif 847 else if ($FC_LINUX == 'g 95' || $FC_LINUX == 'gfortran' ) then860 else if ($FC_LINUX == 'gfortran' || $FC_LINUX == 'gfortran' ) then 848 861 if ( $io == "ioipsl" ) then 849 862 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf " … … 1019 1032 set optimtru90=" $optimtru90 -module $libo " 1020 1033 set optim90=" $optim90 -module $libo " 1021 else if ( $FC_LINUX == 'g 95' ) then1022 set optimtru90=" $optimtru90 - fmod=$libo "1023 set optim90=" $optim90 - fmod=$libo "1034 else if ( $FC_LINUX == 'gfortran' ) then 1035 set optimtru90=" $optimtru90 -I$libo " 1036 set optim90=" $optim90 -I$libo " 1024 1037 else if ( $FC_LINUX == 'gfortran' ) then 1025 1038 set optimtru90=" $optimtru90 -M $libo "
Note: See TracChangeset
for help on using the changeset viewer.