# # Include file for OASIS3 Makefile for a Linux system using # Portland Group Fortran Compiler and MPICH # ############################################################################### # # CHAN : MPI1/MPI2 CHAN = MPI1 # # Paths for libraries, object files and binaries # # COUPLE : path for oasis3-mct main directory COUPLE = /lus/nid00030/cht/EC-Earth_2.2/oasis3-mct # # ARCHDIR : directory created when compiling ARCHDIR = $(COUPLE)/crayxt # # MPI library MPIDIR = MPIBIN = MPI_INCLUDE = MPILIB = # # NETCDF library NETCDFDIR=$(CRAY_NETCDF_DIR)/netcdf-cce-real64 NETCDF_INCLUDE = $(NETCDFDIR)/include NETCDF_LIBRARY = -L$(NETCDFDIR)/lib -lnetcdf # # # Compiling and other commands MAKE = make F90 = ftn F = $(F90) f90 = $(F90) f = $(F90) CC = cc LD = ftn AR = ar ARFLAGS = -ruv # # compiler options and cpp keys # CPPDEF = -Duse_comm_$(CHAN) -D__VERBOSE -DTREAT_OVERLAY # # -g is necessary in F90FLAGS and LDFLAGS for pgf90 versions lower than 6.1 # For compiling in double precision, put -r8 # For compiling in single precision, remove -r8 and add -Duse_realtype_single # F90FLAGS_1 = -sreal64 -h byteswapio -O3 f90FLAGS_1 = $(F90FLAGS_1) FFLAGS_1 = $(F90FLAGS_1) fFLAGS_1 = $(F90FLAGS_1) CCFLAGS_1 = LDFLAGS = -sreal64 -h byteswapio -O3 # ################### # # Additional definitions that should not be changed # FLIBS = $(NETCDF_LIBRARY) # BINDIR : directory for executables BINDIR = $(ARCHDIR)/bin # LIBBUILD : contains a directory for each library LIBBUILD = $(ARCHDIR)/build/lib # INCPSMILE : includes all *o and *mod for each library INCPSMILE = -I$(LIBBUILD)/psmile.$(CHAN) -I$(LIBBUILD)/scrip -I$(LIBBUILD)/mct F90FLAGS = $(F90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) f90FLAGS = $(f90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) FFLAGS = $(FFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) fFLAGS = $(fFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) CCFLAGS = $(CCFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) # # #############################################################################