Hi Jonathan, You were right. The error occured because the PWSCF was compiled with F90 while I compiled wannier with gfortran. Now it is working fine. Many thanks, Vahid