Fixed ADSIC for the spin polarized case.
Description
Fixes problem with spin-polarized version of ADSIC functional which could sometimes result in incorrect results. See !409 (closed) and !375 (closed)
News snippet
Fixed problem with spin-polarized version of ADSIC functional which could sometimes result in incorrect results.
Checklist
-
I have checked that my code follows the Octopus coding standards
Edited by Micael Oliveira