Skip to content

Commit

Permalink
Add warning/NotImplementedError for #135
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRHermes committed Jan 7, 2025
1 parent 34346c7 commit 2939b82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions my_pyscf/fci/csf_symm.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def kernel(self, h1e, eri, norb, nelec, ci0=None, **kwargs):
''' Over the top of the existing kernel, I just need to set the parameters and cache values related to spin.
...and electron configuration point group '''
log = new_logger (self, self.verbose)
gpname = getattr (self.mol, 'groupname', None)
if gpname in ('Dooh', 'Coov'):
log.warn ('Wfn symmetry for Dooh/Coov not supported. Wfn symmetry is mapped to D2h/C2v group.')
if 'nroots' not in kwargs:
nroots = self.nroots
kwargs['nroots'] = nroots
Expand All @@ -58,6 +62,8 @@ def kernel(self, h1e, eri, norb, nelec, ci0=None, **kwargs):
kwargs['wfnsym'] = wfnsym
self.check_transformer_cache ()
self.log_transformer_cache (logger.DEBUG)
if self.transformer.wfnsym > 9:
raise NotImplementedError ('High-momentum point groups in Dooh/Coov')

idx_sym = self.transformer.confsym[self.transformer.econf_csf_mask] == wfnsym
e, c = kernel (self, h1e, eri, norb, nelec, smult=self.smult, idx_sym=idx_sym, ci0=ci0,
Expand Down

0 comments on commit 2939b82

Please sign in to comment.