From e66bb819f401213861ee082579fd64e8c36834aa Mon Sep 17 00:00:00 2001 From: kvkarandashev Date: Tue, 29 Oct 2024 22:40:09 +0100 Subject: [PATCH] `SCFWithSolvent.get_fock` no longer requires specifying `dm` as keyword argument --- pyscf/solvent/_attach_solvent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyscf/solvent/_attach_solvent.py b/pyscf/solvent/_attach_solvent.py index b90f98ae78..9d5d3defca 100644 --- a/pyscf/solvent/_attach_solvent.py +++ b/pyscf/solvent/_attach_solvent.py @@ -93,6 +93,8 @@ def get_veff(self, mol=None, dm=None, *args, **kwargs): def get_fock(self, h1e=None, s1e=None, vhf=None, dm=None, cycle=-1, diis=None, diis_start_cycle=None, level_shift_factor=None, damp_factor=None, fock_last=None): + if dm is None: dm = self.make_rdm1() + # DIIS was called inside super().get_fock. v_solvent, as a function of # dm, should be extrapolated as well. To enable it, v_solvent has to be # added to the fock matrix before DIIS was called.