source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/oasis3-mct/util/make_dir/make.pgi20.4_openmpi3.1.3_linux_openmp @ 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.

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1#
2# Include file for OASIS3 Makefile for a Linux system using
3# Portland Group Fortran Compiler and MPICH
4# module load pgi/20.4
5# module load pgimpi/openmpi3.1.3_pgi20
6# module load lib/netcdf-c/4.6.1_pgi20.4
7# module load lib/netcdf-fortran/4.4.4_pgi20.4
8#
9###############################################################################
10#
11# CHAN  : communication technique used in OASIS3 (MPI1/MPI2)
12CHAN            = MPI1
13#
14# Paths for libraries, object files and binaries
15#
16# COUPLE        : path for oasis3-mct main directory
17COUPLE          = $(HOME)/oasis3-mct
18#
19# ARCHDIR       : directory created when compiling
20ARCHDIR         = $(COUPLE)/compile_oa3-mct_pgi_openmpi_openmp
21#
22# MPI library
23MPIDIR      = /usr/local/pgi/linux86-64/20.4/mpi/openmpi-3.1.3
24MPIBIN      = $(MPIDIR)/bin
25MPI_INCLUDE = $(MPIDIR)/include
26MPILIB      = -L$(MPIDIR)/lib
27MPIRUN      = $(MPIBIN)/mpirun --oversubscribe
28#
29# NETCDF library
30NETCDF_INCLUDE  = /usr/local/netcdf-fortran/4.4.4_pgi20.4/include
31NETCDF_LIBRARY  = -L/usr/local/netcdf-fortran/4.4.4_pgi20.4/lib -lnetcdff -L/usr/local/netcdf-c/4.6.1_pgi20.4/lib -lnetcdf -Wl,-rpath,/usr/local/netcdf-fortran/4.4.4_pgi20.4/lib -Wl,-rpath,/usr/local/netcdf-c/4.6.1_pgi20.4/lib
32#
33# Compiling and other commands
34MAKE        = gmake
35F90         = $(MPIBIN)/mpif90 -I$(MPI_INCLUDE)
36F           = $(F90)
37f90         = $(F90)
38f           = $(F90)
39CC          = $(MPIBIN)/mpicc -I$(MPI_INCLUDE) -pgf90libs
40LD          = $(MPIBIN)/mpif90 $(MPILIB)
41DYNOPT      = -fPIC
42LDDYNOPT    = -shared
43AR          = ar
44ARFLAGS     = -ruv
45# Fortran libraries for C linking
46F2C_LIBS    =
47#
48# CPP keys and compiler options
49#
50CPPDEF    = -Duse_comm_$(CHAN) -D__VERBOSE -DTREAT_OVERLAY -D__NO_16BYTE_REALS
51#
52# -g is necessary in F90FLAGS and LDFLAGS for pgf90 versions lower than 6.1
53#
54FCBASEFLAGS = -C -g -Mbounds -byteswapio -mp -lpthread
55CCBASEFLAGS = -mp
56#
57# INC_DIR : includes all *mod for each library
58INC_DIR = -I$(ARCHDIR)/include
59# FLIBS : for toys when linking in local Makefile
60FLIBS=${NETCDF_LIBRARY}
61###################
62#
63F90FLAGS    = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE)
64f90FLAGS    = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE)
65FFLAGS      = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE)
66fFLAGS      = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE)
67CCFLAGS     = $(CCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE)
68LDFLAGS     = $(FCBASEFLAGS)
69F2C_LDFLAGS = $(F2C_LIBS)
70#
71#############################################################################
Note: See TracBrowser for help on using the repository browser.