source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/oasis3-mct/util/make_dir/make.intelmpi18_training @ 5725

Last change on this file since 5725 was 5725, checked in by aclsce, 3 years ago

Added new oasis3-MCT version to be used to handle ensembles simulations with XIOS.

File size: 2.9 KB
Line 
1#
2# Include file for OASIS3 Makefile for a Linux system using
3# Intel compilers and MPI
4#
5###############################################################################
6#
7# CHAN  : communication technique used in OASIS3 (MPI1/MPI2)
8CHAN            = MPI1
9#
10# Paths for libraries, object files and binaries
11#
12# COUPLE        : path for oasis3-mct main directory
13COUPLE          = $(HOME)/oasis3-mct
14#
15# ARCHDIR       : directory created when compiling
16ARCHDIR         = $(COUPLE)/compile_intelmpi_training
17#
18# MPI library ((see the file /etc/modulefiles/mpi/openmpi-x86_64)
19MPIDIR      = /usr/local/intel/impi/2018.1.163
20MPIBIN      = $(MPIDIR)/bin64
21MPI_INCLUDE = $(MPIDIR)/include64
22MPILIB      = -L$(MPIDIR)/lib64
23MPIRUN      = $(MPIBIN)/mpirun
24#
25# NETCDF library of the system
26NETCDF_LIB_DIR1=/softs/local_intel/netcdf-fortran/4.4.4_phdf5/lib
27NETCDF_LIB_DIR2=/softs/local_intel/netcdf-c/4.6.1_phdf5/lib
28NETCDF_INCLUDE1=/softs/local_intel/netcdf-fortran/4.4.4_phdf5/include
29NETCDF_INCLUDE2=/softs/local_intel/netcdf-c/4.6.1_phdf5/include
30NETCDF_LIBRARY  =  -Wl,-rpath,/softs/local_intel/netcdf-fortran/4.4.4_phdf5/lib -L/softs/local_intel/netcdf-fortran/4.4.4_phdf5/lib -Wl,-rpath,/softs/local_intel/netcdf-c/4.6.1_phdf5/lib -L/softs/local_intel/netcdf-c/4.6.1_phdf5/lib -lnetcdff -lnetcdf
31#
32# Compiling and other commands
33MAKE        = gmake
34F90         = $(MPIBIN)/mpiifort -I$(MPI_INCLUDE)
35F           = $(F90)
36f90         = $(F90)
37f           = $(F90)
38CC          = $(MPIBIN)/mpiicc -I$(MPI_INCLUDE)
39LD          = $(MPIBIN)/mpiifort $(MPILIB)
40# Shared libraries options
41DYNOPT      = -fPIC
42LDDYNOPT    = -shared
43# Static archiver
44AR          = ar
45ARFLAGS     = -ruv
46#
47# CPP keys and compiler options
48
49CPPDEF    = -Duse_comm_$(CHAN) -D__VERBOSE -DTREAT_OVERLAY
50#
51#
52#F90FLAGS_1  = -g -ffree-line-length-0 -fbounds-check -fopenmp
53F90FLAGS_1  = -g -traceback -O2 -xAVX -I. -assume byterecl -mt_mpi -qopenmp
54f90FLAGS_1  = $(F90FLAGS_1)
55FFLAGS_1    = $(F90FLAGS_1)
56fFLAGS_1    = $(F90FLAGS_1)
57CCFLAGS_1   =
58LDFLAGS     = $(F90FLAGS_1)
59#
60#
61###################
62#
63# Additional definitions that should not be changed
64#
65FLIBS           = $(NETCDF_LIBRARY)
66# BINDIR        : directory for executables
67BINDIR          = $(ARCHDIR)/bin
68# LIBBUILD      : contains a directory for each library
69LIBBUILD        = $(ARCHDIR)/build/lib
70# INCPSMILE     : includes all *o and *mod for each library
71INCPSMILE       = -I$(ARCHDIR)/include
72
73F90FLAGS  = $(F90FLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
74f90FLAGS  = $(f90FLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
75FFLAGS    = $(FFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
76fFLAGS    = $(fFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
77CCFLAGS   = $(CCFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
78LDFLAGS   = $(F90FLAGS_1)
79#
80#############################################################################
Note: See TracBrowser for help on using the repository browser.