-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMyConfig.example
More file actions
56 lines (45 loc) · 1.67 KB
/
MyConfig.example
File metadata and controls
56 lines (45 loc) · 1.67 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# MyConfig example
#
# The file MyConfig is included verbatim in the Makefile to determine which
# modules (or libraries) will be included in the build.
# ------------------------------------------------------------------------
# Here are simple examples for modules, they may be mutually exclusive.
# modules we add:
# ADM vars and iterative solvers
libpaths += src/physics/ADMvars
libpaths += src/physics/ModeComputer
libpaths += src/utility/s2kit
libpaths += src/utility/GridIterators
libpaths += src/utility/LinAlg
libpaths += src/physics/Poisson3
# DNSdata and EoS at T=0
#repo = git@github.com:sgridsource
repo = https://github.com/sgridsource
projects += $(repo)/EoS_T0
projects += $(repo)/DNSdata
# ------------------------------------------------------------------------
# override various options in the Makefile
# name and directory for the executable
EXEC = sgrid
EXECDIR = $(TOP)/exe
# pick a C compiler, only gcc and icc have been tested, gcc is the default
CC = gcc # icc
# optimization flags, say -O, -O2, -g for debugging, -pg for profiling, ...
OFLAGS = -O3 -fopenmp # -g # -Wall
DFLAGS += -DNONICOFUNCS
#DFLAGS += -DLIBSGRID
# use OpenMP pragmas of LEVEL6 and TOPLEVEL
DFLAGS += -DLEVEL6_Pragmas
DFLAGS += -DTOPLEVEL_Pragmas # -DMEMORY_EFFICIENT
# compile in UMFPACK
DFLAGS += -DUMFPACK
SPECIALINCS += -I/usr/include/suitesparse
SPECIALLIBS += -lumfpack -lamd -lblas
# compile in TEMPLATES from dir /home/wolf/Packages/dctemplates_extBlasLapack
DFLAGS += -DTEMPLATES
TEMPLATESDIR = /home/wolf/Packages/dctemplates_extBlasLapack
SPECIALLIBS += -L$(TEMPLATESDIR) -literatortemplates
SPECIALLIBS += -lblas -llapack
# compile in GSL
DFLAGS += -DGSL
SPECIALLIBS += -lgsl -lgslcblas