@@ -90,17 +90,11 @@ def __init__(self, vasp_data):
90
90
91
91
# FIXME: Reading from EIGENVAL is obsolete and should be
92
92
# removed completely.
93
- # if not vasp_data.eigenval.eigs is None:
94
- if False :
93
+ if vasp_data .eigenval .eigs is not None :
95
94
print ("eigvals from EIGENVAL" )
96
95
self .eigvals = vasp_data .eigenval .eigs
97
96
self .ferw = vasp_data .eigenval .ferw .transpose ((2 , 0 , 1 ))
98
-
99
- nk_eig = vasp_data .eigenval .nktot
100
- assert nk_eig == self .nktot , "PLOCAR is inconsistent with EIGENVAL (number of k-points)"
101
-
102
- # Check that the number of band is the same in PROJCAR and EIGENVAL
103
- assert nb_plo == self .nband , "PLOCAR is inconsistent with EIGENVAL (number of bands)"
97
+ self .efermi = vasp_data .doscar .efermi
104
98
else :
105
99
print ("eigvals from LOCPROJ" )
106
100
self .eigvals = vasp_data .plocar .eigs
@@ -151,7 +145,7 @@ def debug_density_matrix(self):
151
145
152
146
# Spin factor
153
147
sp_fac = 2.0 if ns == 1 and self .nc_flag == False else 1.0
154
-
148
+
155
149
if self .nc_flag == False :
156
150
den_mat = np .zeros ((ns , nproj , nproj ), dtype = float )
157
151
overlap = np .zeros ((ns , nproj , nproj ), dtype = float )
@@ -184,9 +178,9 @@ def debug_density_matrix(self):
184
178
out += " "
185
179
out += '' .join (map ("{0:12.7f}" .format , dov ))
186
180
print (out )
187
-
188
-
189
-
181
+
182
+
183
+
190
184
else :
191
185
print ("!! WARNING !! Non Collinear Routine" )
192
186
den_mat = np .zeros ((ns , nproj , nproj ), dtype = float )
0 commit comments