[CP2K-user] [CP2K:22365] MOLECULAR_MOMENTS localization with DFT+U and UKS - CP2K 2026.1

'Matthew Emerson' via cp2k cp2k at googlegroups.com
Tue Aug 4 14:41:25 UTC 2026


Dear CP2K developers and users,

I'm running into an issue with MOLECULAR_MOMENTS after Wannier localization 
and was wondering if anyone has seen something similar.

I'm using UKS (also reproduced with DFT+U enabled) together with:
&LOCALIZE 
 METHOD JACOBI 
 USE_HISTORY F 
 &PRINT &MOLECULAR_MOMENTS LOW 
    ORDER 1 
 &END MOLECULAR_MOMENTS 
   &WANNIER_CENTERS 
     IONS+CENTERS 
   &END WANNIER_CENTERS 
 &END PRINT &END LOCALIZE

The SCF converges normally, the Jacobi localization converges, and the 
printed Wannier centers for both spin channels are finite and appear 
reasonable. However, the MOLECULAR_MOMENTS output consists entirely of NaN 
values for every atom/molecule.

As a sanity check, I wrote a small post-processing script that assigns the 
printed Wannier centers to the nearest atom (using minimum-image PBC) and 
reconstructs per-atom electronic dipoles which are all reasonable.

Has anyone encountered this before, or is there a known issue with 
MOLECULAR_MOMENTS for localized UKS wavefunctions? 

-- 
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/92857f51-b8d0-4551-8467-e45d87cd39can%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20260804/502e1649/attachment.htm>


More information about the CP2K-user mailing list