[lammps-users] lammps for os x with MPI

I am trying to use LAM MPI on my macbook to compile lammps. I can
compiled without MPI without any problems, so now trying to get it
working with MPI. Here is my makefile :

I am trying to use LAM MPI on my macbook to compile lammps. I can
compiled without MPI without any problems, so now trying to get it
working with MPI. Here is my makefile :
-----------------------------------------------------------------------------------------------
# macmpi = Apple MacBook laptop, c++, LAM MPI, NO FFTW

SHELL = /bin/sh

# System-specific settings

CC = c++

for LAM/MPI this would be 'mpiCC' and not c++
otherwise it it likely that the required mpi.h
header file will not be found.

CCFLAGS = -O -I/usr/local/include -DFFT_NONE
DEPFLAGS = -M
LINK = c++
LINKFLAGS = -O -L/usr/local/lib
USRLIB = -lmpi

same here. to link you have to use mpiCC as linker
and -lmpi is _not_ needed (run 'mpiCC -showme' if
you don't believe me).

cheers,
   axel.

Thanks. But mpiCC is also spitting out similar error.