File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -1379,8 +1379,16 @@ def collect_output(self, force_update=False):
13791379
13801380 def convergence_check (self ):
13811381 """
1382- Checks if job has converged according to given cutoffs.
1382+ Checks for electronic and ionic convergence according to the user specified tolerance
1383+
1384+ Returns:
1385+
1386+ bool: True if converged
1387+
13831388 """
1389+ # Checks if sufficient empty states are present
1390+ if not self .nbands_convergence_check ():
1391+ return False
13841392 if (
13851393 self ._generic_input ["calc_mode" ] == "minimize"
13861394 and self ._output_parser ._parse_dict ["scf_convergence" ][- 1 ]
Original file line number Diff line number Diff line change @@ -404,6 +404,19 @@ def collect_output(self):
404404 )
405405
406406 def convergence_check (self ):
407+ """
408+ Checks for electronic and ionic convergence according to the user specified tolerance
409+
410+ Returns:
411+
412+ bool: True if converged
413+
414+ """
415+ # Checks if sufficient empty states are present
416+ if not self .nbands_convergence_check ():
417+ return False
418+ if not self .nbands_convergence_check ():
419+ return False
407420 if "IBRION" in self ["input/incar/data_dict" ]["Parameter" ]:
408421 ind = self ["input/incar/data_dict" ]["Parameter" ].index ("IBRION" )
409422 ibrion = int (self ["input/incar/data_dict" ]["Value" ][ind ])
You can’t perform that action at this time.
0 commit comments