source: CONFIG/UNIFORM/v6/IPSLCM5A2/SOURCES/OASIS3-MCT/make_X64_IRENE @ 3949

Last change on this file since 3949 was 3949, checked in by aclsce, 6 years ago
  • Added configuration files to run oasis and nemo on irene for IPSLCM5A2.1 configuration
File size: 2.6 KB
Line 
1#
2# Include file for OASIS3 Makefile for a Linux system using
3# Portland Group Fortran Compiler and MPICH
4#
5###############################################################################
6#
7# CHAN  : communication technique used in OASIS3 (MPI1/MPI2/NONE)
8CHAN            = MPI1
9#
10# Paths for libraries, object files and binaries
11#
12# COUPLE        : path for oasis3-mct main directory
13COUPLE          = /ccc/cont003/dsku/perle2/home/app/gencmip6/p86caub/IPSLCM5A2_IRENE/modipsl/oasis3-mct
14#
15# ARCHDIR       : directory created when compiling
16ARCHDIR         = $(COUPLE)/BLD
17#
18# MPI library
19#For machines in training room, put MPIDIR      = /usr/local/pgi/linux86-64/9.0/mpi/mpich/
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
26NETCDFC_INCLUDE  = ${NETCDFC_INCDIR}
27NETCDFF_INCLUDE = ${NETCDFFORTRAN_INCDIR}
28NETCDF_LIBRARY  = -L${NETCDFC_LIBDIR} -lnetcdf -L${NETCDFFORTRAN_LIBDIR} -lnetcdff
29#
30# Compiling and other commands
31MAKE        = gmake
32F90         = mpif90
33F           = $(F90)
34f90         = $(F90)
35f           = $(F90)
36CC          = mpicc
37LD          = mpif90
38AR          = ar
39ARFLAGS     = -ruv
40#
41# CPP keys and compiler options
42#
43#CPPDEF    = -Duse_libMPI -Duse_netCDF -Duse_comm_$(CHAN) -DDEBUG -D__VERBOSE -DTMG_PERF
44CPPDEF    = -Duse_libMPI -Duse_netCDF -Duse_comm_$(CHAN) -DTMG_PERF
45#
46# -g is necessary in F90FLAGS and LDFLAGS for pgf90 versions lower than 6.1
47#
48F90FLAGS_1  = -O2 -I.
49#F90FLAGS_1  = -O3 -xAVX -I. -fp-model precise
50f90FLAGS_1  = $(F90FLAGS_1)
51FFLAGS_1    = $(F90FLAGS_1)
52fFLAGS_1    = $(F90FLAGS_1)
53CCFLAGS_1   = -O2
54LDFLAGS     =
55#
56###################
57#
58# Additional definitions that should not be changed
59#
60FLIBS           = $(NETCDF_LIBRARY)
61# BINDIR        : directory for executables
62BINDIR          = $(ARCHDIR)/bin
63# LIBBUILD      : contains a directory for each library
64LIBBUILD        = $(ARCHDIR)/build/lib
65# INCPSMILE     : includes all *o and *mod for each library
66INCPSMILE       = -I$(LIBBUILD)/psmile.$(CHAN) -I$(LIBBUILD)/mct -I$(LIBBUILD)/scrip
67#
68F90FLAGS  = $(F90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDFC_INCLUDE) -I$(NETCDFF_INCLUDE)
69f90FLAGS  = $(f90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDFC_INCLUDE) -I$(NETCDFF_INCLUDE)
70FFLAGS    = $(FFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDFC_INCLUDE) -I$(NETCDFF_INCLUDE)
71fFLAGS    = $(fFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDFC_INCLUDE) -I$(NETCDFF_INCLUDE)
72CCFLAGS   = $(CCFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDFC_INCLUDE) -I$(NETCDFF_INCLUDE)
73#
74#############################################################################
Note: See TracBrowser for help on using the repository browser.