Skip to content

Commit

Permalink
experiment: quartet c2h4n4_2frag
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRHermes committed Dec 5, 2024
1 parent 749b804 commit c4b84d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions debug/lassi/debug_lassis_targets_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,11 @@ def test_c2h4n4_2frag (self):
mo = las.set_fragments_((list (range (5)), list (range (5,10))))
las.kernel (mo)
mo_coeff = las.mo_coeff
las = lasscf_async.LASSCF (mf, (5,5), ((3,2),(2,3)))
las = lasscf_async.LASSCF (mf, (5,5), ((4,1),(1,4)))
las.lasci_(mo_coeff)
lsi = lassi.LASSIS (las).run ()
e_str = lsi.e_roots[0]
with self.subTest ('str converged'):
self.assertTrue (lsi.converged)
str_converged = lsi.converged
# equil
mol = struct (0.0, 0.0, '6-31g', symmetry=False)
mol.spin = 0
Expand All @@ -127,15 +126,17 @@ def test_c2h4n4_2frag (self):
mo = las.set_fragments_((list (range (5)), list (range (5,10))), mo)
las.kernel (mo)
mo_coeff = las.mo_coeff
las = lasscf_async.LASSCF (mf, (5,5), ((3,2),(2,3)))
las = lasscf_async.LASSCF (mf, (5,5), ((4,1),(1,4)))
las.lasci_(mo_coeff)
lsi = lassi.LASSIS (las).run ()
e_equil = lsi.e_roots[0]
with self.subTest ('equil converged'):
self.assertTrue (lsi.converged)
# test
de = 1000 * (e_str - e_equil)
self.assertAlmostEqual (de, 191.185141573740, 1)
with self.subTest ('str converged'):
self.assertTrue (str_converged)
with self.subTest ('equil converged'):
self.assertTrue (lsi.converged)

def test_kremer_cr2_model (self):
xyz='''Cr -1.320780000000 0.000050000000 -0.000070000000
Expand Down
4 changes: 2 additions & 2 deletions tests/lassi/test_lassis_targets_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_c2h4n4_2frag (self):
mo = las.set_fragments_((list (range (5)), list (range (5,10))))
las.kernel (mo)
mo_coeff = las.mo_coeff
las = lasscf_async.LASSCF (mf, (5,5), ((3,2),(2,3)))
las = lasscf_async.LASSCF (mf, (5,5), ((4,1),(1,4)))
las.lasci_(mo_coeff)
lsi = lassi.LASSIS (las).run ()
e_str = lsi.e_roots[0]
Expand All @@ -127,7 +127,7 @@ def test_c2h4n4_2frag (self):
mo = las.set_fragments_((list (range (5)), list (range (5,10))), mo)
las.kernel (mo)
mo_coeff = las.mo_coeff
las = lasscf_async.LASSCF (mf, (5,5), ((3,2),(2,3)))
las = lasscf_async.LASSCF (mf, (5,5), ((4,1),(1,4)))
las.lasci_(mo_coeff)
lsi = lassi.LASSIS (las).run ()
e_equil = lsi.e_roots[0]
Expand Down

0 comments on commit c4b84d5

Please sign in to comment.