mirror of
https://github.com/pfloos/quack
synced 2024-11-04 05:03:49 +01:00
install libxc
This commit is contained in:
parent
9707f6829f
commit
2b95251386
9
libxc-tools/install_libxc.sh
Executable file
9
libxc-tools/install_libxc.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
git clone --single-branch --branch master https://gitlab.com/libxc/libxc.git
|
||||
cd libxc
|
||||
autoreconf -i
|
||||
./configure --prefix=$QUACK_ROOT
|
||||
make
|
||||
make check
|
||||
make install
|
Binary file not shown.
@ -178,7 +178,10 @@ directory.";
|
||||
| Some _mu ->
|
||||
Qcaml.Gaussian_integrals.Eri_long_range.to_file ~filename:(quack_int ^ "ERI_lr.dat") (Qcaml.Ao.Basis.ee_lr_ints ao_basis)
|
||||
| None -> ()
|
||||
|
||||
;
|
||||
|
||||
|
||||
Unix.execv (quack_dir ^ "/bin/QuAcK") [| "QuAcK" |]
|
||||
|
||||
|
||||
|
||||
|
@ -7,14 +7,15 @@ TARGETS=quack_input \
|
||||
|
||||
.PHONY: default build install uninstall test clean
|
||||
|
||||
default: $(TARGETS)
|
||||
mv GoDuck ../
|
||||
|
||||
%.exe: build
|
||||
dune build $@
|
||||
|
||||
$(TARGETS): $(patsubst %, %.exe, $(TARGETS))
|
||||
for i in $(TARGETS) ; do cp _build/default/$${i}.exe $$i ; done
|
||||
|
||||
default: $(TARGETS)
|
||||
|
||||
build:
|
||||
dune build
|
||||
|
||||
|
@ -2,12 +2,12 @@ QUACK_ROOT=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))/..))
|
||||
export QUACK_ROOT
|
||||
|
||||
SDIR=$(QUACK_ROOT)/src
|
||||
ALL_DIRS=$(filter-out modules,$(patsubst %/,%,$(wildcard */)))
|
||||
ALL_DIRS=$(patsubst %/,%,$(wildcard */))
|
||||
|
||||
# Rules for Modules
|
||||
###################
|
||||
|
||||
MOD_DIRS=numgrid
|
||||
MOD_DIRS=libnumgrid
|
||||
|
||||
|
||||
# Rules for Libraries
|
||||
@ -53,6 +53,7 @@ debug:
|
||||
.DEFAULT_GOAL := default
|
||||
.PHONY: default debug
|
||||
.PRECIOUS: $(wildcard $(LDIR)/*.a) $(wildcard $(SDIR)/*/Makefile)
|
||||
.PRECIOUS: /Users/loos/Dropbox/quack/lib/CI.a /Users/loos/Dropbox/quack/lib/CC.a /Users/loos/Dropbox/quack/lib/ADC.a /Users/loos/Dropbox/quack/lib/MP.a /Users/loos/Dropbox/quack/lib/libnumgrid.a /Users/loos/Dropbox/quack/lib/utils.a /Users/loos/Dropbox/quack/lib/HF.a /Users/loos/Dropbox/quack/lib/LR.a /Users/loos/Dropbox/quack/lib/AOtoMO.a /Users/loos/Dropbox/quack/lib/BasCor.a /Users/loos/Dropbox/quack/lib/RPA.a /Users/loos/Dropbox/quack/lib/MC.a /Users/loos/Dropbox/quack/lib/MBPT.a
|
||||
|
||||
clean:
|
||||
rm -f -- $(patsubst %/,$(LDIR)/%.a,$(wildcard */)) ; \
|
||||
|
@ -1,8 +1,7 @@
|
||||
IDIR =$(QUACK_ROOT)/include
|
||||
MODDIR=$(QUACK_ROOT)/src/modules
|
||||
|
||||
FC = gfortran -I$(IDIR) -J$(MODDIR) -I$(MODDIR)
|
||||
#FC = ifort -I$(IDIR) -module $(MODDIR)
|
||||
FC = gfortran -I$(IDIR) -J$(IDIR)
|
||||
#FC = ifort -I$(IDIR) -module $(IDIR)
|
||||
AR = libtool
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
|
@ -1,5 +1,6 @@
|
||||
BDIR =$(QUACK_ROOT)/bin
|
||||
LDIR =$(QUACK_ROOT)/lib
|
||||
IDIR =$(QUACK_ROOT)/include
|
||||
ODIR = obj
|
||||
SDIR =.
|
||||
include $(QUACK_ROOT)/src/Makefile.common
|
||||
@ -23,6 +24,7 @@ $(ODIR)/%.o: %.f
|
||||
|
||||
$(LDIR)/$(TARGET): $(patsubst %,$(LDIR)/%,$(DEPEND)) $(OBJ)
|
||||
$(AR) -static -o $@ $^
|
||||
if [[ $(echo *.mod).x != ".x" ]] ; then mv -f *.mod $(IDIR) ; fi
|
||||
|
||||
debug:
|
||||
DEBUG=1 $(MAKE) $(LDIR)/$(TARGET)
|
||||
|
1
src/modules/.gitignore
vendored
1
src/modules/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.mod
|
Loading…
Reference in New Issue
Block a user