forked from MFlowCode/MFC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.user
44 lines (33 loc) · 1.7 KB
/
Makefile.user
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
################ Compiler options ####################
# Gets the MFC directory [do not modify]
MFC_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
### Compiler command ###
FC = mpif90
#FC = mpiifort
### Compiler flags [set according to your compiler] ###
#Note: Requires -cpp to enable preprocessor
FFLAGS = -cpp -c -w -Ofast
# FFLAGS = -cpp -c -w -fast -Minfo=accel
# FFLAGS = -cpp -c -w -freal-4-real-8 -O3 -fallow-argument-mismatch
# FFLAGS = -cpp -c -w -freal-4-real-8 -O3 -pg -fallow-argument-mismatch
# FFLAGS = -cpp -c -w -freal-4-real-8 -O3
# FFLAGS = -cpp -c -w -fimplicit-none -Wall -Wline-truncation -Wcharacter-truncation -Wsurprising -Waliasing -Wimplicit-interface -Wunused-parameter -fwhole-file -fcheck=all -std=f2008 -pedantic -fbacktrace
#NOTE: Cray compilers require: -eZ
######### LAPACK library location #########
lapack_lib_dir = $(MFC_DIR)/dependencies/LAPACK/
######### FFTW library and include locations #########
######### Set these to the location of FFTW #########
## For the FFTW included in the MFC package
fftw_lib_dir = $(MFC_DIR)/dependencies/FFTW3/lib
fftw_include_dir = $(MFC_DIR)/dependencies/FFTW3/include
## Other possible locatins [only use absolute paths]
#fftw_lib_dir = /usr/local/lib
#fftw_include_dir = /usr/include
#fftw_include_dir = /usr/local/include
######### Silo library and include locations #########
######### Set these to the location of Silo #########
######### [ only use absolute paths ] #########
silo_lib_dir = $(MFC_DIR)/dependencies/SILO/lib
silo_include_dir = $(MFC_DIR)/dependencies/SILO/include
#silo_lib_dir = /home/spencer/packages/silo-4.10.2/lib
#silo_include_dir = /home/spencer/packages/silo-4.10.2/include