bug in m-resolved spin-polarized DOS

Documentation, Web site and code modifications

Moderators: baguetl, routerov

Locked
sipr
Posts: 4
Joined: Tue Mar 08, 2011 1:07 pm
Location: Prague, Czech Republic
Contact:

bug in m-resolved spin-polarized DOS

Post by sipr » Tue Apr 10, 2012 10:10 am

There is a bug in probably all versions of abinit as concerns the
M-resolved spin-polarized DOS. I found in in versions 6.6.1,
6.10.2 and 6.12.1.

Namely, the M-resolved DOS is printed in such a way that that DOS from
spin-down states in the *DOS_AT???? files contains the sum of spin-up
and spin-down DOS'es and not the DOS for spin-down states only.

On the other hand, DOS for spin-up states is printed correctly. So to
get correct DOS for spin-down states, one has to subtract the spin-up
DOS from the spin-down DOS.

I summarized an example demonstrating this bug (a free-standing Co monolayer).
It can be downloaded as a tarball from here:
http://www.fzu.cz/~sipr/report-on-bug-in-dos.tar
There is also a readme.txt file in that tarball there spefying which file is which.
I tried to upload the tarball as an attachment to this report but the forum system
seems not to like me uploading files.

Ondrej

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: bug in m-resolved spin-polarized DOS

Post by mverstra » Fri Apr 27, 2012 12:06 am

Hello Ondrej

thanks for the bug alert. Your example file is quite large - do you have a smaller one, perhaps without any binary results?

The dos addition happens for the _m files only? The normal dos is correct for spin polarized systems afaik

Are you running in parallel?

M.
Matthieu Verstraete
University of Liege, Belgium

Locked