-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (16 loc) · 927 Bytes
/
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
GF90 = gfortran
LIBS = -llapack -lblas
MPI_FLAGS = -DUSE_MPI
BIN = Thomson
FFFLAGS = -Wall -g -msse4.2 -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant
FFLAGS = -Wall -Wno-unused -Wno-unused-dummy-argument -O3 -fallow-argument-mismatch -g -mcpu=native -funroll-loops -cpp
help:
@echo " -----------------------------------------\n to make the code you should do : \n ----------------------------------------- \n make Thomson | to compiled with gfortran \n -----------------------------------------";\
Thomson:
$(GF90) src/*.f90 -o $(BIN) $(FFLAGS) $(LIBS)
clean:
$(RM) $(BIN) animation.mp4 data.out figure.png test fort.4 fort.3 energy.dat data_frame.dat Energy_parallel.out
Thomson_d:
$(GF90) src/*.f90 -o $(BIN) $(FFFLAGS) $(LIBS)
Thomson_mpi:
mpif90 src/*.f90 -o $(BIN) $(FFLAGS) $(MPI_FLAGS) $(LIBS)