HP: end-of-file during read (wfcup1.dat)

Dear Developers,

In QE 6.8 release version (https://github.com/QEF/q-e/archive/refs/tags/qe-6.8.tar.gz), HP results in a "end-of-file during read" error while trying to read wfcup1.dat from the prefix.save directory in the wfc_dir. The last thing in the out file is "Reading collected, re-writing distributed wavefunctions".

The file is there, other wfc files are there as well, all of them are about the same size. DOS works, albeit it does not print the "Reading collected..." line.

The files are created by a successful PW run, the disk is not out of space.

Is this a bug, or am I doing something wrong?

Thank you.

Andrew

**UPD: ** It is likely that I am doing something wrong, although I do not know what.

I've tried running HP from QE 6.7 on top of the files saved by PW 6.8 (both compiled with Intel 16 and OpenMPI) - and got the same exact eof error.

I then tried HP 6.7 compiled with Intel 19 and its native MPI implementation (on top of the same PW 6.8 files) - and apparently it works. At least, the program completed the wavefunction read-write part and is running.

Hense, it's not an issue in the code, but rather some weird compiler dependence. Please help?

Edited by Andrii Shyichuk