-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake.inc
33 lines (24 loc) · 1.15 KB
/
make.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#***************************************************************
#
# make.inc file incluing compilation flags
#
#***************************************************************
# section for Fortran compiler #
# Link to MPI fortran, prefer h5pfc #
F90 = h5pfc
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#
# section for parallel computing
# use MPI? #
#PARALLEL = -DMPI
# use OPENMP? #
MULTICORE = -fopenmp
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#
# section for math packages #
# need extra math packages? #
#MATHPACK = -llapack -lblas
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#
# these are for standard gcc compiler flags
# Define F90 flags #
F90FLAGS= -cpp -Ofast -O4 -march=native -mtune=native -flto -funroll-loops -ftree-vectorize -pipe -ffree-line-length-999 $(PARALLEL) $(MULTICORE) $(MATHPACK)
LDFLAGS= -cpp -Ofast -O4 -march=native -mtune=native -flto -funroll-loops -ftree-vectorize -pipe -ffree-line-length-999 $(PARALLEL) $(MULTICORE) $(MATHPACK)
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#