# indigo #F90 = ifort #F90FLAGS = -g -traceback -fp-stack-check #F90FLAGS = -debug #F90FLAGS = -i-static -g -traceback -fp-stack-check -check all -fpe0 #F90FLAGS = -O3 #LDFLAGS = -L/users2/lambert/espresso-4.2.1/install -lmkl_em64t_nothread -L/users2/lambert/libs/fftw-2.1.5/fftw/.libs -lfftw #CPP = cpp #CPPFLAGS = -P -traditional # Kittel Parallel F90 = mpif90 F90FLAGS = -assume byterecl #F90FLAGS = -g -traceback -fp-stack-check -check all -fpe0 LDFLAGS = -L/home/lambert/espresso-4.2.1/install -L/opt/intel/Compiler/11.0/083/mkl/lib/em64t -lmkl_em64t_nothread -L/home/lambert/libs/fftw-2.1.5/fftw/.libs -lfftw CPP = cpp CPPFLAGS = -P -traditional -D__PARA -D__MPI -D__LAM -D__LINUX64 #CPPFLAGS = -P -traditional -D__PARA -D__MPI -D__LINUX64 #CPPFLAGS = -P -traditional -D__LAM -D__LINUX64 # Kittel Serial #F90 = f90 #F90FLAGS = -assume byterecl #F90FLAGS = -g -traceback -fp-stack-check -check all -fpe0 #LDFLAGS = -L/home/lambert/espresso-4.2.1/install -L/opt/intel/Compiler/11.0/083/mkl/lib/em64t -lmkl_em64t_nothread -L/home/lambert/libs/fftw-2.1.5/fftw/.libs -lfftw #CPP = cpp #CPPFLAGS = -P -traditional -D__PARA -D__MPI -D__LAM -D__LINUX64 #CPPFLAGS = -P -traditional -D__PARA -D__MPI -D__LINUX64 #CPPFLAGS = -P -traditional -D__LAM -D__LINUX64 # hbar #F90 = mpif90 #LDFLAGS = -llapack -lblas -L/home/giustino/lib -lfftw #CPP = cpp #CPPFLAGS = -P -traditional -D__PARA -D__MPI -D__LAM -D__LINUX64 # slater # # if the -C -ansi options are not used then the concatenation # operator // is taken as a comment and what follows is discarded... # # slater has ifort 9.0 #F90 = mpif90 #F90FLAGS = -assume byterecl #LDFLAGS = -llapack -lblas -L/home/giustino/code/fftw-2.1.5/lib -lfftw #CPP = cpp -C -ansi #CPPFLAGS = -D__PARA -D__MPI -D__LINUX64 # redqueen #F90 = mpif90 #F90FLAGS = -O3 #LDFLAGS = -lmkl -lmkl_lapack -lguide -lpthread \ # -L/export/home/fgiustino/giustino/redqueen/code/fftw-2.1.5/lib -lfftw #CPP = cpp -C -ansi #CPPFLAGS = -D__PARA -D__MPI # hal # # -assume byterecl tells the compiler that recl in direct IO is in bytes # (otherwise the default is 4 bytes words) #F90 = mpif90 #F90FLAGS = -O3 -assume byterecl #LDFLAGS = -lmkl -lmkl_lapack -lguide -lpthread \ # -L/export/home/fgiustino/giustino/hal/code/fftw-2.1.5/lib -lfftw #CPP = cpp -C -ansi #CPPFLAGS = -D__PARA -D__MPI # pople (ifort 11) # # -i-static -openmp are needed when using MKL libs for ifort>9 # (from Espresso) # # at this time the code blows up - need to fix something in the libraries #F90 = mpif90 #LDFLAGS = -i-static -openmp -lmkl_em64t -L/home/giustino/code/fftw-2.1.5/lib -lfftw #CPP = cpp #CPPFLAGS = -D__PARA -D__MPI -D__LINUX64 ######################################################################### MODULES = \ parameters.o \ modules.o PARA = \ parallel_include.o \ mp_global.o \ mp.o \ io_global.o \ para.o \ startup.o \ init_pool.o OBJS = \ allowed.o \ date_and_tim.o \ cg_psi.o \ ch_psi_all.o \ ch_psi_all_eta.o \ clocks.o \ coulomb.o \ coulomb_q0G0.o \ cgsolve_all.o \ bcgsolve_all.o \ bcgsolve_all_fixed.o \ eigenstates.o \ eigenstates2.o \ eigenstates_all.o \ error.o \ fft6_g2r.o \ refold.o \ rs.o \ gwhs.o \ ggen.o \ ggens.o \ h_psi.o \ h_psi_c.o \ fftw.o \ hpsort_eps.o \ cgdiag.o \ ktokpmq.o \ pade.o \ solve_linter_dyn.o \ green_linsys.o \ scnds.o \ solve_linter_dyn_nonSCF.o \ set_ndnmbr.o \ sigma_matel.o \ mix_pot.o \ cryst_to_car.o \ ccgdiagg.o .SUFFIXES : .o .f .f90 .f90.o: $(CPP) $(CPPFLAGS) $< -o $*.F90 $(F90) $(F90FLAGS) -c $*.F90 -o $*.o .f.o: $(F90) -c $< # # serial # #gwhs.x : $(MODULES) $(OBJS) # $(F90) -o gwhs.x $(MODULES) $(OBJS) $(LDFLAGS) # - ( cd ../bin ; ln -fs ../src/gwhs.x . ) # # parallel # gwhs.x : $(MODULES) $(PARA) $(OBJS) $(F90) -o gwhs.x $(MODULES) $(PARA) $(OBJS) $(LDFLAGS) - ( cd ../bin ; ln -fs ../src/gwhs.x . ) - ( cd ../examples ; ln -fs ../src/gwhs.x . ) clean: rm *.o *.mod *.x *.F90