Compatibility of libXC, abinit, and atompaw

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

Compatibility of libXC, abinit, and atompaw

Post by jzwanzig » Fri Dec 17, 2010 8:15 pm

Hi,
I'm unclear as to the interoperation of libXC, abinit, and atompaw. I have built abinit 6.5.2 with the libXC plug-in, and have also built the new atompaw with libxc support. Using atompaw I successfully generated PAW sets for Si and O using PBE and PBEsol, but abinit won't run them. For example, with PBE, ixc gets set to -101130, but then the code stops with


drivexc : ERROR -
At least one of the functionals is a GGA or a MGGA,
but not all the necessary arrays are present.
ixc=-101130 nvxcdgr= 0 ngr2= 1
-P-0000
-P-0000 leave_new : decision taken to exit ...

Is PAW within abinit simply not yet compatible with the range of libXC inputs, even though atompaw can make them?

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
jzwanzig
Posts: 504
Joined: Mon Aug 17, 2009 9:25 am

Re: Compatibility of libXC, abinit, and atompaw

Post by jzwanzig » Mon Dec 20, 2010 3:35 pm

OK, I *think* I fixed the bug...

in size_dvxc.F90, line 90, the if statement included a test for ixc < 0, this was overriding the next test for ixc < 0; I removed the first of these tests and let the second test handle the ixc < 0 case. pbe and pbesol seem to work now, hope all else is still ok...more updates as warranted...
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

david.waroquiers
Posts: 138
Joined: Sat Aug 15, 2009 12:45 am

Re: Compatibility of libXC, abinit, and atompaw

Post by david.waroquiers » Wed Dec 22, 2010 10:49 am

Hi Joe,

I think that MetaGGA is not yet compatible with PAW because the calculation of the kinetic energy density is not yet implemented in this case (it is in norm conserving).

David

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

Re: Compatibility of libXC, abinit, and atompaw

Post by jzwanzig » Wed Dec 22, 2010 12:32 pm

Thanks, David--that is also the case in atompaw, where it explicit that only LDA and GGA XC models are allowed. The fix I made in size_dvxc (and uploaded to my 6.4.3-public branch) seems to be what was needed.
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: Compatibility of libXC, abinit, and atompaw

Post by torrent » Mon Jan 03, 2011 10:43 am

Hi Joe,

Thanks for the bug correction.
This must have been introduced recently; libXC and PAW worked some months ago...
We should provide an automatic test for libXC+PAW.

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

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

Re: Compatibility of libXC, abinit, and atompaw

Post by jzwanzig » Mon Jan 03, 2011 2:08 pm

Hi Marc,
I can provide a test no problem. By the way have you ever tried atompaw with the AM05 XC?

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: Compatibility of libXC, abinit, and atompaw

Post by torrent » Mon Jan 03, 2011 3:12 pm

Not yet.
Vacation time ended this morning...
Marc Torrent
CEA - Bruyères-le-Chatel
France

ider
Posts: 4
Joined: Thu Feb 17, 2011 10:34 am

Re: Compatibility of libXC, abinit, and atompaw

Post by ider » Thu Jun 09, 2011 11:33 pm

Hello, abinit team,

I want to use a PAW data generated with a XC functional from the Libxc library. But I get the message

pawxcm.F90:199:WARNING
Note that no xc is applied (ixc=0)


I found that the internal variable xclevel is set to 0 instead of 1 during the calculation. And according invars2.F90, xc level is 1 only for 1< ixc < 30 or 30 < ixc < 39. But for Libxc I need a negative ixc. Why is xclevel = 0 for Libxc functionals ?

And most of the over 4000 WARNINGs contain this message.

Thanks in advance!

Ider

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

Re: Compatibility of libXC, abinit, and atompaw

Post by torrent » Fri Jun 10, 2011 1:03 pm

This bug has been corrected.
It is specific to LDA (you can use GGA with libXC).

To be released before the end of the month (v6.8)...
Marc Torrent
CEA - Bruyères-le-Chatel
France

Locked