Example #1
0
 def test_scs_radc2(self):
     adc2 = adc.RADC2(self.rhf,
                      verbose=False,
                      os_factor=1.2,
                      ss_factor=0.33).run()
     self.assertAlmostEqual(adc2.e_corr, self.e_mp2_scs, 8)
Example #2
0
 def test_radc2_truncated(self):
     adc2 = adc.RADC2(self.rhf, verbose=False, nmom=(5, 5)).run()
     self.assertAlmostEqual(adc2.e_corr, self.e_mp2, 3)
     adc2 = adc.RADC2(self.rhf, verbose=False, nmom=(2, 2)).run()
     self.assertAlmostEqual(adc2.e_corr, self.e_mp2, 2)
Example #3
0
 def test_radc2_ip(self):
     adc2 = adc.RADC2(self.rhf, method='ip', verbose=False).run()
     self.assertAlmostEqual(adc2.ip[0], self.ip, 8)
Example #4
0
 def test_radc2_ea(self):
     adc2 = adc.RADC2(self.rhf, method='ea', verbose=False).run()
     self.assertAlmostEqual(adc2.ea[0], self.ea, 8)
Example #5
0
 def test_radc2_ecorr(self):
     adc2 = adc.RADC2(self.rhf, verbose=False).run()
     self.assertAlmostEqual(adc2.e_corr, self.e_mp2, 8)