Changeset 1839 for LMDZ5/trunk/makegcm
- Timestamp:
- Aug 9, 2013, 3:41:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/makegcm
r1789 r1839 23 23 set OPTIMI='-C debug -eC ' 24 24 set OPTIMI=' -ftrace ' 25 set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"26 set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"25 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 26 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 27 27 set io=ioipsl 28 28 set cosp=false 29 29 30 set FC_LINUX=g 9531 set FC_LINUX=g 9532 #set FC_LINUX=g 9533 if ( $FC_LINUX == g 95) then34 set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"30 set FC_LINUX=gfortran 31 set FC_LINUX=gfortran 32 #set FC_LINUX=gfortran 33 if ( $FC_LINUX == gfortran ) then 34 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 35 35 else if ( $FC_LINUX == gfortran ) then 36 set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"37 # set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"38 set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"36 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 37 # set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 38 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 39 39 else 40 40 # pgf90 options 41 set OPT_LINUX="- i4 -O3 -r8 -DNC_DOUBLE"41 set OPT_LINUX="-O3 -fdefault-real-8 -DNC_DOUBLE" 42 42 endif 43 43 … … 54 54 setenv IOIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib 55 55 setenv MODIPSLDIR /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/modipsl/lib 56 setenv NCDFINC /tmpdir/fairhead/ Aqua/LMDZ20120327.trunk/netcdf-4.0.1/include57 setenv NCDFLIB /tmpdir/fairhead/ Aqua/LMDZ20120327.trunk/netcdf-4.0.1/lib56 setenv NCDFINC /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/include 57 setenv NCDFLIB /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/lib 58 58 59 59 … … 107 107 if ( ! $?NCDFLIB ) then 108 108 echo You must initialize the variable NCDFLIB in your environnement 109 echo for instance: "setenv NCDFLIB / d3/idelkadi/MODELE_LMDZ/LMDZ20121005.trunk/netcdf-4.0.1/lib109 echo for instance: "setenv NCDFLIB /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/lib 110 110 exit 111 111 endif 112 112 if ( ! $?NCDFINC ) then 113 113 echo You must initialize the variable NCDFINC in your environnement 114 echo for instance: "setenv NCDFINC / d3/idelkadi/MODELE_LMDZ/LMDZ20121005.trunk/netcdf-4.0.1/include114 echo for instance: "setenv NCDFINC /tmpdir/fairhead/Test_HEAD/LMDZ20130808.trunk/netcdf-4.0.1/include 115 115 exit 116 116 endif … … 262 262 else if $LINUX then 263 263 ################# 264 if ( $FC_LINUX == pgf90 || $FC_LINUX == g 95|| $FC_LINUX == gfortran ) then264 if ( $FC_LINUX == pgf90 || $FC_LINUX == gfortran || $FC_LINUX == gfortran ) then 265 265 set optim=" $OPT_LINUX " 266 266 set optim90=" $OPT_LINUX " … … 519 519 set optim90="$optim90"" -g -ffpe-trap=invalid,zero,overflow -fbounds-check -Wall " 520 520 set optimtru90="$optimtru90"" -ffpe-trap=invalid,zero,overflow -g -fbounds-check -Wall " 521 else if ( $FC_LINUX == 'g 95' ) then521 else if ( $FC_LINUX == 'gfortran' ) then 522 522 set optim="$optim"" -g -fbounds-check -freal=nan -ftrace=full -Wall " 523 523 set optim90="$optim90"" -g -fbounds-check -freal=nan -ftrace=full -Wall " … … 581 581 set cppflags="$cppflags -DCPP_VEGET" 582 582 # set link_veget=" -lsechiba -lparameters -lstomate " 583 set link_veget=" -lsechiba -lparameters -lstomate "583 set link_veget=" -lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee" 584 584 if ( $XNEC || $X8BRODIE || $X6NEC) then 585 585 # set link_veget=" -lsxsechiba -lsxparameters -lsxstomate -lsxorglob -lsxparallel" … … 841 841 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf " 842 842 endif 843 else if ($FC_LINUX == 'g 95' || $FC_LINUX == 'gfortran' ) then843 else if ($FC_LINUX == 'gfortran' || $FC_LINUX == 'gfortran' ) then 844 844 if ( $io == "ioipsl" ) then 845 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdff -lnetcdf -lioipsl -lnetcdff-lnetcdf "845 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf " 846 846 else 847 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdff-lnetcdf "847 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf " 848 848 endif 849 849 endif … … 1015 1015 set optimtru90=" $optimtru90 -module $libo " 1016 1016 set optim90=" $optim90 -module $libo " 1017 else if ( $FC_LINUX == 'g 95' ) then1018 set optimtru90=" $optimtru90 - fmod=$libo "1019 set optim90=" $optim90 - fmod=$libo "1017 else if ( $FC_LINUX == 'gfortran' ) then 1018 set optimtru90=" $optimtru90 -I$libo " 1019 set optim90=" $optim90 -I$libo " 1020 1020 else if ( $FC_LINUX == 'gfortran' ) then 1021 1021 set optimtru90=" $optimtru90 -M $libo "
Note: See TracChangeset
for help on using the changeset viewer.