1 | # |
---|
2 | # Include file for OASIS3 Makefile for a Linux system using |
---|
3 | # Intel Fortran Compiler |
---|
4 | # |
---|
5 | ############################################################################### |
---|
6 | # |
---|
7 | # CHAN : communication technique used in OASIS3 (MPI1/MPI2/NONE) |
---|
8 | CHAN = MPI1 |
---|
9 | # |
---|
10 | # Paths for libraries, object files and binaries |
---|
11 | # |
---|
12 | # COUPLE : path for oasis3-mct main directory. Filled with ins_make. |
---|
13 | COUPLE = |
---|
14 | # |
---|
15 | # ARCHDIR : directory created when compiling |
---|
16 | ARCHDIR = $(COUPLE)/BLD |
---|
17 | # |
---|
18 | # MPI library |
---|
19 | # not required on ada |
---|
20 | #MPIDIR = /opt/mpi/bullxmpi/1.1.16.5 |
---|
21 | #MPIBIN = $(MPIDIR)/bin |
---|
22 | #MPI_INCLUDE = $(MPIDIR)/include |
---|
23 | #MPILIB = -L$(MPIDIR)/lib |
---|
24 | # |
---|
25 | # NETCDF library : 4.1.3 and HDF5 library : 1.8.9 forced |
---|
26 | NETCDF_INCLUDE = /smplocal/pub/NetCDF/4.1.3/mpi/include |
---|
27 | NETCDF_LIBRARY = -L/smplocal/pub/NetCDF/4.1.3/mpi/lib -lnetcdff -lnetcdf -lnetcdf_c++ -L/smplocal/pub/HDF5/1.8.9/par/lib -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -Bdynamic -lz |
---|
28 | # |
---|
29 | # Compiling and other commands |
---|
30 | MAKE = gmake |
---|
31 | F90 = mpiifort |
---|
32 | F = $(F90) |
---|
33 | f90 = $(F90) |
---|
34 | f = $(F90) |
---|
35 | CC = mpiicc |
---|
36 | LD = mpiifort |
---|
37 | AR = ar |
---|
38 | ARFLAGS = -ruv |
---|
39 | # |
---|
40 | # CPP keys and compiler options |
---|
41 | # |
---|
42 | #CPPDEF = -Duse_libMPI -Duse_netCDF -Duse_comm_$(CHAN) -DDEBUG -D__VERBOSE -DTMG_PERF |
---|
43 | CPPDEF = -Duse_libMPI -Duse_netCDF -Duse_comm_$(CHAN) -DTMG_PERF |
---|
44 | # |
---|
45 | # -g is necessary in F90FLAGS and LDFLAGS for pgf90 versions lower than 6.1 |
---|
46 | # |
---|
47 | F90FLAGS_1 = -O2 -I. |
---|
48 | f90FLAGS_1 = $(F90FLAGS_1) |
---|
49 | FFLAGS_1 = $(F90FLAGS_1) |
---|
50 | fFLAGS_1 = $(F90FLAGS_1) |
---|
51 | CCFLAGS_1 = -O2 -xAVX |
---|
52 | LDFLAGS = |
---|
53 | # |
---|
54 | ################### |
---|
55 | # |
---|
56 | # Additional definitions that should not be changed |
---|
57 | # |
---|
58 | FLIBS = $(NETCDF_LIBRARY) |
---|
59 | # BINDIR : directory for executables |
---|
60 | BINDIR = $(ARCHDIR)/bin |
---|
61 | # LIBBUILD : contains a directory for each library |
---|
62 | LIBBUILD = $(ARCHDIR)/build/lib |
---|
63 | # INCPSMILE : includes all *o and *mod for each library |
---|
64 | INCPSMILE = -I$(LIBBUILD)/psmile.$(CHAN) -I$(LIBBUILD)/mct -I$(LIBBUILD)/scrip |
---|
65 | # |
---|
66 | F90FLAGS = $(F90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) |
---|
67 | f90FLAGS = $(f90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) |
---|
68 | FFLAGS = $(FFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) |
---|
69 | fFLAGS = $(fFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) |
---|
70 | CCFLAGS = $(CCFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE) |
---|
71 | # |
---|
72 | ############################################################################# |
---|