Lai MingRui
unread,Jun 6, 2025, 2:37:46 AMJun 6Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BerkeleyGW Help
Dear developers,
I've been trying to use the plotxct module in BerkeleyGW/3.0.1 and 4.0 and I encountered a recurring error. The error message is from line 170 in the PlotXct/input.f90 file when the program cannot find the corresponding kpoint in the WFN_fi file.
I noticed that this occurs when the program is trying to determine if two kpoints are the same, in line 159 of input.f90 where the variable kt is calculated. I encountered a case where although the two kpoints being checked are suppose to be the same, they differ by a small amount due to numerical errors, which is alright since there is a tolerance of 1e-4. The problem here is that for the kpoints in my WFN_fi and eigenvectors files the error is negative and it causes kt to be 0.9999... due to the use of the MOD function. The next line will then deem this two kpoints as different even though they are the same.
I'm wondering if this error has been encountered before. It seems like the checkbz routine shifts some kpoints by a G vector, because the kpoints in the WFN and eigenvectors file all have values in the range from 0 to 1.
Best Regards,
Lai MingRui