Skip to content

Commit

Permalink
change the threshold in precond
Browse files Browse the repository at this point in the history
  • Loading branch information
puzhichen committed Jan 17, 2025
1 parent 86283f6 commit ce51c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpu4pyscf/tdscf/rhf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class TDBase(lib.StreamObject):
get_ab = NotImplemented

def get_precond(self, hdiag):
t=1.0e-14
t=1.0e-4
def precond(x, e, *args):
n_states = x.shape[0]
diagd = cp.repeat(hdiag.reshape(1,-1), n_states, axis=0)
Expand Down Expand Up @@ -172,7 +172,7 @@ class TDA(TDBase):
__doc__ = tdhf_cpu.TDA.__doc__

def get_precond(self, hdiag):
t=1.0e-14
t=1.0e-4
def precond(x, e, *args):
n_states = x.shape[0]
diagd = cp.repeat(hdiag.reshape(1,-1), n_states, axis=0)
Expand Down

0 comments on commit ce51c03

Please sign in to comment.