# This a a template file that contains all variables to be included in all other Makefiles # This file is commented in detail to help you fine tune your RegCM distribution # Model flags # Set to 1 to enable the tropical band (belt) version USEBAND = 0 # Set to 1 to enable CLM coupling USECLM = 0 # Set to 1 to enable daily cycle SST USEDCSST = 0 # Set to 1 to enable Sea Ice effects USESEAICE = 0 # Base directory: REGCM_BASE_DIR = /home/huanghe/regcm # Binary installation directory BINDIR = /home/huanghe/regcm/Bin # NetCDF library: # The NetCDF library is needed to run RegCM, # RegCM V4 was successfuly tested with NetCDF 4.0.1 # In NETCDFINC you should define the path to NetCDF include files # In NETCDFLIB you should define the path and the name of the NetCDF library NETCDFINC = -I/usr/netcdf/include NETCDFLIB = -L/usr/netcdf/lib -lnetcdf CXXNETCDF = -L/usr/netcdf/lib -lnetcdf_c++ -lnetcdf # PREPROCESSOR AND COMPILER OPTIONS # Use this variable to enable the parallel version of the code # Serial version : leave commented # parallel version : uncomment the line PARALLEL = MPP1 # Add further preprocessor flags, if necessary. Those available are: # -DIBM : to compile using IBM xlf compiler # -DDIAG : to compile enabling Diagnostic capabilities (?) CPPFLAGS = # Automatically added flags ifneq ($(origin PARALLEL), undefined) CPPFLAGS += -D$(PARALLEL) endif ifeq ($(USEBAND),1) CPPFLAGS += -DBAND endif ifeq ($(USECLM),1) CPPFLAGS += -DCLM endif ifeq ($(USESEAICE),1) CPPFLAGS += -DSEAICE endif ifeq ($(USEDCSST),1) CPPFLAGS += -DDCSST endif # Specific compiler flags (eg.: optimization / debugging) # IMPORTANT : Check that your compiler complies with this RegCM features: # - RegCM expects the output to be written in big endian format # - RegCM expects Fortran records to be measured in bytes F90FLAGS = -O3 -byteswapio # Set the Fortran 90 compiler here F90 =/opt/pgi/linux86-64/10.4/bin/pgf90 # Set the C++ compiler here CXX =/opt/pgi/linux86-64/10.4/bin/pgCC # Compilation flags for C++ CXXFLAGS = -fastsse # Set the MPI Fortran 90 compiler here MPIF90 =/usr/local/mpi/bin/mpif90 # Set the linker here # Modify this variable only if you really know what you are doing !!! LD =$(F90) LDFLAGS = # You should not change the lines below unless you are a developer SVNDEF := -D'SVN_REV="$(shell svnversion -n .)"'