I am having trouble with an EPW run using the version that came with QE-6.6. I’m puzzled because I was able to complete this calculation with QE-6.4.1 earlier. Also, I ran the same calculation in a related system (the same system under a slightly different pressure) without a problem. The error message says:
It seems that you encounter the out-of-bound error and it can be due to the problem in EPW or QE.
Unfortunately, it is not easy for me to solve your issue since it requires some debugging by printing relevant quantities to see exactly what happens.
Well, is it necessary to manually specify the number of grids like “nr1 = 20, nr2 = 20, nr3 = 20”?
If it is just due to the fractional translation in your system, I think that it is not needed in the recent version of QE.
Thank you for your response! I specified the nr variables in the scf calculation to fix an error I was receiving with EPW in QE-6.4.1, so you may be correct that it may not be needed in QE-6.6. I’d like to avoid changing the scf input at this stage, however, so I’m first going to try running this calculation with QE-6.7. If that doesn’t work, I’ll go back and remove the nr1, nr2, nr3 specifications and retry.
I tried both of your suggestions (retrying with QE 6.7 and removing the nr1, nr2, nr3 variables) but the calculation fails at the exact same point. Because these are crucial calculations for me, I’m happy to work on debugging by modifying the code and printing extra things if you could instruct me on what to modify.
FYI, I have two other related systems (just different pressure); in one of them the calculation runs without a problem, and in two of them the calculation fails at different points. I put all of these calculation files in the original Dropbox folder [https://www.dropbox.com/sh/gdpmevzdd9ctsse/AAD1zxoZlBw2cEXVZG6KwDUpa?dl=0].
The first thing you can try is to switch to gcc programming environment, to configure QE with the debug mode enabled by issuing “configure --enable-debug”, and to compile the code.
In this way, (I am not 100% sure) you might get the more information on your error (I want to confirm that you encountered the out-of-bound error).
I believe I managed to run the code with debugging turned on, and here is the error message I received:
forrtl: severe (408): fort: (3): Subscript #2 of the array G has value 0 which is less than the lower bound of 1
Image PC Routine Line Source
epw.x 00000000015F8F5F Unknown Unknown Unknown
epw.x 0000000000BA4D21 init_us_2_ 86 init_us_2.f90
epw.x 000000000079226C elphel2_shuffle_ 430 elphel2_shuffle.f90
epw.x 0000000000741BC0 elphon_shuffle_ 149 elphon_shuffle.f90
epw.x 000000000044FA8E elphon_shuffle_wr 717 elphon_shuffle_wrap.f90
epw.x 0000000000408E33 MAIN__ 145 epw.f90
epw.x 00000000004081D2 Unknown Unknown Unknown
libc-2.17.so 00002BA73B248555 __libc_start_main Unknown Unknown
epw.x 00000000004080E9 Unknown Unknown Unknown
So it looks like you were right, that it was the out-of-bound error. Please let me know what the next steps might be in fixing this error. As always, I greatly appreciate your help.
!
! now we generate vkb on the igkq() set because dvpsi is needed on that set
! we need S(k)+q_0 in the KB projector: total momentum transfer must be q_0
!
xkqtmp = sxk + xq0
CALL init_us_2(npwq, igkq, xkqtmp, vkb)
!
! --------------------------------------------------
! Calculation of the matrix element
! --------------------------------------------------
!
In your cases, there are some missing PWs needed to fold wave functions; usually it doesn’t happen, but it happens in your system due to the crystal structure.
I think that though it requires additional scf, phonon, nscf, and epw runs, the best solution is just to use the higher PW cutoff, for instance, 100 or 90 Ryd.