@@ -1025,35 +1025,34 @@ def test_read_lcalcpol(self):
1025
1025
1026
1026
outcar .read_lcalcpol ()
1027
1027
1028
- p_ion = [ 0. , 0. , 19.70306 ]
1029
- p_elec = [ 4.02264 , 4.02263 , - 4.08851 ]
1030
- p_sp1 = [ 2.01124 , 2.01124 , - 2.04426 ]
1031
- p_sp2 = [ 2.01139 , 2.01139 , - 2.04426 ]
1028
+ p_ion = [0.0 , 0.0 , 19.70306 ]
1029
+ p_elec = [4.02264 , 4.02263 , - 4.08851 ]
1030
+ p_sp1 = [2.01124 , 2.01124 , - 2.04426 ]
1031
+ p_sp2 = [2.01139 , 2.01139 , - 2.04426 ]
1032
1032
1033
1033
for i in range (3 ):
1034
1034
self .assertAlmostEqual (outcar .p_ion [i ], p_ion [i ])
1035
1035
self .assertAlmostEqual (outcar .p_elec [i ], p_elec [i ])
1036
1036
self .assertAlmostEqual (outcar .p_sp1 [i ], p_sp1 [i ])
1037
1037
self .assertAlmostEqual (outcar .p_sp2 [i ], p_sp2 [i ])
1038
1038
1039
- # outcar with |e| Angst units
1039
+ # outcar with |e| Angst units
1040
1040
filepath = self .TEST_FILES_DIR / "outcar_vasp_6.3.gz"
1041
1041
outcar = Outcar (filepath )
1042
1042
1043
1043
outcar .read_lcalcpol ()
1044
1044
1045
- p_ion = [- 79.03374 , - 0. , - 28.44354 ]
1046
- p_elec = [ 9.01127e+00 , - 1.00000e-05 , 3.24308e+00 ]
1047
- p_sp1 = [4.50564 , 0. , 1.62154 ]
1048
- p_sp2 = [ 4.50563e+00 , - 1.00000e-05 , 1.62154e+00 ]
1045
+ p_ion = [- 79.03374 , - 0.0 , - 28.44354 ]
1046
+ p_elec = [9.01127e00 , - 1.00000e-05 , 3.24308e00 ]
1047
+ p_sp1 = [4.50564 , 0.0 , 1.62154 ]
1048
+ p_sp2 = [4.50563e00 , - 1.00000e-05 , 1.62154e00 ]
1049
1049
1050
1050
for i in range (3 ):
1051
1051
self .assertAlmostEqual (outcar .p_ion [i ], p_ion [i ])
1052
1052
self .assertAlmostEqual (outcar .p_elec [i ], p_elec [i ])
1053
1053
self .assertAlmostEqual (outcar .p_sp1 [i ], p_sp1 [i ])
1054
1054
self .assertAlmostEqual (outcar .p_sp2 [i ], p_sp2 [i ])
1055
1055
1056
-
1057
1056
def test_read_piezo_tensor (self ):
1058
1057
filepath = self .TEST_FILES_DIR / "OUTCAR.lepsilon.gz"
1059
1058
outcar = Outcar (filepath )
0 commit comments