make.ve 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Knuts home directory (contains some libs/includes)
  2. #KHOME = /home/fimm/nersc/knutali/
  3. KHOME =
  4. #Compiler -- F90
  5. CF90 = ifort
  6. #CF90 = /local/openmpi/bin/mpif90
  7. #Compiler -- F77
  8. CF77 = $(CF90)
  9. # Compiler -- C
  10. CC=icc
  11. #CC=/local/openmpi/bin/mpicc
  12. #Linker
  13. LD = $(CF90)
  14. #Paralellization opts
  15. PARO = -lmpi
  16. #PARO =
  17. #Size defaults - Change to real_size 64 for default double...
  18. SIZEO = -real_size 64 -double_size 64
  19. #SIZEO =
  20. #Arch opts
  21. ARCHO=
  22. #Optimalization opts
  23. #OPTO=
  24. OPTO= -O3 -xSSE4.2
  25. #Inlining opts
  26. INLO= -ip
  27. #INLO=
  28. # Diverse options -swap endian IO -use medium memory model
  29. DIVO= -convert big_endian -shared-intel -mcmodel=medium
  30. # Flags for debugging. Empty optimization (OPTO above) to use debugging properly
  31. #
  32. #DEBUG_FLAGS = -g -check bounds -fpstkchk -traceback -fpe0
  33. #DEBUG_FLAGS = -g -check all -traceback -fpe0 -CA -CB -CS -CU -CV
  34. DEBUG_FLAGS = -g -cm -vec_report0 -w
  35. CFLAGS = -O -shared-intel -mcmodel=medium
  36. F77FLG = -fixed
  37. F90FLG = -free
  38. # C preprocessor
  39. CPP = cpp -P
  40. #CPP = /usr/bin/cpp
  41. #CPP flags
  42. #CPPARCH = -traditional -DIA32 -DFFTW
  43. #CPPARCH = #-DIA32 -DREAL8 -DSERIAL_IO -DTIMER -DFFTW #-DENDIAN_IO
  44. CPPARCH = -DF90_NOFLUSH #-DIA32 -DREAL8 -DSERIAL_IO -DTIMER -DFFTW #-DENDIAN_IO
  45. CPPFLAGS = -P $(CPPARCH) -ansi -DQMPI
  46. #This uses the OpenMPI implementation of mpi-2
  47. #LIBS = -L/local/netcdf/lib/ -lnetcdf -L/local/openmpi/lib/ -lmpi \
  48. # -L/local/fftw/lib/ -lfftw3 \
  49. # -L/local/acml/ifort64/lib/ -lacml_mv -lacml -lg2c
  50. LIBS = -mkl=sequential #parallel \
  51. # -L/prod/forecast/opt/lib -lfftw3
  52. # -L/store/hengedahl/lib/fftw-3.3/out/lib -lfftw3 \
  53. # -L/store/tuccillo/libs/netcdf-3.6.2/lib -lnetcdf
  54. # Include dir for header and module files
  55. #INCLUDEDIR= -I/local/netcdf/include -I/local/fftw/include \
  56. #-I/local/openmpi/include
  57. #INCLUDEDIR= -I/store/hengedahl/lib/fftw-3.3/out/include \
  58. INCLUDEDIR=
  59. # -I/sw/sdev/Modules/netcdf/netcdf-3.6.2/include/
  60. # -I/store/tuccillo/libs/netcdf-3.6.2/include
  61. # Put together flags
  62. FFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(INCLUDEDIR)
  63. LINKFLAGS = $(SIZEO) $(OPTO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) \
  64. -lnetcdff -lnetcdf -lmpi