-
Notifications
You must be signed in to change notification settings - Fork 52
/
Makefile_mac
executable file
·120 lines (112 loc) · 4 KB
/
Makefile_mac
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#-----------BEGIN MAKEFILE---------------------------
FUNWAVE_DIR = .
WORK_DIR = funwave-work
COMPILER = gnu
PARALLEL = true
EXEC = funwave
PRECISION = single
#-----------DEFINE FLAGS-----------------------------
# uncomment to choose the model
# FLAG_1 = -DCOUPLING
# FLAG_2 = -DZALPHA
# FLAG_3 = -DMANNING
# FLAG_4 = -DVESSEL
# FLAG_5 = -DMETEO
# FLAG_6 = -DWIND
# FLAG_7 = -DSEDIMENT
# FLAG_8 = -DCHECK_MASS_CONSERVATION
# FLAG_9 = -DTMP
# FLAG_10 = -DTRACKING
# FLAG_11 = -DDEEP_DRAFT_VESSEL
FLAG_12 = -DFOAM
#----------------uncommon options---------------------
DEF_FC = mpif90
DEF_FC_FLAG =
SPHERICAL = false
MPI = openmpi
DEBUG = false
INCS = $(IOINCS) $(GOTMINCS)
LIBS = $(PV3LIB) $(CLIB) $(PARLIB) $(IOLIBS) $(MPILIB) $(GOTMLIB)
CLIB =
MDEPFLAGS = --cpp --fext=f90 --file=-
RANLIB = ranlib
#----------include the essential makefiles------------
include $(FUNWAVE_DIR)/GNUMake/Essential/Make_Essential
##-----------------------------------------------------
## Instructions for Makefile
##-----------------------------------------------------
##--------Make options (provided by Make_Essential)----
# make:
# Create the $(WORK_DIR) directory and the exectutable
# make clean:
# Clean the "build" directory in "$(WORK_DIR)" directory
# make clean-exe:
# Clean the "build" directory in "$(WORK_DIR)" directory and the executable
# make clobber:
# Clean up the whole $(WORK_DIR) directory
# make chec-env:
# Print the compier version and mpi version
# make print-foo
# Check the value of "foo" in Makefile (Or Makefile_Essential)
# For example, "make print $(EXEC)" and you will see the final $(EXEC) name
##---------Notes to the Makefils variables------------
# FUNWAVE_DIR:
# The path to FUNWAVE directory, can be either absolute path or reference path.
# To set to current directory, set FUNWAVE_DIR = .
# WORK_DIR:
# The path to the work directory. A new directory will be created named $(WORK_DIR)
# To set to current directory, set FUNWAVE_DIR = .
# COMPILER:
# Support list: "gnu", "intel"
# PARALLEL:
# eithrt "true" or "false"
# EXEC:
# The name for exectutable. By default, the name of the executable will be "funwave+$(SUFFIX)".
# SUFFIX is a self-explainary string depending on the options above
# PRESICION:
# either "single" or "double"
#
# DEF_FC:
# Use Defined compiler name for specific machine.
# Left for empty for dafault.
# DEF_FC_FLAG:
# User Defined comiler flags for $(DEF_FFC)
# Left for empty for dafault.
# SPHIRICAL:
# "true" or "false". set to "true" to enable SPHERICAL coordinate.
# MPI:
# Depend on the mpi version. In the settings of Make_Essential,
# if PARALLEL=true, MPI=openmpi or MPImpich, FC = mpif90 (For any COMPILER)
# if PARALLEL=true, COMPILER=intel, MPI=intelmpi, FC = mpiifort
# DEBUG:
# either "true" or "false"
# If "true" uses some debug flags, for example -Wall for gnu compiler
# If "false", no debug flags used. Use optimization flag (-O2 for intel, -O3 for gnu)
## To use like the 3.3 or earlier version of FUNWAVE-TVD
# Go to "src" directory and set and set both "FUNWAVE_DIR" and "WORK_DIR" as ".".
# Here is an example for vessel case (uncomment all below). and you will see
#-----------BEGIN MAKEFILE---------------------------
# FUNWAVE_DIR = .
# WORK_DIR = .
# COMPILER = gnu
# PARALLEL = true
# EXEC = funwave
# PRECISION = double
# #-----------DEFINE FLAGS-----------------------------
# # uncomment to choose the model
# # FLAG_1 = -DCOUPLING
# # FLAG_2 = -DZALPHA
# # FLAG_3 = -DMANNING
# # FLAG_4 = -DVESSEL
# # FLAG_5 = -DMETEO
# # FLAG_6 = -DWIND
# # FLAG_7 = -DSEDIMENT
# FLAG_8 = -DCHECK_MASS_CONSERVATION
# # FLAG_9 = -DTMP
# # FLAG_10 = -DTRACKING
# #----------------uncommon options---------------------
# SPHERICAL = false
# MPI = openmpi
# DEBUG = false
# MDEPFLAGS = --cpp --fext=f90 --file=-
# RANLIB = ranlib