# This config file contains the compile options for compilation # of the GSI code on the NOAA HPCS. # ---------------------------------- # Redefine variables for NOAA HPCS # ---------------------------------- COREINC = /nwprod/lib/incmod CORELIB = /nwprod/lib # --------------------------- # General targets/definitions # --------------------------- AR = ar -v # ---------------------------- # Fortran compiler and options # ---------------------------- CF = mpfort FC = $(CF) #--- Normal mode options PROF= #-pg OMP = #-openmp FFLAGS_F90 = -D_REAL8_ FFLAGS_COM_N = -I ./ -O3 -fp-model strict -convert big_endian -assume byterecl \ -implicitnone FFLAGS_N = $(FFLAGS_F90) $(FFLAGS_COM_N) #--- Debug mode options FFLAGS_COM_D = -I ./ -O0 -fp-model strict -convert big_endian -assume byterecl \ -implicitnone -g -traceback -debug -check -warn FFLAGS_D = $(FFLAGS_F90) $(FFLAGS_COM_D) # ---------------------- # C Compiler and options # ---------------------- CC = mpcc #--- Normal mode options CFLAGS_N = -DLINUX -Dfunder -I ./ -DFortranByte=char -DFortranInt=int -DFortranLlong='long long' -O3 #--- Debug mode options CFLAGS_D = -DLINUX -Dfunder -I ./ -DFortranByte=char -DFortranInt=int -DFortranLlong='long long' -g # ------------------ # Linker and options # ------------------ LD = $(CF) #--- Normal mode options LIBS_N = -L$(CORELIB) -lw3nco_4 LDFLAGS_N = -Wl,-Map,loadmap.txt LDFLAGS = $(LDFLAGS_N) #--- Debug mode options LIBS_D = $(LIBS_N) LDFLAGS_D = $(LDFLAGS_N) #--- Empty out mpi library definition: embedded in compiler LIBmpi =