Skip to content

Commit fe04233

Browse files
committed
Update dtype check
1 parent 1e8540f commit fe04233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyscf/df/df_jk.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def get_jk(dfobj, dm, hermi=0, with_j=True, with_k=True, direct_scf_tol=1e-13):
258258
vj = 0
259259
vk = numpy.zeros_like(dms)
260260

261-
if dms.dtype != numpy.float64:
261+
if numpy.iscomplexobj(dms):
262262
if with_j:
263263
vj = numpy.zeros_like(dms)
264264
max_memory = dfobj.max_memory - lib.current_memory()[0]

0 commit comments

Comments
 (0)