Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 032d3e2

Browse files
authored
Merge pull request #177 from scemama/master
Finalized MR-CCSD
2 parents 1ea5e17 + 2f517fe commit 032d3e2

64 files changed

Lines changed: 3338 additions & 849 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ sudo: false
99
addons:
1010
apt:
1111
packages:
12-
- zlib1g-dev
13-
- libgmp3-dev
1412
- gfortran
1513
- gcc
1614
- liblapack-dev
1715
- graphviz
16+
# - zlib1g-dev
17+
# - libgmp3-dev
1818

1919
cache:
2020
directories:
@@ -29,4 +29,4 @@ script:
2929
- source ./quantum_package.rc ; qp_module.py install Full_CI Full_CI_ZMQ Hartree_Fock CAS_SD_ZMQ mrcepa0 All_singles
3030
- source ./quantum_package.rc ; ninja
3131
- source ./quantum_package.rc ; cd ocaml ; make ; cd -
32-
- source ./quantum_package.rc ; cd tests ; ./run_tests.sh #-v
32+
- source ./quantum_package.rc ; cd tests ; ./run_tests.sh -v

configure

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ d_dependency = {
7171
"emsl": ["python"],
7272
"gcc": [],
7373
"g++": [],
74-
"zeromq" : [ "g++" ],
75-
"f77zmq" : [ "zeromq", "python" ],
74+
"zeromq" : [ "g++", "make" ],
75+
"f77zmq" : [ "zeromq", "python", "make" ],
7676
"python": [],
7777
"ninja": ["g++", "python"],
7878
"make": [],
@@ -150,7 +150,6 @@ f77zmq = Info(
150150
url='{head}/zeromq/f77_zmq/{tail}'.format(**path_github),
151151
description=' F77-ZeroMQ',
152152
default_path=join(QP_ROOT_LIB, "libf77zmq.a") )
153-
# join(QP_ROOT, "src", "ZMQ", "f77zmq.h") )
154153

155154
p_graphviz = Info(
156155
url='https://github.com/xflr6/graphviz/archive/master.tar.gz',
@@ -166,7 +165,7 @@ d_info = dict()
166165

167166
for m in ["ocaml", "m4", "curl", "zlib", "patch", "irpf90", "docopt",
168167
"resultsFile", "ninja", "emsl", "ezfio", "p_graphviz",
169-
"zeromq", "f77zmq","bats" ]:
168+
"zeromq", "f77zmq","bats"]:
170169
exec ("d_info['{0}']={0}".format(m))
171170

172171

@@ -494,7 +493,9 @@ def create_ninja_and_rc(l_installed):
494493
'export PYTHONPATH="${QP_EZFIO}/Python":"${QP_PYTHON}":"${PYTHONPATH}"',
495494
'export PATH="${QP_PYTHON}":"${QP_ROOT}"/bin:"${QP_ROOT}"/ocaml:"${PATH}"',
496495
'export LD_LIBRARY_PATH="${QP_ROOT}"/lib:"${LD_LIBRARY_PATH}"',
497-
'export LIBRARY_PATH="${QP_ROOT}"/lib:"${LIBRARY_PATH}"', "",
496+
'export LIBRARY_PATH="${QP_ROOT}"/lib:"${LIBRARY_PATH}"',
497+
'export C_INCLUDE_PATH="${C_INCLUDE_PATH}":"${QP_ROOT}"/include',
498+
'',
498499
'source ${QP_ROOT}/install/EZFIO/Bash/ezfio.sh', "",
499500
'source ${HOME}/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true',
500501
'',

include/.empty

Whitespace-only changes.

install/scripts/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
BUILD=_build/${TARGET}
55
rm -rf -- ${BUILD}
66
mkdir ${BUILD} || exit 1
7-
tar -zxf Downloads/${TARGET}.tar.gz --strip-components=1 --directory=${BUILD} || exit 1
7+
if [[ -f Downloads/${TARGET}.tar.gz ]] ; then
8+
tar -zxf Downloads/${TARGET}.tar.gz --strip-components=1 --directory=${BUILD} || exit 1
9+
elif [[ -f Downloads/${TARGET}.tar.bz2 ]] ; then
10+
tar -jxf Downloads/${TARGET}.tar.bz2 --strip-components=1 --directory=${BUILD} || exit 1
11+
fi
812
_install || exit 1
913
rm -rf -- ${BUILD} _build/${TARGET}.log
1014
exit 0

install/scripts/install_curl.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,4 @@ function _install()
1010
mv curl.ermine ${QP_ROOT}/bin/curl || return 1
1111
}
1212

13-
BUILD=_build/${TARGET}
14-
rm -rf -- ${BUILD}
15-
mkdir ${BUILD} || exit 1
16-
tar -xvjf Downloads/${TARGET}.tar.bz2 --strip-components=1 --directory=${BUILD} || exit 1
17-
_install || exit 1
18-
rm -rf -- ${BUILD} _build/${TARGET}.log
19-
exit 0
13+
source scripts/build.sh

install/scripts/install_f77zmq.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ function _install()
77
cd ..
88
QP_ROOT=$PWD
99
cd -
10-
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":"${QP_ROOT}"/lib
1110
set -e
1211
set -u
13-
export ZMQ_H="${QP_ROOT}"/lib/zmq.h
12+
export ZMQ_H="${QP_ROOT}"/include/zmq.h
1413
cd "${BUILD}"
1514
make -j 8 || exit 1
1615
mv libf77zmq.a "${QP_ROOT}"/lib || exit 1

install/scripts/install_gmp.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash -x
2+
3+
TARGET=gmp
4+
5+
function _install()
6+
{
7+
rm -rf -- ${TARGET}
8+
mkdir ${TARGET} || exit 1
9+
cd ..
10+
QP_ROOT=$PWD
11+
cd -
12+
cd ${BUILD}
13+
./configure --prefix=$QP_ROOT && make -j 8 || exit 1
14+
make install || exit 1
15+
}
16+
17+
source scripts/build.sh

install/scripts/install_m4.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ function _install()
88
QP_ROOT=$PWD
99
cd -
1010
cd ${BUILD}
11-
./configure && make || exit 1
12-
ln -sf ${PWD}/src/m4 ${QP_ROOT}/bin || exit 1
11+
./configure --prefix=$QP_ROOT && make || exit 1
1312
}
1413

1514
source scripts/build.sh

install/scripts/install_ocaml.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ QP_ROOT=$PWD
55
cd -
66

77
# Normal installation
8-
PACKAGES="core cryptokit zarith ocamlfind sexplib ZMQ"
8+
PACKAGES="core cryptokit.1.10 ocamlfind sexplib ZMQ"
99
#ppx_sexp_conv
1010

1111
# Needed for ZeroMQ
12-
export C_INCLUDE_PATH="${QP_ROOT}"/lib:"${C_INCLUDE_PATH}"
12+
export C_INCLUDE_PATH="${QP_ROOT}"/include:"${C_INCLUDE_PATH}"
1313
export LIBRARY_PATH="${QP_ROOT}"/lib:"${LIBRARY_PATH}"
1414
export LD_LIBRARY_PATH="${QP_ROOT}"/lib:"${LD_LIBRARY_PATH}"
1515

install/scripts/install_patch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ function _install()
99
QP_ROOT=$PWD
1010
cd -
1111
cd ${BUILD}
12-
./configure --prefix=${QP_ROOT}/install/${TARGET} && make || exit 1
12+
./configure --prefix=${QP_ROOT} && make || exit 1
1313
make install || exit 1
1414
cd -
1515
cp ${TARGET}/bin/${TARGET} ${QP_ROOT}/bin || exit 1
1616
rm -R -- ${TARGET} || exit 1
1717
}
1818

19-
source scripts/build.sh
19+
source scripts/build.sh

0 commit comments

Comments
 (0)