-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (54 loc) · 2.15 KB
/
Makefile
File metadata and controls
72 lines (54 loc) · 2.15 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(PTHA)/Makefile.common
# See the above file for details and a list of make options, or type
# make .help
# at the unix prompt.
# Adjust these variables if desired:
# ----------------------------------
CLAW_PKG = geoclaw # Clawpack package to use
EXE = xgeoclaw # Executable to create
SETRUN_FILE = setrun.py # File containing function to make data
RUNDIR = _inputB0 #Directory with geoclaw model data files
OUTDIR = _output/B0 # Directory for output
SETPLOT_FILE = setplot.py # File containing function to set plots
PLOTDIR = _plots/B0 # Directory for plots
NETCDF4_DIR =
# Environment variable FC should be set to fortran compiler, e.g. gfortran
# Compiler flags can be specified here or set as an environment variable
#FFLAGS ?=
FFLAGS += -fdefault-integer-8 -g -fbacktrace -fbounds-check
# FFLAGS += -fdefault-integer-8 -DNETCDF -lnetcdf -I$(NETCDF4_DIR)/include -L$(NETCDF4_DIR)/lib
# LFLAGS += $(FFLAGS) -lnetcdff
# ---------------------------------
# package sources for this program:
# ---------------------------------
GEOLIB = $(CLAW)/geoclaw/src/2d/shallow
include $(GEOLIB)/Makefile.geoclaw
# ---------------------------------------
# package sources specifically to exclude
# (i.e. if a custom replacement source
# under a different name is provided)
# ---------------------------------------
EXCLUDE_MODULES = \
EXCLUDE_SOURCES = \
# ----------------------------------------
# List of custom sources for this program:
# ----------------------------------------
MODULES = \
SOURCES = \
$(CLAW)/riemann/src/rpn2_geoclaw.f \
$(CLAW)/riemann/src/rpt2_geoclaw.f \
$(CLAW)/riemann/src/geoclaw_riemann_utils.f \
#-------------------------------------------------------------------
# Include Makefile containing standard definitions and make options:
include $(CLAWMAKE)
# Construct the topography data
.PHONY: topo all
topo:
python maketopo.py
all:
$(MAKE) topo
$(MAKE) .plots
$(MAKE) .htmls