Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 committed Nov 21, 2023
1 parent ecf6ac8 commit 8053b37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions examples/03-h2o_dzvp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from gpu4pyscf.dft import rks
lib.num_threads(8)

atom ='''
atom ='''
O 0.0000000000 -0.0000000000 0.1174000000
H -0.7570000000 -0.0000000000 -0.4696000000
H 0.7570000000 0.0000000000 -0.4696000000
Expand All @@ -35,7 +35,7 @@
mol = pyscf.M(atom=atom, basis=bas, max_memory=32000)

auxbasis = {}
from pyscf import df, gto
from pyscf import df
etb_basis = df.aug_etb(mol, beta=2.0)
for i in range(mol.natm):
sym = mol.atom_pure_symbol(i)
Expand All @@ -57,7 +57,7 @@

# Compute Energy
print('------------------- Energy -----------------------------')
e_dft = mf_GPU.kernel()
e_dft = mf_GPU.kernel()
print('DFT energy by GPU4PySCF')
print(e_dft)

Expand Down
5 changes: 2 additions & 3 deletions examples/09-mbis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from gpu4pyscf.dft import rks
lib.num_threads(8)

atom ='''
atom ='''
O 0.0000000000 -0.0000000000 0.1174000000
H -0.7570000000 -0.0000000000 -0.4696000000
H 0.7570000000 0.0000000000 -0.4696000000
Expand Down Expand Up @@ -60,5 +60,4 @@
atnums = np.array(atom_list)
atcoords = mol.atom_coords(unit='B')

np.savez('density.npz', points=points, weights=weights, \
density=density, atnums=atnums, atcoords=atcoords)
np.savez('density.npz', points=points, weights=weights, density=density, atnums=atnums, atcoords=atcoords)
2 changes: 1 addition & 1 deletion gpu4pyscf/hessian/rks.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def _get_vxc_deriv1(hessobj, mo_coeff, mo_occ, max_memory):
ao_dm0 = aow = None
elif xctype == 'MGGA':
if grids.level < 5:
logger.warn(mol, 'MGGA Hessian is sensitive to dft grids.')
log.warn(mol, 'MGGA Hessian is sensitive to dft grids.')
ao_deriv = 2
for ao, mask, weight, coords \
in ni.block_loop(opt.mol, grids, nao, ao_deriv, max_memory):
Expand Down

0 comments on commit 8053b37

Please sign in to comment.