This thread is locked.Only browsing is available.
Top Page > Browsing
Minor patch for bandgnu13.c
Date: 2010/10/09 17:29
Name: H. Jeong

Usually, vertical lines are drawn on high-symmetric k-points to visualize clearly the band-structure.

When we draw low-energy bands near the Fermi level using our_work.BANDDAT1, ocasionally the vertical lines vanish.

This behavior can be cured by modifing a part of bandgnu13.c like

From the line 307 to 316 in the original code


for (ik=2;ik<=nkpath;ik++)
{
k = 0;
for (i=0;i<=10;i++)
{
if (((ymin1-ChemP)*Unit+(ymax1-ymin1)*Unit*(double)i/10) > 0 && k == 0)
{
fprintf(fp, "%lf %lf\n", kline[ik][1], 0.0);
k = 1;
}

fprintf(fp, "%lf %lf\n", kline[ik][1],
(ymin1-ChemP)*Unit+(ymax1-ymin1)*Unit*(double)i/10);
}
fprintf(fp, "\n\n");
}
メンテ
Page: [1]

Re: Minor patch for bandgnu13.c ( No.1 )
Date: 2010/11/29 21:46
Name: T.Ozaki

Hi,

I corrected bandgnu13.c according to your suggestion, and found that
the problem is cured.

Thank you for your cooperation.

Best regards,

TO
メンテ

Page: [1]