Skip to content

Commit

Permalink
enforce incore density fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
fishjojo committed Jan 25, 2023
1 parent 8b8d4ff commit 71494cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pyscfad/df/df.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ def build(self):
max_memory = self.max_memory - pyscf_lib.current_memory()[0]
int3c = mol._add_suffix('int3c2e')
int2c = mol._add_suffix('int2c2e')
if (nao_pair*naux*8/1e6 < .9*max_memory and
not isinstance(self._cderi_to_save, str)):
self._cderi = incore.cholesky_eri(mol, auxmol=auxmol,
int3c=int3c, int2c=int2c,
max_memory=max_memory, verbose=log)
else:
raise NotImplementedError('Outcore density fitting is not implemented.')
if (nao_pair*naux*8/1e6 > .9*max_memory or
isinstance(self._cderi_to_save, str)):
log.warn('Outcore density fitting is not implemented.\n'
'Using incore density fitting instead.')
self._cderi = incore.cholesky_eri(mol, auxmol=auxmol,
int3c=int3c, int2c=int2c,
max_memory=max_memory, verbose=log)
del log
return self

Expand Down

0 comments on commit 71494cf

Please sign in to comment.