Skip to content

Commit

Permalink
Add unused omega argument to NeuralNumint.eval_xc to match pyscf inte…
Browse files Browse the repository at this point in the history
…rface

PiperOrigin-RevId: 480302784
  • Loading branch information
jsspencer authored and diegolascasas committed Oct 12, 2022
1 parent da0f2de commit 789bc38
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ def eval_xc(
spin: int = 0,
relativity: int = 0,
deriv: int = 1,
omega: Optional[float] = None,
verbose=None
) -> Tuple[np.ndarray, Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray],
None, None]:
Expand All @@ -670,8 +671,9 @@ def eval_xc(
details.
spin: 0 for a spin-unpolarized (restricted Kohn-Sham) calculation, and
spin-polarized (unrestricted) otherwise.
relativity: unused.
relativity: Not supported.
deriv: unused. The first functional derivatives are always computed.
omega: RSH parameter. Not supported.
verbose: unused.
Returns:
Expand All @@ -685,7 +687,14 @@ def eval_xc(
kxc is set to None. (The third-order functional derivatives are not
computed.)
"""
del xc_code, verbose, relativity, deriv # unused
del xc_code, verbose, deriv # unused

if relativity != 0:
raise NotImplementedError('Relatistic calculations are not implemented '
'for DM21 functionals.')
if omega is not None:
raise NotImplementedError('User-specifed range seperation parameters are '
'not implemented for DM21 functionals.')

# Retrieve cached state.
ao = self._grid_state.ao
Expand Down

0 comments on commit 789bc38

Please sign in to comment.