Fix a problem of missing square for the summation of the norm for the dos.
Description
The problem only appears for projected DOS with spin-polarized orbitals. Only appears for projected DOS with spin-polarized atomic orbitals.
News snippet
The problem only appears for projected DOS with spin-polarized orbitals. Only appears for projected DOS with spin-polarized atomic orbitals.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.