Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ Makefile.inc
tests/test*/extract_forceconstants
tests/test*/*.m
tests/test*/disprel_xtck
tests/canonical_configuration/canonical_configuration.dat
tests/generate_structure/generate_structure.log
tests/thermal_conductivity/infile.forceconstant*

# things in the staging area
staging/
Expand Down
1 change: 1 addition & 0 deletions build_things.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ listofcodes="
dump_dynamical_matrices
phonon_dispersion_relations
crystal_structure_info
convert_XX_to_forceconstant
generate_structure
canonical_configuration
lineshape
Expand Down
31 changes: 31 additions & 0 deletions src/convert_XX_to_forceconstant/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
include Makefile.inc
CODE = convert_XX_to_forceconstant
PROG = ../../build/$(CODE)/$(CODE)
OBJECT_PATH=../../build/$(CODE)/

OBJS = $(OBJECT_PATH)main.o $(OBJECT_PATH)options.o $(OBJECT_PATH)io.o

LPATH = -L../../lib $(blaslapackLPATH) $(incLPATHhdf) $(incLPATHmpi) $(incLPATHfft)
IPATH = -I../../inc/libolle -I../../inc/libflap $(blaslapackIPATH) $(incIPATHhdf) $(incIPATHmpi) $(incIPATHfft)
LIBS = ../../lib/libolle.a -lflap $(blaslapackLIBS) ${incIPATHhdf} $(incLIBShdf) $(incLIBSmpi) $(incLIBSfft)

# ok, I think I get this.
#OPT = -O0 -fbacktrace -fcheck=all -finit-real=nan -finit-derived -fmax-errors=10
F90 = $(FC) $(LPATH) $(IPATH) $(MODULE_FLAG) $(OBJECT_PATH) #$(warnings_gcc)
F90FLAGS = $(OPT) $(MODS) $(LIBS)

all: $(PROG)

$(PROG): $(OBJS)
$(F90) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

clean:
rm -f $(PROG) $(OBJS) *.mod $(OBJECT_PATH)*.mod


$(OBJECT_PATH)main.o: $(OBJECT_PATH)options.o $(OBJECT_PATH)io.o
$(F90) $(F90FLAGS) -c main.f90 -o $@
$(OBJECT_PATH)options.o:
$(F90) $(F90FLAGS) -c options.f90 -o $@
$(OBJECT_PATH)io.o:
$(F90) $(F90FLAGS) -c io.f90 -o $@
Loading
Loading