Problem with running lammps on windows


I compiled Lammps using visual studio 2010 and openMPI as well as fftw3. The compilation went ok.

I tested a simple mpi example and it worked without any problem. So I guess that I installed OpenMPI correctly.

If I runs lammps.exe < input_file, it works. However, if I runs mpirun -np 2 lammps.exe < input_file, it gives me an error ...\opal\event\event.c: ompi_evesel->dispatch() failed

Does anyone has any idea what the problem is and how to solve it?