make.mn3 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Library and include
  2. INC_NETCDF = -I/apps/NETCDF/4.3.2/INTEL/IMPI/include
  3. LIB_NETCDF = -L/apps/NETCDF/4.3.2/INTEL/IMPI/lib -lnetcdf -lnetcdff
  4. #LIB_LAPACK = -L/opt/intel/mkl/9.0/lib/em64t -lmkl_lapack -lmkl_em64t -lguide -lpthread
  5. LIB_LAPACK = -L/apps/LAPACK/3.4.2/INTEL/lib -llapack
  6. LIBBLAS = -L/apps/OPENBLAS/0.2.14/GCC/OPENMPI/lib -lblas
  7. INC_FFT = -I/gpfs/apps/MN3/FFTW/3.3/GCC+IMPI/include
  8. LIB_FFT = -I/gpfs/apps/MN3/FFTW/3.3/GCC+IMPI/lib -fftw3 -fftw3-mpi
  9. INCS = $(INC_NETCDF) $(INC_FFT)
  10. LIBS = $(LIB_LAPACK) $(LIBBLAS) $(LIB_NETCDF) $(INC_NETCDF) $(LIB_FFT)
  11. CF90 = /apps/INTEL/impi/4.1.3.049/intel64/bin/mpif90
  12. PARO =
  13. CPPFLAGS = -DQMPI
  14. CF77 = $(CF90)
  15. LD = $(CF90)
  16. CPP = /gpfs/apps/MN3/INTEL/2013_sp1.2.144/bin/fpp
  17. CC = /gpfs/apps/MN3/INTEL/2013_sp1.2.144/bin/icc
  18. CPPARCH =
  19. CPPFLAGS +=
  20. SIZEO = -r8
  21. OPTO = -O3
  22. #ARCHO = -fno-second-underscore
  23. INLO =
  24. DIVO =
  25. DEBUG_FLAGS = -g -traceback -W1 -warn unused -warn uncalled -debug extended -debug-parameters -ftrapuv -fpe0
  26. FFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(INCS)
  27. #CFLAGS = $(FFLAGS) -Df2cFortran
  28. CFLAGS = -O3 $(INCS) # -r8 (seems to be default) -Df2cFortran $(INCS)
  29. LINKFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(LIBS)
  30. # language-specific flags
  31. #
  32. F77FLG =
  33. F90FLG =