Skip to content

Commit

Permalink
fix warning print
Browse files Browse the repository at this point in the history
  • Loading branch information
fishjojo authored and sunqm committed Sep 7, 2022
1 parent b724b7c commit 76ca523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyscf/pbc/scf/hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_ovlp(cell, kpt=np.zeros(3)):
if hermi_error > cell.precision and hermi_error > 1e-12:
logger.warn(cell, '%.4g error found in overlap integrals. '
'cell.precision or cell.rcut can be adjusted to '
'improve accuracy.')
'improve accuracy.', hermi_error)

cond = np.max(lib.cond(s))
if cond * cell.precision > 1e2:
Expand Down
2 changes: 1 addition & 1 deletion pyscf/pbc/scf/khf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_ovlp(mf, cell=None, kpts=None):
if hermi_error > cell.precision and hermi_error > 1e-12:
logger.warn(mf, '%.4g error found in overlap integrals. '
'cell.precision or cell.rcut can be adjusted to '
'improve accuracy.')
'improve accuracy.', hermi_error)

cond = np.max(lib.cond(s))
if cond * cell.precision > 1e2:
Expand Down

0 comments on commit 76ca523

Please sign in to comment.