Skip to content

Commit fc5f020

Browse files
committed
Added the print the error structure
1 parent b3d3379 commit fc5f020

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/Ensemble.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3052,7 +3052,8 @@ def get_energy_forces(self, ase_calculator, compute_stress = True, stress_numeri
30523052
count_fails += 1
30533053
if count_fails >= 5:
30543054
run = False
3055-
sys.stderr.write("Error in the ASE calculator for more than 5 times\n")
3055+
struct.save_scf("error_struct.scf")
3056+
sys.stderr.write("Error in the ASE calculator for more than 5 times\n while computing 'error_struct.scf'")
30563057
raise
30573058

30583059

0 commit comments

Comments
 (0)