/[lmdze]/trunk/Compilers/sxf90.mk
ViewVC logotype

Diff of /trunk/Compilers/sxf90.mk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by guez, Wed Feb 27 13:16:39 2008 UTC revision 19 by guez, Thu Aug 7 15:46:20 2008 UTC
# Line 1  Line 1 
1  # These are compiler dependent macros, meant to be included in the  # These are compiler dependent macros, meant to be included in the
2  # LMDZE makefile.  # makefile for LMDZE.
3    
4  # For "sxf90" 2.0 on Brodie  # For "sxf90" 2.0
5    
 COMPILE.f = $(FC) $(F90FLAGS) -c  
6  FC = sxf90  FC = sxf90
7    
8    netcdf_inc_dir = /SXlocal/pub/netCDF/3.6.1/include
9    netcdf_lib_dir = /SXlocal/pub/netCDF/3.6.1/lib
10    
11    numer_rec_dir = ${workdir}/lib/Numer_Rec_Lionel/f
12    netcdf95_dir = ${workdir}/lib/NetCDF95_sxf90
13    IOIPSL_dir = ${workdir}/lib/IOIPSL_Lionel_am
14    
15  # Include flags:  # Include flags:
16  inc_flags = -I${libf_dir} -I${libf_dir}/dyn3d -I${libf_dir}/phylmd -I${libf_dir}/filtrez -I/SXlocal/pub/netCDF/3.6.1/include -I${workdir}/lib/IOIPSL_Lionel_ah -I${workdir}/lib/Numer_Rec_Lionel_f  inc_flags = $(addprefix -I, ${libf_dir} ${libf_dir}/dyn3d ${libf_dir}/phylmd ${libf_dir}/filtrez ${netcdf_inc_dir} ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir})
17    
18  # Other flags which do not affect run time performance:  # Other flags which do not affect run time performance:
19  lang_flags = -f4 -Nw -Wf "-msg b -msg d -msg o -s"  lang_flags = -f4 -Nw -Wf "-msg b -msg d -msg o -s"
20    
21  # Flags which affect run time performance:  # Flags which affect run time performance:
22  perf_flags =  perf_flags = -Cdebug -eP -eR -Pstack -Wf "-init heap=nan -init stack=nan -K a -M zdiv flovf fxovf inv setall -stmtid"
23    
 ##-Cdebug -eP -eR -Pstack -Wf "-init heap=nan -init stack=nan -K a -M zdiv flovf fxovf inv setall -stmtid"  
24  # "-M flunf" produces an error in "jacobi"  # "-M flunf" produces an error in "jacobi"
25    
26  FFLAGS = ${inc_flags} ${perf_flags}  FFLAGS = ${inc_flags} ${perf_flags}
27  F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags}  F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags}
28    
29  LDFLAGS =  LDFLAGS = -Wl "-f nan"
 ##-Wl "-f nan"  
30  # "-Wl,-f nan" requires "-Wf,-K a"  # "-Wl,-f nan" requires "-Wf,-K a"
31    
32  LDLIBS = -L${workdir}/lib/IOIPSL_Lionel_ah -lioipsl -L/SXlocal/pub/netCDF/netCDF-3.6.1/lib -lnetcdf -L${workdir}/lib/Numer_Rec_Lionel_f -lnumer_rec  LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir}) -lioipsl -lnetcdf95 -lnetcdf -lnumer_rec

Legend:
Removed from v.18  
changed lines
  Added in v.19

  ViewVC Help
Powered by ViewVC 1.1.21