NoDiagSC not works for XX grid is not uniform. Gamma point only

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

Post Reply
lyzhao
Posts: 62
Joined: Tue May 31, 2016 8:02 am

NoDiagSC not works for XX grid is not uniform. Gamma point only

Post by lyzhao » Sun Dec 14, 2025 9:03 am

Dear all,
I want to run a GW calculation for the k-points positively defined between 0 and 1 k-point grid. (see pw_nscf.in)
k-points are generated by the following python script:

Code: Select all

import numpy as np
wgt = 1.0/(6*6*1)
for i in np.arange(0,1,1.0/6):
  for j in np.arange(0,1,1.0/6):
    for k in np.arange(0,1,1.0/1):
      print (i, j, k, wgt)
yambo tells me "X grid is not uniform. Gamma point only" (see r_setup_1)
refer to viewtopic.php?p=8718
I delete SAVE and rerun p2y, yambo -i -V all, uncomment NoDiagSC variable (see yambo.in).
run yambo again, it still tells me "X grid is not uniform : no " (see r_setup_2)
The forced command yambo -x -p p -g n -F gw.in only generate the gw.in file with only the comments of yambo package.
files.zip
Any help will be appreciated

Best regards.
You do not have the required permissions to view the files attached to this post.
Youzhao Lan
College of Chemistry and Materials Science,
Zhejiang Normal University,
Jinhua, Zhejiang, China.
HomePage: http://blog.sciencenet.cn/u/lyzhao

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

Re: NoDiagSC not works for XX grid is not uniform. Gamma point only

Post by claudio » Sun Dec 14, 2025 11:59 am

Dear lyzhao

this happens because your system has some symmetries while the k-point grid you are using
is generated without symmetries.
So there are two way to solve this problem

1) use a standard grid generated by Quantum Espresso

2) add the flags
nosym=.true.
noinve=.true.
and then use your own generated grid

let us know if works
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

lyzhao
Posts: 62
Joined: Tue May 31, 2016 8:02 am

Re: NoDiagSC not works for XX grid is not uniform. Gamma point only

Post by lyzhao » Sun Dec 14, 2025 10:54 pm

Dear Dr. Claudio,
Thanks for your quick help.
I have to use the self-defined grid, so I try the second way.
It works fine.

Best regards.
Youzhao Lan
College of Chemistry and Materials Science,
Zhejiang Normal University,
Jinhua, Zhejiang, China.
HomePage: http://blog.sciencenet.cn/u/lyzhao

Post Reply