Changeset 1789
- Timestamp:
- Jul 16, 2013, 4:41:41 PM (11 years ago)
- Location:
- LMDZ5/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/bld.cfg
r1785 r1789 106 106 bld::outfile_ext::mod .mod 107 107 bld::tool::SHELL /bin/bash 108 bld::tool::SHELL /bin/ksh -
LMDZ5/trunk/makegcm
r1785 r1789 23 23 set OPTIMI='-C debug -eC ' 24 24 set OPTIMI=' -ftrace ' 25 set OPT_LINUX="- O3 -fdefault-real-8 -DNC_DOUBLE"26 set OPT_LINUX="- O3 -fdefault-real-8 -DNC_DOUBLE"25 set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE" 26 set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE" 27 27 set io=ioipsl 28 28 set cosp=false 29 29 30 set FC_LINUX=g fortran31 set FC_LINUX=g fortran32 #set FC_LINUX=g fortran33 if ( $FC_LINUX == g fortran) then34 set OPT_LINUX="- O3 -fdefault-real-8 -DNC_DOUBLE"30 set FC_LINUX=g95 31 set FC_LINUX=g95 32 #set FC_LINUX=g95 33 if ( $FC_LINUX == g95 ) then 34 set OPT_LINUX="-i4 -O3 -r8 -DNC_DOUBLE" 35 35 else if ( $FC_LINUX == gfortran ) then 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"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" 39 39 else 40 40 # pgf90 options 41 set OPT_LINUX="- O3 -fdefault-real-8 -DNC_DOUBLE"41 set OPT_LINUX="-i4 -O3 -r8 -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 / home/users/uglmd/lmdz/MAMBO/LMDZXIOS/LMDZtrunk/netcdf-4.0.1/include57 setenv NCDFLIB / home/users/uglmd/lmdz/MAMBO/LMDZXIOS/LMDZtrunk/netcdf-4.0.1/lib56 setenv NCDFINC /tmpdir/fairhead/Aqua/LMDZ20120327.trunk/netcdf-4.0.1/include 57 setenv NCDFLIB /tmpdir/fairhead/Aqua/LMDZ20120327.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 / home/users/uglmd/lmdz/MAMBO/LMDZXIOS/LMDZtrunk/netcdf-4.0.1/lib109 echo for instance: "setenv NCDFLIB /d3/idelkadi/MODELE_LMDZ/LMDZ20121005.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 / home/users/uglmd/lmdz/MAMBO/LMDZXIOS/LMDZtrunk/netcdf-4.0.1/include114 echo for instance: "setenv NCDFINC /d3/idelkadi/MODELE_LMDZ/LMDZ20121005.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 fortran|| $FC_LINUX == gfortran ) then264 if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 || $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 fortran' ) then521 else if ( $FC_LINUX == 'g95' ) 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 " … … 841 841 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf " 842 842 endif 843 else if ($FC_LINUX == 'g fortran' || $FC_LINUX == 'gfortran' ) then843 else if ($FC_LINUX == 'g95' || $FC_LINUX == 'gfortran' ) then 844 844 if ( $io == "ioipsl" ) then 845 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl-lnetcdf "845 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdff -lnetcdf -lioipsl -lnetcdff -lnetcdf " 846 846 else 847 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf "847 set opt_link="$opt_link -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdff -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 fortran' ) then1018 set optimtru90=" $optimtru90 - I$libo "1019 set optim90=" $optim90 - I$libo "1017 else if ( $FC_LINUX == 'g95' ) then 1018 set optimtru90=" $optimtru90 -fmod=$libo " 1019 set optim90=" $optim90 -fmod=$libo " 1020 1020 else if ( $FC_LINUX == 'gfortran' ) then 1021 1021 set optimtru90=" $optimtru90 -M $libo " -
LMDZ5/trunk/makelmdz
r1785 r1789 364 364 CPP_KEY="$CPP_KEY CPP_VEGET ORCHIDEE_NOOPENMP" 365 365 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 366 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate 366 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 367 367 elif [[ "$veget" == "true" ]] 368 368 then … … 372 372 CPP_KEY="$CPP_KEY CPP_VEGET" 373 373 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 374 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate 374 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 375 375 elif [[ "$veget" != "false" ]] 376 376 then -
LMDZ5/trunk/makelmdz_fcm
r1785 r1789 261 261 CPP_KEY="$CPP_KEY CPP_VEGET ORCHIDEE_NOOPENMP" 262 262 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 263 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate 263 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 264 264 elif [[ "$veget" == "true" ]] 265 265 then … … 269 269 CPP_KEY="$CPP_KEY CPP_VEGET" 270 270 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 271 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate 271 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 272 272 elif [[ "$veget" != "false" ]] 273 273 then
Note: See TracChangeset
for help on using the changeset viewer.