source: CPL/oasis3-mct_5.0/util/make_dir/make.intel18.0.1.163_intelmpi2018.1.163_training @ 6328

Last change on this file since 6328 was 6328, checked in by aclsce, 17 months ago

First import of oasis3-mct_5.0 (from oasis git server, branch OASIS3-MCT_5.0)

File size: 3.0 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# Static libraries compilation options
41STATOPT     =
42# Shared libraries options
43DYNOPT      = -fPIC
44LDDYNOPT    = -shared
45# Static archiver
46AR          = ar
47ARFLAGS     = -ruv
48#
49# CPP keys and compiler options
50
51CPPDEF    = -Duse_comm_$(CHAN) -D__VERBOSE -DTREAT_OVERLAY
52#
53#
54#F90FLAGS_1  = -g -ffree-line-length-0 -fbounds-check -fopenmp
55F90FLAGS_1  = -g -traceback -O2 -xAVX -I. -assume byterecl -mt_mpi -qopenmp
56f90FLAGS_1  = $(F90FLAGS_1)
57FFLAGS_1    = $(F90FLAGS_1)
58fFLAGS_1    = $(F90FLAGS_1)
59CCFLAGS_1   =
60LDFLAGS     = $(F90FLAGS_1)
61#
62#
63###################
64#
65# Additional definitions that should not be changed
66#
67FLIBS           = $(NETCDF_LIBRARY)
68# BINDIR        : directory for executables
69BINDIR          = $(ARCHDIR)/bin
70# LIBBUILD      : contains a directory for each library
71LIBBUILD        = $(ARCHDIR)/build/lib
72# INCPSMILE     : includes all *o and *mod for each library
73INCPSMILE       = -I$(ARCHDIR)/include
74
75F90FLAGS  = $(F90FLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
76f90FLAGS  = $(f90FLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
77FFLAGS    = $(FFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
78fFLAGS    = $(fFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
79CCFLAGS   = $(CCFLAGS_1) $(CPPDEF) $(INCPSMILE) -I$(NETCDF_INCLUDE1) -I$(NETCDF_INCLUDE2)
80LDFLAGS   = $(F90FLAGS_1)
81#
82#############################################################################
Note: See TracBrowser for help on using the repository browser.