Dear Fabian,
Thank you very much for the commented file. It works, which it is already a huge improvement, though it may take about 75 electronic iterations for each ionic step, which may render a MD calculation too expensive. I wonder if there is anything that could be done to speed it up.
By the way, why do you need to rotate the cell for the Wavelet Poisson solver ? Based on this rotation, I would have thought of changing the Monkhorst Pack set of k-points from 7x7x1 to 7x1x7, which you didn't and, when I tried it, it did not work properly:
*** WARNING in pw/ps_wavelet_methods.F:236 :: Density non-zero on the ***
*** edges of the unit cell: wrong results in WAVELET solver.
Thanks again.
Regards,
Manuel