Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Sep 20, 2023
1 parent 858e953 commit bb89e51
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 1,917 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci_linux/python_deps.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
python -m pip install --upgrade pip
pip install "numpy!=1.16,!=1.17" "scipy!=1.5" h5py pytest pytest-cov pytest-timer
pip install pyberny geometric
pip install spglib

#cppe
version=$(python -c 'import sys; version=sys.version_info[:2]; print("{0}.{1}".format(*version))')
if [ $version != '2.7' ] && [ $version != '3.5' ]; then
pip install cppe
fi
#pip install pyberny geometric
#pip install spglib
#
##cppe
#version=$(python -c 'import sys; version=sys.version_info[:2]; print("{0}.{1}".format(*version))')
#if [ $version != '2.7' ] && [ $version != '3.5' ]; then
# pip install cppe
#fi
1 change: 1 addition & 0 deletions pyscf/lib/linalg_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ def davidson1(aop, x0, precond, tol=1e-12, max_cycle=50, max_space=12,
fill_heff(heff, xs, ax, xt, axt, dot)
xt = axt = None
w, v = scipy.linalg.eigh(heff[:space,:space])
print('linalg.v.dtype=', v.dtype)
if callable(pick):
w, v, idx = pick(w, v, nroots, locals())
if len(w) == 0:
Expand Down
1 change: 1 addition & 0 deletions pyscf/scf/_response_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def vind(dm1):
if hermi == 2:
v1 = numpy.zeros_like(dm1)
else:
print(hermi, 'hermi')
v1 = ni.nr_rks_fxc(mol, mf.grids, mf.xc, dm0, dm1, 0, hermi,
rho0, vxc, fxc, max_memory=max_memory)
if hybrid:
Expand Down
Loading

0 comments on commit bb89e51

Please sign in to comment.