nspinor 2 together with libxc and PAW

External optional components of Abinit (BigDFT, Wannier90...) and codes using/providing data from/to Abinit (AtomPAW, ONCVPSP, EXC, DP, Yambo...)

Moderators: ebousquet, bxu

Locked
User avatar
jzwanzig
Posts: 504
Joined: Mon Aug 17, 2009 9:25 am

nspinor 2 together with libxc and PAW

Post by jzwanzig » Thu Jun 28, 2012 5:51 pm

Hi,

I have made PAW datasets using libxc, and also with atompaw's built-in GGA. In the libxc case, abinit calculations run fine with nspinor 1 and nsppol 1 or 2, while they crash in
the nspinor 2 case (with nsppol 1 of course). With built-in GGA, all cases work. When the libxc case crashes with nspinor 2, the abinit error output says

"abinit: functionals.c:81: xc_func_init: Assertion `nspin==1 || nspin==2' failed."

Can someone shed some light on this issue?

thanks
Joe
Josef W. Zwanziger
Professor, Department of Chemistry
Canada Research Chair in NMR Studies of Materials
Dalhousie University
Halifax, NS B3H 4J3 Canada
jzwanzig@gmail.com

User avatar
torrent
Posts: 127
Joined: Fri Aug 14, 2009 7:40 pm

Re: nspinor 2 together with libxc and PAW

Post by torrent » Mon Aug 20, 2012 5:51 pm

Hi Joe,

I've just looked at the libxc+nspinor=2 problem.
...it's modified in my new v7.0 branch.

To fix it, just edit m_libxc_functionals/libxc_functionals_init and replace all nspden by nspden_eff=min(nspden,2)

Marc
Marc Torrent
CEA - Bruyères-le-Chatel
France

Locked