Skip to content

Commit

Permalink
integer overflow safety
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRHermes committed Aug 5, 2024
1 parent b01c7e8 commit 401bca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion my_pyscf/lassi/op_o0.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def memcheck (las, ci, soc=None):
else:
nbytes = 2*nbytes_per_sfvec
# memory load of ci_dp vectors
nbytes += sum ([np.prod ([c[iroot].size for c in ci])
nbytes += sum ([np.prod ([float (c[iroot].size) for c in ci])
* np.amax ([c[iroot].dtype.itemsize for c in ci])
for iroot in range (nroots)])
safety_factor = 1.2
Expand Down

0 comments on commit 401bca1

Please sign in to comment.