make.fimm 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Knuts home directory (contains some libs/includes)
  2. KHOME = /home/fimm/nersc/knutali/
  3. #Compiler -- F90
  4. CF90 = /local/openmpi/bin/mpif90
  5. #Compiler -- F77
  6. CF77 = $(CF90)
  7. # Compiler -- C
  8. CC=/local/openmpi/bin/mpicc
  9. #Linker
  10. LD = $(CF90)
  11. #Paralellization opts
  12. #PARO = -openmp
  13. PARO =
  14. #Size defaults - Change to real_size 64 for default double...
  15. SIZEO = -real_size 64 -double_size 64
  16. #SIZEO =
  17. #Arch opts
  18. ARCHO=
  19. #Optimalization opts
  20. OPTO= -O2
  21. #Inlining opts
  22. #INLO= -ip
  23. INLO=
  24. # Diverse options -swap endian IO -use medium memory model
  25. DIVO= -convert big_endian -mcmodel=medium
  26. # Flags for debugging. Empty optimization (OPTO above) to use debugging properly
  27. #
  28. #DEBUG_FLAGS = -g -check bounds -fpstkchk -traceback -fpe0
  29. DEBUG_FLAGS = -g -check all -traceback -fpe0 -CA -CB -CS -CU -CV
  30. #DEBUG_FLAGS =
  31. CFLAGS = -O
  32. F77FLG = -fixed
  33. F90FLG = -free
  34. # C preprocessor
  35. CPP = /usr/bin/cpp
  36. #CPP flags
  37. CPPARCH = -traditional -DIA32 -DFFTW
  38. #This uses the OpenMPI implementation of mpi-2
  39. LIBS = -L/local/netcdf/lib/ -lnetcdf -L/local/openmpi/lib/ -lmpi \
  40. -L/local/fftw/lib/ -lfftw3 \
  41. -L/local/acml/ifort64/lib/ -lacml_mv -lacml -lg2c
  42. # Include dir for header and module files
  43. INCLUDEDIR= -I/local/netcdf/include -I/local/fftw/include \
  44. -I/local/openmpi/include
  45. # Put together flags
  46. FFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(INCLUDEDIR)
  47. LINKFLAGS = $(SIZEO) $(OPTO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS)