Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Dec 6, 2024
1 parent 9db1f7b commit 3cb9bf6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gpu4pyscf/df/tests/test_df_geomopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def test_df_rhf_geomopt(self):
assert np.linalg.norm(coords - coords_qchem) < 1e-4

def test_df_uks_geomopt(self):
mf = uks.UKS(mol, xc=xc, disp=disp).density_fit()
mf = uks.UKS(mol, xc=xc).density_fit()
mf.disp = disp
mf.grids.level = grids_level
mf.kernel()
mol_eq = optimize(mf, maxsteps=20)
Expand Down
1 change: 0 additions & 1 deletion gpu4pyscf/dft/roks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from gpu4pyscf.lib import utils

class ROKS(rks.KohnShamDFT, ROHF):
from gpu4pyscf.lib.utils import to_cpu, to_gpu, device

def __init__(self, mol, xc='LDA,VWN'):
ROHF.__init__(self, mol)
Expand Down
3 changes: 2 additions & 1 deletion gpu4pyscf/grad/tests/test_geomopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def test_rhf_geomopt(self):
assert np.linalg.norm(coords - coords_qchem) < 1e-4

def test_uks_geomopt(self):
mf = uks.UKS(mol, xc=xc, disp=disp)
mf = uks.UKS(mol, xc=xc)
mf.disp = disp
mf.grids.level = grids_level
mf.kernel()
mol_eq = optimize(mf, maxsteps=20)
Expand Down
2 changes: 1 addition & 1 deletion gpu4pyscf/tdscf/tests/test_tdrhf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def setUpClass(cls):
mol.basis = '631g'
mol.symmetry = True
cls.mol = mol.build()
cls.mf = mf = scf.RHF(mol).to_gpu().run()
cls.mf = scf.RHF(mol).to_gpu().run()
cls.df_mf = scf.RHF(mol).to_gpu().density_fit().run()
cls.nstates = 5 # make sure first 3 states are converged

Expand Down

0 comments on commit 3cb9bf6

Please sign in to comment.