make.mn4 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Library and include
  2. INC_NETCDF = -I/apps/NETCDF/4.4.1.1/INTEL/IMPI/include
  3. LIB_NETCDF = -L/apps/NETCDF/4.4.1.1/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. #LIB_LAPACK = -L/apps/INTEL/2017.4/mkl/lib/ -llapack
  8. #LIBBLAS = -L/apps/INTEL/2017.4/mkl/lib/ -lblas
  9. LIB_MKL = -L/apps/INTEL/2017.4/mkl/lib/intel64 -lmkl_rt
  10. INC_FFT = -I/gpfs/apps/MN3/FFTW/3.3/GCC+IMPI/include
  11. LIB_FFT = -I/gpfs/apps/MN3/FFTW/3.3/GCC+IMPI/lib -fftw3 -fftw3-mpi
  12. INCS = $(INC_NETCDF) $(INC_FFT)
  13. LIBS = $(LIB_NETCDF) $(INC_NETCDF) $(LIB_FFT) $(LIB_MKL) # $(LIB_LAPACK) $(LIBBLAS)
  14. CF90 = /apps/INTEL/2017.4/impi/2017.3.196/bin64/mpif90
  15. PARO =
  16. CPPFLAGS = -DQMPI
  17. CF77 = $(CF90)
  18. LD = $(CF90)
  19. CPP = /apps/INTEL/2017.4/bin/fpp
  20. CC = /apps/INTEL/2017.4/bin/icc
  21. CPPARCH =
  22. CPPFLAGS +=
  23. SIZEO = -r8
  24. OPTO = -O3
  25. #ARCHO = -fno-second-underscore
  26. INLO =
  27. DIVO =
  28. DEBUG_FLAGS = -g -traceback -W1 -warn unused -warn uncalled -debug extended -debug-parameters -ftrapuv -fpe0
  29. FFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(INCS)
  30. #CFLAGS = $(FFLAGS) -Df2cFortran
  31. CFLAGS = -O3 $(INCS) # -r8 (seems to be default) -Df2cFortran $(INCS)
  32. LINKFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(LIBS)
  33. # language-specific flags
  34. #
  35. F77FLG =
  36. F90FLG =