@@ -501,6 +501,7 @@ def test_nr_uks_vv10_high_cost(self):
501
501
method .nlcgrids .atom_grid = {"H" : (40 , 110 ), "O" : (40 , 110 ),}
502
502
self .assertAlmostEqual (method .scf (), - 76.352381513158718 , 8 )
503
503
504
+ @unittest .skipIf ('dftd3' not in sys .modules , "requires the dftd3 library" )
504
505
def test_dft_parser (self ):
505
506
from pyscf .scf import dispersion
506
507
method = dft .RKS (h2o , xc = 'wb97m-d3bj' )
@@ -510,13 +511,6 @@ def test_dft_parser(self):
510
511
fn_facs = method ._numint .libxc .parse_xc (method .xc )
511
512
assert fn_facs [1 ][0 ][0 ] == 531
512
513
513
- method = dft .RKS (h2o , xc = 'wb97x-d3' )
514
- e_disp = dispersion .get_dispersion (method )
515
- self .assertAlmostEqual (e_disp , - 1.2566116169235249e-06 , 9 )
516
- assert method ._numint .libxc .is_nlc (method .xc ) == False
517
- fn_facs = method ._numint .libxc .parse_xc (method .xc )
518
- assert fn_facs [1 ][0 ][0 ] == 399
519
-
520
514
method = dft .RKS (h2o , xc = 'wb97x-d3bj' )
521
515
e_disp = dispersion .get_dispersion (method )
522
516
self .assertAlmostEqual (e_disp , - 0.0005697890844546384 , 9 )
0 commit comments