Skip to content

Commit 19c2a7f

Browse files
committed
release v1.4
1 parent c7730cc commit 19c2a7f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pyscf/dispersion/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.3.0'
1+
__version__ = '1.4.0'

pyscf/dispersion/dftd4.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,17 @@ def __init__(self, mol, xc, version='d4', ga=None, gc=None, wf=None, atm=False):
4949
self._param = None
5050

5151
log = lib.logger.new_logger(mol)
52+
import pyscf
53+
from packaging import version
54+
if version.parse(pyscf.__version__) <= version.parse('2.9.0'):
55+
5256
# https://github.com/dftd4/dftd4/pull/276
5357
if xc_lc == 'wb97x':
54-
log.warn('The previous wb97x is renamed as wb97x-2008. Now D4 dispersion for wb97x is the replacement of vv10 in wb97x-v. See https://github.com/dftd4/dftd4/blob/main/README.md')
58+
log.warn('The previous wb97x is renamed as wb97x-2008. \
59+
Since pyscf-dispersion v1.4, D4 dispersion for wb97x is \
60+
the replacement of vv10 in wb97x-v. \
61+
See https://github.com/dftd4/dftd4/blob/main/README.md')
62+
5563
coords = np.asarray(mol.atom_coords(), dtype=np.double, order='C')
5664
charge = np.array([mol.charge], dtype=np.double)
5765
nuc_types = [gto.charge(mol.atom_symbol(ia))

0 commit comments

Comments
 (0)