Skip to content

Commit

Permalink
update direct_scf_tol in examples and tests (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 authored May 7, 2024
1 parent 05d4521 commit bafd2d8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/dft_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
if mf_df._numint.libxc.is_nlc(mf_df.xc):
mf_df.nlcgrids.atom_grid = (50,194)
mf_df.direct_scf_tol = 1e-14
mf_df.direct_scf = 1e-14
mf_df.conv_tol = 1e-10
mf_df.chkfile = None
mf_df.conv_tol_cpscf = 1e-3
Expand Down
4 changes: 2 additions & 2 deletions gpu4pyscf/grad/tests/test_rhf_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def tearDownModule():

def _check_grad(mol, tol=1e-6, disp=None):
mf = cpu_scf.hf.RHF(mol)
mf.direct_scf_tol = 1e-10
mf.direct_scf_tol = 1e-14
mf.disp = disp
mf.kernel()

Expand Down Expand Up @@ -80,7 +80,7 @@ def test_grad_d4(self):

def test_to_cpu(self):
mf = gpu_scf.hf.RHF(mol_sph)
mf.direct_scf_tol = 1e-10
mf.direct_scf_tol = 1e-14
mf.disp = 'd3bj'
mf.kernel()

Expand Down
2 changes: 1 addition & 1 deletion gpu4pyscf/grad/tests/test_rks_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_grad_cart(self):
@pytest.mark.skipif(pyscf_25, reason='requires pyscf 2.6 or higher')
def test_to_cpu(self):
mf = gpu_rks.RKS(mol_sph, xc='b3lyp')
mf.direct_scf_tol = 1e-10
mf.direct_scf_tol = 1e-14
mf.disp = 'd3bj'
mf.kernel()

Expand Down
4 changes: 2 additions & 2 deletions gpu4pyscf/grad/tests/test_uhf_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def tearDownModule():

def _check_grad(mol, tol=1e-6, disp=None):
mf = scf.uhf.UHF(mol)
mf.direct_scf_tol = 1e-10
mf.direct_scf_tol = 1e-14
mf.disp = disp
mf.kernel()

Expand Down Expand Up @@ -83,7 +83,7 @@ def test_grad_d4(self):

def test_to_cpu(self):
mf = scf.uhf.UHF(mol_sph)
mf.direct_scf_tol = 1e-10
mf.direct_scf_tol = 1e-14
mf.disp = 'd3bj'
mf.kernel()

Expand Down
2 changes: 1 addition & 1 deletion gpu4pyscf/grad/tests/test_uks_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_grad_d4(self):
@pytest.mark.skipif(pyscf_25, reason='requires pyscf 2.6 or higher')
def test_to_cpu(self):
mf = uks.UKS(mol_sph, xc='b3lyp')
mf.direct_scf_tol = 1e-10
mf.direct_scf_tol = 1e-14
mf.disp = 'd3bj'
mf.kernel()

Expand Down

0 comments on commit bafd2d8

Please sign in to comment.