-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.gfortran
executable file
·39 lines (29 loc) · 1.27 KB
/
Makefile.gfortran
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
obj = module.o sparse.o wt_aux.o math_lib.o symmetry.o readHmnR.o inverse.o proteus.o \
eigen.o ham_qlayer2qlayer.o psi.o unfolding.o rand.o \
ham_slab.o ham_bulk.o ek_slab.o ek_bulk_polar.o ek_bulk.o \
readinput.o fermisurface.o surfgreen.o surfstat.o \
mat_mul.o ham_ribbon.o ek_ribbon.o \
fermiarc.o berrycurvature.o \
wanniercenter.o dos.o orbital_momenta.o \
landau_level_sparse.o landau_level.o lanczos_sparse.o \
berry.o wanniercenter_adaptive.o \
effective_mass.o findnodes.o \
sigma_OHE.o sigma.o Boltz_transport_anomalous.o \
main.o
# compiler
f90 = gfortran -cpp -DINTELMKL
flag = -O3 -ffree-line-length-512 #-g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan
ARPACK=/Users/quan/work/workplace/ARPACK/libarpack_gfortran.a
# blas and lapack libraries
#libs = -L/usr/lib/ -llapack -lblas
# Intel MKL also supports with gfortran comipler
# dynamic linking
libs = ${ARPACK} -L/${MKLROOT}/lib -lmkl_core -lmkl_sequential -lmkl_intel_lp64 -lpthread
main : $(obj)
$(f90) $(obj) -o wt.x $(libs)
cp -f wt.x ../bin
.SUFFIXES: .o .f90
.f90.o :
$(f90) -c $(flag) $(includes) $*.f90
clean :
rm -f *.o *.mod *~ wt.x