Skip to content

Commit

Permalink
t2 dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanvo committed Feb 21, 2024
1 parent b2f2dfe commit cde3140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf/pbc/mp/kmp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def kernel(mp, mo_energy, mo_coeff, verbose=logger.NOTE, with_t2=WITH_T2):
if with_t2:
if mem_usage > mem_avail:
ft2 = lib.H5TmpFile()
t2 = ft2.create_dataset('t2', (nkpts, nkpts, nkpts, nocc, nocc, nvir, nvir), dtype=complex)
t2 = ft2.create_dataset('t2', (nkpts, nkpts, nkpts, nocc, nocc, nvir, nvir), dtype=complex)[:]
# raise MemoryError('Insufficient memory! MP2 memory usage %d MB (currently available %d MB)'
# % (mem_usage, mem_avail))
else:
Expand Down

0 comments on commit cde3140

Please sign in to comment.