diff --git a/emle/emle.py b/emle/emle.py index 583f18d..797661b 100644 --- a/emle/emle.py +++ b/emle/emle.py @@ -1577,7 +1577,7 @@ def _sire_callback(self, atomic_numbers, charges_mm, xyz_qm, xyz_mm): return ( E_tot.item() * HARTREE_TO_KJ_MOL, (-grad_qm * HARTREE_TO_KJ_MOL * NANOMETER_TO_BOHR).tolist(), - (-grad_mm * HARTREE_TO_KJ_MOL * NANOMETER_TO_BOHR).tolist(), + (-grad_mm[:num_mm_atoms] * HARTREE_TO_KJ_MOL * NANOMETER_TO_BOHR).tolist(), ) def _get_E(self, charges_mm, xyz_qm_bohr, xyz_mm_bohr, s, chi):