-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (22 loc) · 910 Bytes
/
Copy pathmakefile
File metadata and controls
36 lines (22 loc) · 910 Bytes
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
SHELL=/bin/sh
FCC=mpif90 # Name of the compiler
# FCC=mpiifort
PROG=MFV3d # Name and path of the executable
FFLAGS=-free -O3 -g2 -debug -traceback -check all -C -heap-arrays -mcmodel=large
FFLAGS=-free -Wextra -Wconversion -mcmodel=large -fimplicit-none -O3 -g2 -g -debug -C -fbounds-check -fbacktrace -Wall \
-finit-real=nan -ffpe-trap=invalid,zero,overflow,underflow,precision,denormal
# FFLAGS=-free -mcmodel=large -O3 -g2 -debug -fcheck=all -C
# FFLAGS=-free -O3 -g2 -C -mcmodel=large
FLAGS=-O3 -mcmodel=large
OBJS=main.o pararange.o advance.o gradients.o limiters.o init.o gravity.o hvol.o FVeqns.o \
tstep.o eos.o reconstruction.o linkedlist.o Riemannsolvers.o RMD.o output.o
# OBJS=MFV3d.o
# Object files
# Lines from here on are the rules that make uses to build the executable
all: $(PROG)
%.o : %.f90
$(FCC) -c $<
$(PROG): $(OBJS)
$(FCC) $(FFLAGS) -o $@ $(OBJS)
clean:
rm *.o