diff --git a/Modules/DynamicalLanczos.py b/Modules/DynamicalLanczos.py index c80718d1..b4b71db8 100644 --- a/Modules/DynamicalLanczos.py +++ b/Modules/DynamicalLanczos.py @@ -3658,12 +3658,12 @@ def save_abc(self, file): In this way the calculation cannot be restarted. """ - total_len = len(self.c_coeffs) + total_len = len(self.a_coeffs) abc = np.zeros( (total_len, 3), dtype = np.double) - abc[:,0] = self.a_coeffs[:total_len] - abc[:,1] = self.b_coeffs - abc[:,2] = self.c_coeffs + abc[:,0] = self.a_coeffs + abc[:len(self.b_coeffs),1] = self.b_coeffs + abc[:len(self.c_coeffs),2] = self.c_coeffs np.savetxt(file, abc, header = "a; b; c")