Skip to content

Commit

Permalink
Control the memory footprint for rsdf_builder and rsjk_builder (issue p…
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Jan 26, 2024
1 parent 35835bc commit 5f83d0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyscf/pbc/df/rsdf_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ def _guess_omega(cell, kpts, mesh=None):

if mesh is None:
nkpts = len(kpts)
ke_cutoff = 20. * nkpts**(-1./3)
ke_cutoff = 20. * (cell.nao/25 * nkpts)**(-1./3)
ke_cutoff = max(ke_cutoff, ke_min)
mesh = cell.cutoff_to_mesh(ke_cutoff)
else:
Expand Down
2 changes: 1 addition & 1 deletion pyscf/pbc/scf/rsjk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ def _guess_omega(cell, kpts, mesh=None):
if mesh is None:
omega_min = OMEGA_MIN
ke_min = estimate_ke_cutoff_for_omega(cell, omega_min)
nk = nkpts**(1./3)
nk = (cell.nao/25 * nkpts)**(1./3)
ke_cutoff = 50 / (.7+.25*nk+.05*nk**3)
ke_cutoff = max(ke_cutoff, ke_min)
mesh = cell.cutoff_to_mesh(ke_cutoff)
Expand Down

0 comments on commit 5f83d0f

Please sign in to comment.