source: CONFIG/UNIFORM/v6/IPSLCM6/SOURCES/OASIS3-MCT/make_X64_JEANZAY

Last change on this file was 4768, checked in by aclsce, 2 years ago
  • Added JEANZAY configuration file for oasis3-MCT.
File size: 2.2 KB
Line 
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)
8CHAN            = MPI1
9#
10# Paths for libraries, object files and binaries
11#
12# COUPLE        : path for oasis3-mct main directory. Filled with ins_make.
13COUPLE          =
14#
15# ARCHDIR       : directory created when compiling
16ARCHDIR         = $(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
26NETCDF_INCLUDE  = .
27NETCDF_LIBRARY  = -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz -lcurl
28
29#
30# Compiling and other commands
31MAKE        = gmake
32F90         = mpiifort
33F           = $(F90)
34f90         = $(F90)
35f           = $(F90)
36CC          = mpiicc
37LD          = mpiifort
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.
49f90FLAGS_1  = $(F90FLAGS_1)
50FFLAGS_1    = $(F90FLAGS_1)
51fFLAGS_1    = $(F90FLAGS_1)
52CCFLAGS_1   = -O2
53LDFLAGS     =
54#
55###################
56#
57# Additional definitions that should not be changed
58#
59FLIBS           = $(NETCDF_LIBRARY)
60# BINDIR        : directory for executables
61BINDIR          = $(ARCHDIR)/bin
62# LIBBUILD      : contains a directory for each library
63LIBBUILD        = $(ARCHDIR)/build/lib
64# INCPSMILE     : includes all *o and *mod for each library
65INCPSMILE       = -I$(LIBBUILD)/psmile.$(CHAN) -I$(LIBBUILD)/mct -I$(LIBBUILD)/scrip
66#
67F90FLAGS  = $(F90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE)
68f90FLAGS  = $(f90FLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE)
69FFLAGS    = $(FFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE)
70fFLAGS    = $(fFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE)
71CCFLAGS   = $(CCFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE)
72#
73#############################################################################
Note: See TracBrowser for help on using the repository browser.