nufeb / NUFEB

Official release of the NUFEB software
http://research.ncl.ac.uk/nufeb/
GNU General Public License v3.0
18 stars 16 forks source link

ERROR: Invalid command-line argument (../lammps.cpp:363) #16

Closed iquasere closed 3 years ago

iquasere commented 3 years ago

Greetings!

Installing NUFEB with

git clone https://github.com/nufeb/NUFEB --recursive
cd NUFEB
./install.sh

and running

cd examples/biofilm-het
mpirun -np 4 lmp_mpi -in Inputscript.lammps

as detailed in the README of this repo returns this error

--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job.  This error was first reported for process
rank 0; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
      line parameter option (remember that mpirun interprets the first
      unrecognized command line token as the executable).

Node:       bridgeserver
Executable: lmp_mpi
--------------------------------------------------------------------------
4 total processes failed to start

If, instead, I specify the script path explicitly with mpirun -np 4 ../../lammps/src/lmp_mpi Inputscript.lammps, I get

ERROR: Invalid command-line argument (../lammps.cpp:363)
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[31209,1],1]
  Exit code:    1
--------------------------------------------------------------------------

How can I run an example of NUFEB?

DenisT-LKWD commented 3 years ago

Try mpirun -np 4 ../../src/lmp_mpi -in Inputscript.lammps

iquasere commented 3 years ago

The repo hasn't got that ../../src/lmp_mpi file. It fails with

--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not access
or execute an executable:

Executable: ../../src/lmp_mpi
Node: bridgeserver

while attempting to start process rank 0.
--------------------------------------------------------------------------
valleymouth commented 3 years ago

Did the compilation with install.sh succeeded with no errors? It should have created a lmp_* executable in src.

iquasere commented 3 years ago

Turns out now it's working. No idea why... thank you anyway! And hope this tool can help me, seems very interesting!