# Purpose # ------- # Makefile macros for vu.nci.org.au. # # 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 # # CABLEFLAGS Options to pass to the Fortran 90 compiler for CABLE # # 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 Dec 11 Steven Phipps Original version # 2009 Aug 11 Steven Phipps Added compile information for CABLE # 2009 Sep 22 Bernard Pak Modified from the XE macros CPP = fpp CPPFLAGS = FC = ifort F90 = $(FC) # normal optimized mode FFLAGS = -fpe0 -openmp -align dcommons -r8 -warn nouncalled CABLEFLAGS = -O1 -fpe0 -openmp # normal optimized mode + model precise #FFLAGS = -fpe0 -openmp -fp-model precise -ftz -align dcommons -r8 -warn nouncalled #CABLEFLAGS = -O1 -fpe0 -openmp -fp-model precise -ftz F90FLAGS = $(FFLAGS) FIXEDFLAGS = $(FFLAGS) -fixed AUTO = $(FC) AUTOFLAGS = $(FFLAGS) INC = -I/apps/netcdf/3.6.3/include/Intel -I/apps/netcdf/3.6.3/include #LIB = -L/apps/netcdf/3.6.3/lib/Intel -L/apps/fftw2/2.1.5/Intel/lib # LIB for debugging LIB = -L/apps/netcdf/3.6.3/lib/Intel -L/apps/fftw2/2.1.5/Intel/lib -L/apps/totalview/totalview.8.7.0-3/toolworks/totalview.8.7.0-3/linux-x86-64/lib INC = -I/opt/netcdf/include LIB = -L/opt/fftw/lib -L/opt/netcdf/lib