-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
81 lines (64 loc) · 1.81 KB
/
Makefile
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
OPTS =
# OPTS += -DCMK_OPTIMIZE=1
# OPTS += -module completion
OPTS += -module GreedyCommLB
# OPTS += -module CkCache
CHARMC = $(CHARMDIR)/bin/charmc $(OPTS)
CCFLAGS = -DCGAL_NDEBUG -DCGAL_HAS_NO_THREADS -g -O4 -Wall -Wstrict-aliasing=0
CCFLAGS += -m64 -msse3 -funroll-all-loops -D__$(MACOSX)__ -I$(HOME)/soft/CGAL/include
# CCFLAGS += -frounding-math
CCFLAGS += -ftree-vectorize
CCFLAGS += -ffast-math
CCFLAGS += -I$(HOME)/usr/include -I/$(BOOST_INCLUDEDIR)
LDFLAGS = -L$(HOME)/soft/CGAL/lib -L/opt/local/lib -lCGAL -lgmp
TARGET = fvmhd3d
default: all
all: $(TARGET)
OBJECTS = \
localMesh.o \
fvmhd3d.o System.o \
loadBalancer.o \
globalDomains.o \
moveParticles.o \
sort_local_data.o \
globalMesh.o \
localRefDeref.o \
computeFluidUpdate.o \
computeFlux.o \
computePredictor.o \
computePvel.o \
computeReconstruction.o \
computeTimestep.o \
slopeLimiter.o \
Iterate.o \
ImportFluidData.o \
IO.o \
Problem.o
$(TARGET): $(OBJECTS)
$(CHARMC) -o $(TARGET) $(LDFLAGS) $(OBJECTS)
.cpp.o:
$(CHARMC) -c $< -o $@ $(CCFLAGS)
globalMesh.o: globalMesh.cpp
$(CHARMC) -c $< -o $@ $(CCFLAGS) -frounding-math
localMesh.o: localMesh.cpp
$(CHARMC) -c $< -o $@ $(CCFLAGS) -frounding-math
.cpp.s:
$(CHARMC) -S $< -o $@ $(CCFLAGS)
%.decl.h %.def.h : %.ci
$(CHARMC) $<
clean:
rm -f $(TARGET) *.decl.h *.def.h charmrun $(OBJECTS)
clean_all:
rm -f $(TARGET) *.decl.h *.def.h charmrun $(OBJECTS) *~
$(TARGET).o: $(OBJECS)
$(OBJECTS): fvmhd3d.ci fvmhd3d.h MeshPoint.h Fluid.h Scheduler.h vector3.h Boundary.h bOctree.h
bOctree.h: vector3.h Boundary.h memory_pool.h
fvmhd3d.h: fvmhd3d.decl.h fvmhd3d.def.h
System.o: distributenew.h
Problem.o: Problem.cpp \
mri_disk.cpp \
capture3d.cpp \
mri_cyl.cpp \
acoustic.cpp \
alfven.cpp \
blast.cpp