Skip to content

Commit

Permalink
Allows using k-point symmetry for RSDF
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnus committed Sep 23, 2022
1 parent 8727392 commit 7099dae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyscf/pbc/df/rsdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def dump_flags(self, verbose=None):
log.info('j2c_eig_always = %s', self.j2c_eig_always)
log.info('omega = %s', self.omega)
log.info('ke_cutoff = %s', self.ke_cutoff)
log.info('mesh = %s (%d PWs)', self.mesh, np.prod(self.mesh))
if self.mesh is not None:
log.info('mesh = %s (%d PWs)', self.mesh, np.prod(self.mesh))
log.info('mesh_compact = %s (%d PWs)', self.mesh_compact,
np.prod(self.mesh_compact))
if self.auxcell is None:
Expand Down
1 change: 1 addition & 0 deletions pyscf/pbc/df/rsdf_jk.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def density_fit(mf, auxbasis=None, mesh=None, with_df=None):
else:
kpts = numpy.reshape(mf.kpt, (1,3))

kpts = getattr(kpts, 'kpts', kpts)
with_df = rsdf.RSDF(mf.cell, kpts)
with_df.max_memory = mf.max_memory
with_df.stdout = mf.stdout
Expand Down

0 comments on commit 7099dae

Please sign in to comment.