Hi,Nordland!
I used your function to calculate DOS of bulk GaN and bulk Si.
I set the energy from -5 eV to 5eV, but I found that atk stopped running at 1.85eV for Si and 1.75 eV for GaN.
And the picture of Si_dos from -5eV to 1.85eV is the same with yours.
I don't understand your code, ???becuse I don't learn this language script before. What should I learn if
I want to program my own functions like you ?
Thank you!