コード例 #1
0
 def test_dielectric(self):
     filepath = os.path.join(test_dir, "OUTCAR.dielectric")
     outcar = Outcar(filepath)
     outcar.read_corrections()
     self.assertAlmostEqual(outcar.data["dipol_quadrupol_correction"],
                            0.03565)
     self.assertAlmostEqual(outcar.final_energy, -797.46760559)
コード例 #2
0
ファイル: test_outputs.py プロジェクト: adozier/pymatgen
 def test_dielectric(self):
     filepath = os.path.join(test_dir, "OUTCAR.dielectric")
     outcar = Outcar(filepath)
     outcar.read_corrections()
     self.assertAlmostEqual(outcar.data["dipol_quadrupol_correction"], 0.03565)
     self.assertAlmostEqual(outcar.final_energy, -797.46760559)