mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-05-28 10:45:46 +08:00
Add unused omega argument to NeuralNumint.eval_xc to match pyscf interface
PiperOrigin-RevId: 480302784
This commit is contained in:
committed by
Diego de las Casas
parent
da0f2de14d
commit
789bc38a2e
+11
-2
@@ -650,6 +650,7 @@ class NeuralNumInt(numint.NumInt):
|
|||||||
spin: int = 0,
|
spin: int = 0,
|
||||||
relativity: int = 0,
|
relativity: int = 0,
|
||||||
deriv: int = 1,
|
deriv: int = 1,
|
||||||
|
omega: Optional[float] = None,
|
||||||
verbose=None
|
verbose=None
|
||||||
) -> Tuple[np.ndarray, Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray],
|
) -> Tuple[np.ndarray, Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray],
|
||||||
None, None]:
|
None, None]:
|
||||||
@@ -670,8 +671,9 @@ class NeuralNumInt(numint.NumInt):
|
|||||||
details.
|
details.
|
||||||
spin: 0 for a spin-unpolarized (restricted Kohn-Sham) calculation, and
|
spin: 0 for a spin-unpolarized (restricted Kohn-Sham) calculation, and
|
||||||
spin-polarized (unrestricted) otherwise.
|
spin-polarized (unrestricted) otherwise.
|
||||||
relativity: unused.
|
relativity: Not supported.
|
||||||
deriv: unused. The first functional derivatives are always computed.
|
deriv: unused. The first functional derivatives are always computed.
|
||||||
|
omega: RSH parameter. Not supported.
|
||||||
verbose: unused.
|
verbose: unused.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@@ -685,7 +687,14 @@ class NeuralNumInt(numint.NumInt):
|
|||||||
kxc is set to None. (The third-order functional derivatives are not
|
kxc is set to None. (The third-order functional derivatives are not
|
||||||
computed.)
|
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.
|
# Retrieve cached state.
|
||||||
ao = self._grid_state.ao
|
ao = self._grid_state.ao
|
||||||
|
|||||||
Reference in New Issue
Block a user