Skip to content

Commit

Permalink
Fix fields in VHFOpt struct due to the change in pyscf-2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Oct 30, 2024
1 parent c85a2d1 commit 8d60b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyscf/lrdf/lrdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ def __init__(self, mol, intor=None, prescreen='CVHFnoscreen',

@property
def direct_scf_tol(self):
return np.exp(self._this.direct_scf_cutoff)
return np.exp(self._this.direct_scf_tol)
@direct_scf_tol.setter
def direct_scf_tol(self, v):
self._this.direct_scf_cutoff = np.log(v)
self._this.direct_scf_tol = np.log(v)

def init_cvhf_direct(self, mol, intor=None, qcondname=None):
nbas = mol.nbas
Expand Down

0 comments on commit 8d60b1c

Please sign in to comment.