<div dir="ltr"><div>Who wrote punch_band_2d?<br><br></div>P.<br><div><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Gul Rahman</b> <span dir="ltr"><<a href="mailto:gulrahman@qau.edu.pk">gulrahman@qau.edu.pk</a>></span><br>Date: Sat, Jun 9, 2018 at 10:33 PM<br>Subject: [QE-users] Bug in punch_band_2d in bands.f90<br>To: <a href="mailto:users@lists.quantum-espresso.org">users@lists.quantum-espresso.org</a><br><br><br><div dir="ltr"><div><div><div><div><div><div><div><div><div>Dear All,<br></div><div>I was jut doing some practice (graphene) to extract E(kx,ky) data from my band structure calculations. And Finally want to plot E(kx,ky). But I faced the following problem when I run the bands.x code<br></div><div><br> Error in routine punch_band_2d (1):<br> Problems with k points<br><br clear="all"></div>Then I look into the subroutine (punch_band_2d)in bands.f90 in /PP folder.<br></div>and line 488 is<br><br> IF (n1*n2 /= nks_eff) CALL errore('punch_band_2d',&<br> <wbr> 'Problems with k points',1)<br></div>In my case nks_eff is 230; and the n1*n2 was not giving me 230, and the calculations stop.<br><br></div>n2 is defined as n2=j-1 in line 482 <br><br></div>When I changed n2=j then I was able to get n1xn2=230 and run the bands.x code and got different<br></div>bands.dat.1, bands.dat.2........... files.<br><br></div>Is it a big, or I am making a mistake in correcting the issue.<br></div>Can some one comment that how to solve the "Error in routine punch_band_2d(1):Problems with k points" problem, if I am wrong.<br><br></div><div>How to deal with these bands.dat.1, bands.dat.2........ files<br></div><div>Thanks,<br></div><div>Gul<span class="gmail-HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-HOEnZb"><font color="#888888"><br><div> <div><div><div><div><div><div><div><div><div><div><div><div> <br><br><br><br><br>-- <br><div class="gmail-m_-6607039719652917973gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><p style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:12pt"><font color="#0000bf">Dr. Gul Rahman<br>Tenured Associate Professor,<br>Department of Physics,<br>Quaid-i-Azam University,<br>Islamabad, Pakistan</font></span></p><span style="font-size:12pt"><font color="#0000bf"><a href="http://www.qau.edu.pk/profile.php?id=818020" target="_blank">http://www.qau.edu.pk/profile.<wbr>php?id=818020</a></font></span></div></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></font></span></div>
<br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.quantum-espresso.org">users@lists.quantum-espresso.<wbr>org</a><br>
<a href="https://lists.quantum-espresso.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.quantum-<wbr>espresso.org/mailman/listinfo/<wbr>users</a><br></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>Phone +39-0432-558216, fax +39-0432-558222<br><br></div></div></div></div></div>
</div></div></div>