source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/oasis3-mct/util/make_dir/make.intelmpi18_tioman @ 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: 3.3 KB
Line 
1#
2# Include file for OASIS3 Makefile for a Linux system using
3# Intel compilers and MPI
4# Works on tioman with the following modules loaded
5# module load intel/18.0.1.163
6# module load intelmpi/2018.1.163
7# module load lib/phdf5/1.10.4_impi
8# module load lib/netcdf-fortran/4.4.4_phdf5_1.10.4
9# module load python/3.7.7
10#
11###############################################################################
12#
13# CHAN  : communication technique used in OASIS3 (MPI1/MPI2)
14CHAN            = MPI1
15#
16# Paths for libraries, object files and binaries
17#
18# COUPLE        : path for oasis3-mct main directory
19COUPLE          = $(HOME)/oasis3-mct
20#
21# ARCHDIR       : directory created when compiling
22ARCHDIR         = $(COUPLE)/compile_intelmpi_tioman
23#
24# MPI library ((see the file /etc/modulefiles/mpi/openmpi-x86_64)
25MPIDIR      = /softs/intel/impi/2018.1.163
26MPIBIN      = $(MPIDIR)/bin64
27MPI_INCLUDE = $(MPIDIR)/include64
28MPILIB      = -L$(MPIDIR)/lib64
29MPIRUN      = $(MPIBIN)/mpirun
30#
31# NETCDF library of the system
32NETCDF_LIB_DIR1=/softs/local_intel/netcdf-fortran/4.4.4_phdf5/lib
33NETCDF_LIB_DIR2=/softs/local_intel/netcdf-c/4.6.1_phdf5/lib
34NETCDF_INCLUDE1=/softs/local_intel/netcdf-fortran/4.4.4_phdf5/include
35NETCDF_INCLUDE2=/softs/local_intel/netcdf-c/4.6.1_phdf5/include
36NETCDF_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
37#
38# Compiling and other commands
39MAKE        = gmake
40F90         = $(MPIBIN)/mpiifort -I$(MPI_INCLUDE)
41F           = $(F90)
42f90         = $(F90)
43f           = $(F90)
44CC          = $(MPIBIN)/mpiicc -I$(MPI_INCLUDE)
45LD          = $(MPIBIN)/mpiifort $(MPILIB)
46# Shared libraries options
47DYNOPT      = -fPIC
48LDDYNOPT    = -shared
49# Static archiver
50AR          = ar
51ARFLAGS     = -ruv
52# Fortran libraries for C linking
53F2C_LIBS    = -lifcore -lifcoremt -lifport -limf
54#
55# CPP keys and compiler options
56
57CPPDEF    = -Duse_comm_$(CHAN) -D__VERBOSE -DTREAT_OVERLAY
58#
59#
60F90FLAGS_1  = -O2 -xAVX -I. -assume byterecl -mt_mpi -qopenmp
61#F90FLAGS_1  = -g -traceback -fpe0 -O0 -check all -check noarg_temp_created -I.  -assume byterecl -mt_mpi -qopenmp
62f90FLAGS_1  = $(F90FLAGS_1)
63FFLAGS_1    = $(F90FLAGS_1)
64fFLAGS_1    = $(F90FLAGS_1)
65CCFLAGS_1   = -O2 -qopenmp
66LDFLAGS     = $(F90FLAGS_1)
67#
68#
69###################
70#
71# Additional definitions that should not be changed
72#
73FLIBS           = $(NETCDF_LIBRARY)
74# BINDIR        : directory for executables
75BINDIR          = $(ARCHDIR)/bin
76# LIBBUILD      : contains a directory for each library
77LIBBUILD        = $(ARCHDIR)/build/lib
78# INCPSMILE     : includes all *o and *mod for each library
79INCPSMILE       = -I$(ARCHDIR)/include
80
81F90FLAGS  = $(F90FLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
82f90FLAGS  = $(f90FLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
83FFLAGS    = $(FFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
84fFLAGS    = $(fFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
85CCFLAGS   = $(CCFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
86LDFLAGS   = $(F90FLAGS_1)
87F2C_LDFLAGS = $(F2C_LIBS)
88#
89#############################################################################
Note: See TracBrowser for help on using the repository browser.