GW correction in an arbitraty point of the BZ

You can find here problems arising when using old releases of Yambo (< 5.0). Issues as parallelization strategy, performance issues and other technical aspects.

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

Locked
User avatar
claudio
Posts: 528
Joined: Tue Mar 31, 2009 11:33 pm
Location: Marseille
Contact:

GW correction in an arbitraty point of the BZ

Post by claudio » Fri Oct 20, 2017 2:09 pm

Dear Yambo developpers

I'm trying to calculate GW correction in a k-point that is not included in my original grid,
using an old procedure that was working in old yambo version, but in the new one I found two bugs
and this method does not work anymore.

I use ypp -k k to generate a shifted grid that contains my new point (ypp.in)
The first bug is that the new ypp grid seems not to contain the point I gave in input
probably it is an error of k-point units (see l_stderr file)

Anyway I calculate the bands in the new grid (file hbn.nscf_shifted.in) , I make yambo read the grid (yambo.in_setup_shifted)
but then when I try to perform the GW calculation it crashes (yambo.in_gw_shifted) :

Code: Select all

<---> EXS |                                        | [000%] --(E) --(X)[attacc-Latitude-E6430:30939] *** Process received signal ***
[attacc-Latitude-E6430:30939] Signal: Segmentation fault (11)
[attacc-Latitude-E6430:30939] Signal code: Address not mapped (1)
[attacc-Latitude-E6430:30939] Failing at address: 0x406ea9740
I put in attachment all input files, for DFT, yambo setup and GW.

The test in attachment takes less than 5 minutes

Best
Claudio
You do not have the required permissions to view the files attached to this post.
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com

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

Re: GW correction in an arbitraty point of the BZ

Post by Daniele Varsano » Fri Oct 20, 2017 4:39 pm

Hi Claudio,
thanks a lot for reporting.

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/

User avatar
Davide Sangalli
Posts: 641
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: GW correction in an arbitraty point of the BZ

Post by Davide Sangalli » Sat Oct 21, 2017 12:18 am

Ciao,
I confirm. Last working version is yambo-3.4

Changing line 232 of src/bz/bz_samp_index.F
(or nearby, depending on the version of the code)

Code: Select all

 !
 ! qindx_S(ik,iqbz,1)=okbz
 ! qindx_S(ik,iqbz,2)=iGo
 !
 ! qindx_C(ikbz,iqbz,1)=okbz
 ! qindx_C(ikbz,iqbz,2)=iGo
 !
- do ikbz=1,Xk%nbz
+ do ikbz=1,k%nbz
it works also in yambo-4.x.
Can you try that ?

Best,
D.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

User avatar
claudio
Posts: 528
Joined: Tue Mar 31, 2009 11:33 pm
Location: Marseille
Contact:

Re: GW correction in an arbitraty point of the BZ

Post by claudio » Sat Oct 21, 2017 10:26 am

Ciao Davide

your correction works fine!

But there is still the bug in ypp.

I found the bug in yambo-4.2.0 GPL, the input k-points are transformed two time in iku units by mistake
and therefore ypp does not produce the correct grid.

Input k-points are transformed in iku in lines 174,175 of ypp/k-points/k_grid.F
and then again in lines 196,197 of the same file. (I referee to the line number of GPL yambo)

I removed the second loop from line 192 to line 199 and now ypp produces the right grid with the point I gave in input.

Best
Claudio
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com

User avatar
Davide Sangalli
Posts: 641
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: GW correction in an arbitraty point of the BZ

Post by Davide Sangalli » Sat Oct 21, 2017 7:10 pm

Thanks.
I'll also include the fix to ypp.

Best,
D.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

User avatar
claudio
Posts: 528
Joined: Tue Mar 31, 2009 11:33 pm
Location: Marseille
Contact:

Re: GW correction in an arbitraty point of the BZ

Post by claudio » Mon Oct 23, 2017 9:28 am

Hi again

here a small explanation how to make this kind of calculations:

GW correction on an arbitrary point of the Brillouin zone with Yambo
http://www.attaccalite.com/gw-correctio ... ouin-zone/

best
Claudio
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com

Locked