make.njord 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. INC_NETCDF = -I/usr/local/netcdf/netcdf-3.6.2/include
  2. LIB_NETCDF= /usr/local/netcdf/netcdf-3.6.2/lib/libnetcdf.a
  3. LIB_LAPACK = /usr/local/lapack/lapack-3.0.20021004/lib/liblapack.a
  4. INCS = $(INC_NETCDF)
  5. LIBS = -lessl -lmass $(LIB_LAPACK) $(LIB_NETCDF)
  6. CPPARCH = -DAIX -Df2cFortran
  7. CPPFLAGS += -P $(CPPARCH) -DF90_NOFLUSH -ansi
  8. ifeq ($(MPI),YES)
  9. CF90 = mpxlf95_r
  10. PARO = -qsmp=omp
  11. CC = mpcc_r
  12. else
  13. CF90 = xlf95_r
  14. PAR0 =
  15. CC = xlc
  16. endif
  17. CF77 = $(CF90)
  18. LD = $(CF90)
  19. CPP = cpp
  20. SIZEO = -b64 -q64 -qrealsize=8
  21. OPTO = -O2 -qstrict
  22. ARCHO= -qarch=auto -qtune=auto -qcache=auto
  23. INLO =
  24. DIVO= -qmaxmem=-1 -qnosave
  25. # Flags for debugging -- slow, gives location of SIGTRAP
  26. # -g -- turns on debugging ...
  27. # -qfloat -- options for floating point operations
  28. # -qflttrap -- Floating point operation traps
  29. # -qextchk -- Checks if subroutine args are consistent + common block checks
  30. # -C -- Checks array bounds
  31. # qinitauto=FF initializes all vars to NaN -- So that uninitialized vars can be detected
  32. #DEBUG_FLAGS = -C -qflttrap=underflow:overflow:zerodivide:invalid:enable -qextchk -qinitauto=FF -qfloat=nofold:nohssngl:nans -g
  33. DEBUG_FLAGS =
  34. FFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(INCS)
  35. CFLAGS = -O2 -DpgiFortran
  36. LINKFLAGS = $(SIZEO) $(OPTO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) -bloadmap:load.out
  37. # language-specific flags
  38. #
  39. F77FLG = -qfixed
  40. F90FLG = -qsuffix=f=f90 -qfree=f90