lingtikong / fix-phonon

Automatically exported from code.google.com/p/fix-phonon
6 stars 4 forks source link

compilation error #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. LAMMPS: R6513
2. MPI:        ../STUBS/libmpi.a and FFTW enabled (as required by kspace)
3. OS: MAC OS  (make mac)

I got this compilation error:

c++ -O -DLAMMPS_GZIP  -I../STUBS -DFFT_FFTW   -c fix_phonon.cpp
fix_phonon.cpp: In member function ‘virtual void 
LAMMPS_NS::FixPhonon::end_of_step()’:
fix_phonon.cpp:374:94: error: ‘MPI_Scatterv’ was not declared in this scope
make[1]: *** [fix_phonon.o] Error 1
make: *** [mac] Error 2

It seems something related with the mpi library.

thank you.

giuseppe

Original issue reported on code.google.com by giuseppe...@gmail.com on 27 Jul 2011 at 12:24

GoogleCodeExporter commented 9 years ago
Fix-phonon requires one to use a full implementaion of mpi, either mpich or 
openmpi, but not those in src/STUBS of lammps, as the latter just provides a 
limited implementation as a serial code; some mpi function fix-phonon needed, 
like mpi_scatterv, is not included.

Original comment by kon...@gmail.com on 1 Aug 2011 at 1:07