Skip to content

Plotband.x can not handle input string length > 256 for projected band structure plot

Junfeng Qiao requested to merge qiaojunfeng/q-e:plotband.x into develop

Hello, everyone. Lately, I've been using plotband.x to plot projected band structures. I find plotband.x cannot produce the correct projected band for a system with states more than 99, or length of the input string for selecting projected states(i.e. the second input line) > 256. I've fixed these problems and add a functionality for plotband.x, which could generate a gnuplot script to produce postscript and/or pdf files if *.proj is presented.

The attachment contains input data bands.x.dat, bands.x.dat.rap, bands.x.dat.proj, I've also uploaded an input file Ta_0 for plotband.x, note that my patched version accepts a new input line which is used as the file name for the generated gnuplot script, i.e. the last line Ta_0.gnu of the Ta_0.

I've split the attachment since it exceeds 10MB, to recover it please run cat input.7z.parta* > a.7z and then 7z e a.7z.

I hope this may help someone.

input.7z.partaa input.7z.partab

Merge request reports