-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:ttadano/alamode into develop
- Loading branch information
Showing
63 changed files
with
5,349 additions
and
3,864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.SUFFIXES: .h .cpp | ||
#----------------------------------------------- | ||
# Makefile for the program 'ANPHON'. | ||
# Please modify the variables properly. | ||
# We recommend to use Intel c++ compiler. | ||
#----------------------------------------------- | ||
|
||
MPICXX = g++-8 | ||
CXXFLAGS = -O3 -std=c++11 -fopenmp | ||
INCLUDE = -I../include -I$(HOME)/include -I/usr/local/opt/openmpi/include | ||
|
||
LINKER = ${MPICXX} | ||
|
||
## Mavericks | ||
#LDFLAGS = -framework vecLib | ||
## Yosemite | ||
LDFLAGS = -framework Accelerate | ||
|
||
LAPACK = -llapack -L/usr/local/opt/openmpi/lib -lmpi_cxx -lmpi -lgomp | ||
LIBS = ${LAPACK} -lfftw3 | ||
|
||
#---------------------------------------------- | ||
# General rules | ||
#---------------------------------------------- | ||
|
||
.cpp.o: | ||
${MPICXX} ${CXXFLAGS} ${INCLUDE} -c $< | ||
|
||
PROG = anphon | ||
|
||
CXXSRC= phonons.cpp error.cpp fcs_phonon.cpp parsephon.cpp dynamical.cpp \ | ||
main.cpp memory.cpp system.cpp timer.cpp write_phonons.cpp kpoint.cpp \ | ||
phonon_dos.cpp phonon_velocity.cpp integration.cpp anharmonic_core.cpp \ | ||
thermodynamics.cpp conductivity.cpp symmetry_core.cpp mode_analysis.cpp \ | ||
mpi_common.cpp gruneisen.cpp isotope.cpp selfenergy.cpp \ | ||
scph.cpp ewald.cpp | ||
|
||
OBJS= ${CXXSRC:.cpp=.o} | ||
|
||
default: anphon | ||
|
||
all: ${PROG} | ||
|
||
anphon: ${OBJS} | ||
${LINKER} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} | ||
|
||
clean: | ||
rm -f ${OBJS} | ||
|
||
.PHONY: clean | ||
|
||
depend: | ||
gcc -MM *.cpp > .depend | ||
|
||
-include .depend |
Oops, something went wrong.