GW correction is NaN for some k-point grids

Concerns issues with computing quasiparticle corrections to the DFT eigenvalues - i.e., the self-energy within the GW approximation (-g n), or considering the Hartree-Fock exchange only (-x)

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano

Christian Koenig
Posts: 34
Joined: Mon Nov 18, 2019 10:48 am

Re: GW correction is NaN for some k-point grids

Post by Christian Koenig » Fri Apr 03, 2020 3:15 pm

Dear Daniele,

Sure, I'll try version 4.5 as well. To which values did you change the input parameters?

wf_collect=.true. should be default and no other options are implemented. At least I didn't get any error messages from p2y.
Regarding the pseudopotential I don't think I have any other choice (it's supposed to be norm conserving and fully relativistic).


Best,

Christian
Christian Koenig
Tyndall National Institute
Cork, Ireland

User avatar
Daniele Varsano
Posts: 4198
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: GW correction is NaN for some k-point grids

Post by Daniele Varsano » Fri Apr 03, 2020 3:34 pm

Dear Christian,

my parameters were reduced to the minimum to run on my laptop.
I reduced the kinetic energy cutoff to a ridiculous value in the scf/nscf, next I considered 93 bands in the X and Sigma, but considering very few blocks in dielectric matrix. All these changes should not be relevant to the problem you have. In order to have a fast calculation of the dipoles I neglected the non-local commutator (this is done by change the name to the ns.kb_pp_pwscf file.

Please note that you can have norm-conserving and fully relativistic pseudo without non-linear core correction, but most probably you need to generate them, e.g by using the Don Hamman code that you can find here (http://www.mat-simresearch.com). In any case this is not related at all with the NaN you observe.

Anyway, let's what happen with the 4.5 release as many bugs were fixed.

Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

Christian Koenig
Posts: 34
Joined: Mon Nov 18, 2019 10:48 am

Re: GW correction is NaN for some k-point grids

Post by Christian Koenig » Fri Apr 03, 2020 11:47 pm

Dear Daniele,

The calculation with the latest version (4.5.1) just finished with the same results, i.e. NaN for 24x24x1 k-points.


Best,

Christian
Christian Koenig
Tyndall National Institute
Cork, Ireland

User avatar
Daniele Varsano
Posts: 4198
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: GW correction is NaN for some k-point grids

Post by Daniele Varsano » Sat Apr 04, 2020 6:08 am

Dear Christian,
ok, we will need to reproduce the error in order to spot the problem.
Can you try to prepare a very fast test that shows the problem, even if unphysical? For instances reducing the kinetic energy cutoff,
and even better if the problem appears also for a smaller k point sampling. The last test you post actually it is not ideal for debugging purpose. The ideal one would be something running in a few minutes with few CPUs. At the moment I do not even have 40cpu's available.

Many thanks,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

Christian Koenig
Posts: 34
Joined: Mon Nov 18, 2019 10:48 am

Re: GW correction is NaN for some k-point grids

Post by Christian Koenig » Thu Apr 30, 2020 11:11 am

Dear Daniele,

Sorry for the delay in getting back to you. I tried again to prepare an example which runs fast but all of these would not reproduce the problem.
The DFT cutoff (ecutwfc) seems to be a key factor here and I fixed the problem by changing it from 50 Ry to 40 or 60 Ry. This worked fine for my calculations and also for the example, so I think this information might be useful.


Best,

Christian
Christian Koenig
Tyndall National Institute
Cork, Ireland

Post Reply