-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 1.8 KB
/
Makefile
File metadata and controls
51 lines (34 loc) · 1.8 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
#by default parallel, use 'make SERIAL=1' for serial
ifneq ($(SERIAL),1)
CC=mpicc
CFLAGS=-O3 -DMPI -fcommon
else
//CC=gcc
//CFLAGS=-O3 -Wno-unused-result -fopenmp -fsanitize=address -g -fno-omit-frame-pointer -Wunused-function
CC=/usr/bin/h5cc
CFLAGS = -O3 -I/usr/lib/gcc/x86_64-linux-gnu/11/include -I/usr/include/hdf5/serial -Wno-unused-result -Wunused-function -w -fopenmp -fcommon -fno-omit-frame-pointer -fsanitize=address
endif
LIBS=-lm -lgsl -lgslcblas -lfftw3 -lrt -lhdf5_serial -lsiloh5 -lstdc++
RM=/bin/rm
OBJS = mpi.o u2prad.o magn.o silo.o postproc.o fileop.o misc.o physics.o finite.o problem.o metric.o relele.o rad.o opacities.o u2p.o u2p_ff.o frames.o p2u.o nonthermal.o
all: ko ana avg outavg phisli thsli phiavg regrid dumps2hdf5
ko: ko.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o ko ko.o $(OBJS) $(LIBS)
ana: ana.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o ana ana.o $(OBJS) $(LIBS)
avg: avg.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o avg avg.o $(OBJS) $(LIBS)
outavg: outavg.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o outavg outavg.o $(OBJS) $(LIBS)
phisli: phisli.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o phisli phisli.o $(OBJS) $(LIBS)
thsli: thsli.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o thsli thsli.o $(OBJS) $(LIBS)
phiavg: phiavg.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o phiavg phiavg.o $(OBJS) $(LIBS)
regrid: regrid.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o regrid regrid.o $(OBJS) $(LIBS)
dumps2hdf5: dumps2hdf5.o $(OBJS) Makefile ko.h problem.h mnemonics.h
$(CC) $(CFLAGS) -o dumps2hdf5 dumps2hdf5.o $(OBJS) $(LIBS)
clean:
$(RM) -f ko ana avg phiavg phisli thsli outavg regrid *~ *.o *.oo