source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/oasis3-mct/util/make_dir/make.gnu_cerfacs @ 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.1 KB
Line 
1#
2# Include file for OASIS3 Makefile for a Linux system using
3# Gnu compilers and OpenMPI
4# To use this,
5# module purge
6# module load mpi/openmpi/405_gcc731
7# module load python/3.7.7
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          = $(OASIS3_ROOT)
18#
19# ARCHDIR       : directory created when compiling
20ARCHDIR         = $(HOME)/INSTALL/oasis3-mct-gnu
21#
22# MPI command (for pyoasis scripts)
23# MPI from /softs/local/openmpi405_gcc731/bin/mpirun by module load mpi/openmpi/405_gcc731
24MPIRUN      = mpirun --oversubscribe
25#
26# NETCDF library
27NETCDF_INCLUDE = /usr/include
28NETCDF_MOD     = /usr/lib64/gfortran/modules
29NETCDF_LIBRARY = -L/usr/lib64 -lnetcdff -lnetcdf
30#
31# Make command
32MAKE        = gmake
33# Compilers
34F90         = mpifort # underlying gfortran from module load mpi/openmpi/405_gcc731
35F           = $(F90)
36f90         = $(F90)
37f           = $(F90)
38CC          = mpicc
39# Linker (needed for shared libraries)
40LD          = $(F90)
41# Shared libraries options
42DYNOPT      = -fPIC
43LDDYNOPT    = -shared
44# Static archiver
45AR          = ar
46ARFLAGS     = -ruv
47#
48# CPP keys and compiler options
49#
50CPPDEF    = -Duse_comm_$(CHAN) -D__VERBOSE -DTREAT_OVERLAY
51#
52FCBASEFLAGS  = -O2 -ffree-line-length-512
53#FCBASEFLAGS  = -g -ffree-line-length-512 -fbounds-check
54CCBASEFLAGS  = -O2
55#
56# INC_DIR : includes all *mod for each library
57INC_DIR = -I$(ARCHDIR)/include
58#
59F90FLAGS = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE) -I$(NETCDF_MOD)
60f90FLAGS = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE) -I$(NETCDF_MOD)
61FFLAGS   = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE) -I$(NETCDF_MOD)
62fFLAGS   = $(FCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE) -I$(NETCDF_MOD)
63CCFLAGS  = $(CCBASEFLAGS) $(INC_DIR) $(CPPDEF) -I$(NETCDF_INCLUDE) -I$(NETCDF_MOD)
64LDFLAGS  = $(FCBASEFLAGS)
65F2C_LDFLAGS = -lmpi_mpifh -lgfortran -lm
66#
67#############################################################################
Note: See TracBrowser for help on using the repository browser.