Skip to content

Commit eb222a1

Browse files
authored
NonConvergingErrorHandler document AMIX maybe ineffective in helping SCF convergence (#358)
1 parent 55ef52e commit eb222a1

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: ^(docs|tests/files|tasks.py)
22

33
ci:
44
autoupdate_schedule: monthly
5-
skip: [ mypy, pyright ]
5+
skip: [mypy, pyright]
66
autofix_commit_msg: pre-commit auto-fixes
77
autoupdate_commit_msg: pre-commit autoupdate
88

@@ -11,7 +11,7 @@ repos:
1111
rev: v0.11.4
1212
hooks:
1313
- id: ruff
14-
args: [ --fix, --unsafe-fixes ]
14+
args: [--fix, --unsafe-fixes]
1515
- id: ruff-format
1616

1717
- repo: https://github.com/pre-commit/pre-commit-hooks

src/custodian/vasp/handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,9 @@ class NonConvergingErrorHandler(ErrorHandler):
15911591
Check if a run is hitting the maximum number of electronic steps at the
15921592
last nionic_steps ionic steps (default=10). If so, change ALGO using a
15931593
multi-step ladder scheme or kill the job.
1594+
1595+
In some cases (ALGO=All or ALGO=Normal and ISMEAR < 0), this handler also changes AMIX
1596+
and BMIX but unsure if this helps much. Some anecdotal evidence suggests it doesn't.
15941597
"""
15951598

15961599
is_monitor = True

src/custodian/vasp/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def terminate(self, directory="./") -> None:
724724
proc.kill()
725725
return
726726
except (psutil.NoSuchProcess, psutil.AccessDenied) as exc:
727-
logger.warning(f"Exception {exc} encountered while killing VASP.")
727+
logger.exception(f"Exception {exc} encountered while killing VASP.")
728728
continue
729729

730730
logger.warning(

src/custodian/vasp/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def _estimate_num_k_points_from_kspacing(structure: Structure, kspacing: float)
1818
Inputs:
1919
structure (Structure): structure used in the calculation
2020
kspacing (float): KSPACING used in the calculation
21+
2122
Returns:
2223
tuple[int,int,int] : the number of estimated k-points on each axis.
2324

0 commit comments

Comments
 (0)