# Purpose # ------- # Makefile macros for a typical Linux/UNIX platform. # # Usage # ----- # The values of the following variables must be set: # # CPP Preprocessor # CPPFLAGS Options to pass to the preprocessor # # FC Fortran compiler # F90 Fortran 90 compiler # FFLAGS Options to pass to the Fortran compiler # F90FLAGS Options to pass to the Fortran 90 compiler # FIXEDFLAGS Options to pass to the Fortran 90 compiler for fixed-format # source files # # AUTO Auto-parallelising compiler (if available) # AUTOFLAGS Options to pass to the auto-parallelising compiler # # INC The directory containing the netCDF header file # LIB The directories containing the netCDF and FFTW libraries # (note that Mk3L is only compatible with FFTW 2.x) # # History # ------- # 2008 Nov 20 Steven Phipps Original version # 2008 Nov 22 Steven Phipps Adding specific compile options for Intel Core # Duo and Core 2 Duo processors CPP = fpp CPPFLAGS = FC = ifort F90 = $(FC) #with ifort 11 the default optimization fails!!!! #it appears the problem is with ocean.f and only compiling this routine with O0works!!! #for the couple model similar issue and compiling inital.f with O0 works! FFLAGS = -fpe0 -openmp -align dcommons -r8 -warn nouncalled # Generic # its runs but no output! #FFLAGS = -fpe0 -O0 -openmp -align dcommons -r8 -warn nouncalled # Generic #FFLAGS = -xP -fpe0 -openmp -align dcommons -r8 -warn nouncalled # Core Duo #FFLAGS = -xT -fpe0 -openmp -align dcommons -r8 -warn nouncalled # Core 2 Duo F90FLAGS = $(FFLAGS) FIXEDFLAGS = $(FFLAGS) -fixed AUTO = $(FC) AUTOFLAGS = $(FFLAGS) INC = -I/opt/netcdf/include LIB = -L/opt/fftw/lib -L/opt/netcdf/lib