@@ -236,7 +236,6 @@ class ExplicitDispersionModel(BaseModelMethod):
236236 • S. Grimme et al., J. Chem. Phys. 136, 154105 (2012) - DFT-D3(BJ)
237237 • A. Tkatchenko, M. Scheffler, Phys. Rev. Lett. 102, 073005 (2009) - TS
238238 • A. Tkatchenko et al., Phys. Rev. Lett. 108, 236402 (2012) - MBD
239- • O. A. Vydrov, T. Van Voorhis, J. Chem. Phys. 133, 244103 (2010) - VV10
240239 • C. Steinmann, WIREs Comput. Mol. Sci. 10, e1438 (2020) - overview
241240 """
242241
@@ -274,15 +273,6 @@ class ExplicitDispersionModel(BaseModelMethod):
274273 """ ,
275274 )
276275
277- # Deprecated compatibility field. Prefer `xc_partner_ref`.
278- xc_partner = Quantity (
279- type = str ,
280- description = """
281- Deprecated string label for the baseline XC partner
282- (e.g. 'PBE', 'SCAN', 'B3LYP'). Prefer `xc_partner_ref`.
283- """ ,
284- )
285-
286276
287277class RelativityModel (BaseModelMethod ):
288278 """
@@ -391,15 +381,6 @@ class NonlocalCorrelation(BaseModelMethod):
391381 """ ,
392382 )
393383
394- # Deprecated compatibility field. Prefer `xc_partner_ref`.
395- xc_partner = Quantity (
396- type = str ,
397- description = """
398- Deprecated string label for the baseline XC partner
399- (e.g. 'PBE', 'SCAN', 'B3LYP'). Prefer `xc_partner_ref`.
400- """ ,
401- )
402-
403384
404385class OrbitalLocalization (BaseModelMethod ):
405386 """Transforming canonical MOs into a localized representation.
@@ -671,7 +652,14 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
671652
672653 if base_xc_key :
673654 existing_nonlocal .xc_partner_ref = self .xc
674- existing_nonlocal .xc_partner = base_xc_key
655+
656+ if base_xc_key :
657+ for contribution in self .contributions or []:
658+ if (
659+ isinstance (contribution , ExplicitDispersionModel )
660+ and contribution .xc_partner_ref is None
661+ ):
662+ contribution .xc_partner_ref = self .xc
675663
676664 # XC-specific normalization now handled by XCFunctional
677665 self .xc .normalize (archive , logger )
0 commit comments