<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Dear Jian,</div>
<div><br>
</div>
<div>for QE 5.1 and following, you must not copy the file pw2wannier90.f90 from the W90 code to QE. Just use the file provided in QE, that is the most recent, up to date version. (In your case: put back the original file from QE, then 'make clean', and then
 'make pp').</div>
<div><br>
</div>
<div>Best,</div>
<div>Giovanni</div>
<div><br>
</div>
<div><br>
</div>
<div>P.S.: Please remember to always provide your affiliation.</div>
<br>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>-- </div>
<div>Giovanni Pizzi<br>
Post-doctoral Research Scientist<br>
EPFL STI IMX THEOS<br>
MXC 340 (Bātiment MXC)<br>
Station 12<br>
CH-1015 Lausanne (Switzerland)<br>
Phone: +41 21 69 31124<br>
</div>
<br>
</div>
</span><br class="Apple-interchange-newline">
</span><br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On 10 Dec 2014, at 15:46, liujian wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>hello,all<br>
<br>
I am trying to install PWscf and wannier90.<br>
<br>
First, in the "espresso-5.1.1" directory,<br>
./configure MPIF90=mpiifort<br>
make all<br>
<br>
installed successfully.<br>
Then , I copy pw2wannier90.f90 to ./PP/src<br>
make pp<br>
<br>
<br>
I got this:<br>
<br>
mpiifort -O2 -assume byterecl -g -traceback -nomodule -fpp -D__INTEL -D__FFTW -D__MPI -D__PARA -D__SCALAPACK    -I../../iotk/src -I../../Modules -I../../PW/src -I. -c pw2wannier90.f90<br>
pw2wannier90.f90(85): error #6580: Name in only-list does not exist.   [MPIME]<br>
 USE mp_global,  ONLY : mp_startup, mpime, kunit<br>
-------------------------------------^<br>
pw2wannier90.f90(162): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(ios,ionode_id)<br>
-------^<br>
pw2wannier90.f90(167): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(outdir,ionode_id)<br>
-------^<br>
pw2wannier90.f90(168): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(tmp_dir,ionode_id)<br>
-------^<br>
pw2wannier90.f90(169): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(prefix,ionode_id)<br>
-------^<br>
pw2wannier90.f90(170): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(seedname,ionode_id)<br>
-------^<br>
pw2wannier90.f90(171): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(spin_component,ionode_id)<br>
-------^<br>
pw2wannier90.f90(172): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(wan_mode,ionode_id)<br>
-------^<br>
pw2wannier90.f90(173): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(wvfn_formatted,ionode_id)<br>
-------^<br>
pw2wannier90.f90(174): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(write_unk,ionode_id)<br>
-------^<br>
pw2wannier90.f90(175): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(write_amn,ionode_id)<br>
-------^<br>
pw2wannier90.f90(176): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(write_mmn,ionode_id)<br>
-------^<br>
pw2wannier90.f90(178): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(write_uhu,ionode_id)<br>
-------^<br>
pw2wannier90.f90(179): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(write_uIu,ionode_id) !ivo<br>
-------^<br>
pw2wannier90.f90(181): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(write_spn,ionode_id)<br>
-------^<br>
pw2wannier90.f90(182): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(reduce_unk,ionode_id)<br>
-------^<br>
pw2wannier90.f90(183): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(write_unkg,ionode_id)<br>
-------^<br>
pw2wannier90.f90(468): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(nnb,ionode_id)<br>
-------^<br>
pw2wannier90.f90(469): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(kpb,ionode_id)<br>
-------^<br>
pw2wannier90.f90(470): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(g_kpb,ionode_id)<br>
-------^<br>
pw2wannier90.f90(471): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(num_bands,ionode_id)<br>
-------^<br>
pw2wannier90.f90(472): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(n_wannier,ionode_id)<br>
-------^<br>
pw2wannier90.f90(473): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(center_w,ionode_id)<br>
-------^<br>
pw2wannier90.f90(474): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(l_w,ionode_id)<br>
-------^<br>
pw2wannier90.f90(475): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(mr_w,ionode_id)<br>
-------^<br>
pw2wannier90.f90(476): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(r_w,ionode_id)<br>
-------^<br>
pw2wannier90.f90(477): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(zaxis,ionode_id)<br>
-------^<br>
pw2wannier90.f90(478): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(xaxis,ionode_id)<br>
-------^<br>
pw2wannier90.f90(479): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(alpha_w,ionode_id)<br>
-------^<br>
pw2wannier90.f90(480): error #6285: There is no matching specific subroutine for this generic subroutine call.   [MP_BCAST]<br>
 CALL mp_bcast(exclude_bands,ionode_id)<br>
-------^<br>
/tmp/ifortmxcbgR.i90(565): catastrophic error: Too many errors, exiting<br>
compilation aborted for pw2wannier90.f90 (code 1)<br>
make[2]: *** [pw2wannier90.o] Error 1<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Here is the make.sys in "espresso-5.1.1"<br>
<br>
# make.sys.  Generated from make.sys.in by configure.<br>
<br>
# compilation rules<br>
<br>
.SUFFIXES :<br>
.SUFFIXES : .o .c .f .f90<br>
<br>
# most fortran compilers can directly preprocess c-like directives: use<br>
#     $(MPIF90) $(F90FLAGS) -c $<<br>
# if explicit preprocessing by the C preprocessor is needed, use:<br>
#     $(CPP) $(CPPFLAGS) $< -o $*.F90<br>
#    $(MPIF90) $(F90FLAGS) -c $*.F90 -o $*.o<br>
# remember the tabulator in the first column !!!<br>
<br>
.f90.o:<br>
   $(MPIF90) $(F90FLAGS) -c $<<br>
<br>
# .f.o and .c.o: do not modify<br>
<br>
.f.o:<br>
   $(F77) $(FFLAGS) -c $<<br>
<br>
.c.o:<br>
   $(CC) $(CFLAGS)  -c $<<br>
<br>
<br>
<br>
# topdir for linking espresso libs with plugins<br>
TOPDIR = /home/liu/tools/PWscf/espresso-5.1.1<br>
<br>
# DFLAGS  = precompilation options (possible arguments to -D and -U)<br>
#           used by the C compiler and preprocessor<br>
# FDFLAGS = as DFLAGS, for the f90 compiler<br>
# See include/defs.h.README for a list of options and their meaning<br>
# With the exception of IBM xlf, FDFLAGS = $(DFLAGS)<br>
# For IBM xlf, FDFLAGS is the same as DFLAGS with separating commas<br>
<br>
# MANUAL_DFLAGS  = additional precompilation option(s), if desired<br>
#                  You may use this instead of tweaking DFLAGS and FDFLAGS<br>
#                  BEWARE: will not work for IBM xlf! Manually edit FDFLAGS<br>
MANUAL_DFLAGS  =<br>
DFLAGS         =  -D__INTEL -D__FFTW -D__MPI -D__PARA -D__SCALAPACK $(MANUAL_DFLAGS)<br>
FDFLAGS        = $(DFLAGS) $(MANUAL_DFLAGS)<br>
<br>
# IFLAGS = how to locate directories where files to be included are<br>
# In most cases, IFLAGS = -I../include<br>
<br>
IFLAGS         = -I../include<br>
<br>
# MOD_FLAGS = flag used by f90 compiler to locate modules<br>
# Each Makefile defines the list of needed modules in MODFLAGS<br>
<br>
MOD_FLAG      = -I<br>
<br>
# Compilers: fortran-90, fortran-77, C<br>
# If a parallel compilation is desired, MPIF90 should be a fortran-90<br>
# compiler that produces executables for parallel execution using MPI<br>
# (such as for instance mpif90, mpf90, mpxlf90,...);<br>
# otherwise, an ordinary fortran-90 compiler (f90, g95, xlf90, ifort,...)<br>
# If you have a parallel machine but no suitable candidate for MPIF90,<br>
# try to specify the directory containing "mpif.h" in IFLAGS<br>
# and to specify the location of MPI libraries in MPI_LIBS<br>
<br>
MPIF90         = mpiifort<br>
#F90           = ifort<br>
CC             = icc<br>
F77            = ifort<br>
<br>
# C preprocessor and preprocessing flags - for explicit preprocessing,<br>
# if needed (see the compilation rules above)<br>
# preprocessing flags must include DFLAGS and IFLAGS<br>
<br>
CPP            = cpp<br>
CPPFLAGS       = -P -C -traditional $(DFLAGS) $(IFLAGS)<br>
<br>
# compiler flags: C, F90, F77<br>
# C flags must include DFLAGS and IFLAGS<br>
# F90 flags must include MODFLAGS, IFLAGS, and FDFLAGS with appropriate syntax<br>
<br>
CFLAGS         = -O3 $(DFLAGS) $(IFLAGS)<br>
F90FLAGS       = $(FFLAGS) -nomodule -fpp $(FDFLAGS) $(IFLAGS) $(MODFLAGS)<br>
FFLAGS         = -O2 -assume byterecl -g -traceback<br>
<br>
# compiler flags without optimization for fortran-77<br>
# the latter is NEEDED to properly compile dlamch.f, used by lapack<br>
<br>
FFLAGS_NOOPT   = -O0 -assume byterecl -g -traceback<br>
<br>
# compiler flag needed by some compilers when the main is not fortran<br>
# Currently used for Yambo<br>
<br>
FFLAGS_NOMAIN   = -nofor_main<br>
<br>
# Linker, linker-specific flags (if any)<br>
# Typically LD coincides with F90 or MPIF90, LD_LIBS is empty<br>
<br>
LD             = mpiifort<br>
LDFLAGS        = -static-intel<br>
LD_LIBS        =<br>
<br>
# External Libraries (if any) : blas, lapack, fft, MPI<br>
<br>
# If you have nothing better, use the local copy :<br>
# BLAS_LIBS = /your/path/to/espresso/BLAS/blas.a<br>
# BLAS_LIBS_SWITCH = internal<br>
<br>
BLAS_LIBS      =   -lmkl_intel_lp64  -lmkl_sequential -lmkl_core<br>
BLAS_LIBS_SWITCH = external<br>
<br>
# If you have nothing better, use the local copy :<br>
# LAPACK_LIBS = /your/path/to/espresso/lapack-3.2/lapack.a<br>
# LAPACK_LIBS_SWITCH = internal<br>
# For IBM machines with essl (-D__ESSL): load essl BEFORE lapack !<br>
# remember that LAPACK_LIBS precedes BLAS_LIBS in loading order<br>
<br>
LAPACK_LIBS    =<br>
LAPACK_LIBS_SWITCH = external<br>
<br>
ELPA_LIBS_SWITCH = disabled<br>
SCALAPACK_LIBS = -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64<br>
<br>
# nothing needed here if the the internal copy of FFTW is compiled<br>
# (needs -D__FFTW in DFLAGS)<br>
<br>
FFT_LIBS       =<br>
<br>
# For parallel execution, the correct path to MPI libraries must<br>
# be specified in MPI_LIBS (except for IBM if you use mpxlf)<br>
<br>
MPI_LIBS       =<br>
<br>
# IBM-specific: MASS libraries, if available and if -D__MASS is defined in FDFLAGS<br>
<br>
MASS_LIBS      =<br>
<br>
# ar command and flags - for most architectures: AR = ar, ARFLAGS = ruv<br>
<br>
AR             = ar<br>
ARFLAGS        = ruv<br>
<br>
# ranlib command. If ranlib is not needed (it isn't in most cases) use<br>
# RANLIB = echo<br>
<br>
RANLIB         = ranlib<br>
<br>
# all internal and external libraries - do not modify<br>
<br>
FLIB_TARGETS   = all<br>
<br>
LIBOBJS        = ../flib/ptools.a ../flib/flib.a ../clib/clib.a ../iotk/src/libiotk.a<br>
LIBS           = $(SCALAPACK_LIBS) $(LAPACK_LIBS) $(FFT_LIBS) $(BLAS_LIBS) $(MPI_LIBS) $(MASS_LIBS) $(LD_LIBS)<br>
<br>
# wget or curl - useful to download from network<br>
WGET = wget -O<br>
<br>
# Install directory<br>
PREFIX = $(INSTALLDIR)<br>
<br>
It would be very kind of you to help me fix it.<br>
<br>
A beginner : Jian<br>
_______________________________________________<br>
Wannier mailing list<br>
<a href="mailto:Wannier@quantum-espresso.org">Wannier@quantum-espresso.org</a><br>
http://mailman.qe-forge.org/cgi-bin/mailman/listinfo/wannier<br>
</div>
</blockquote>
</div>
<br>
</body>
</html>