When I attempted to compile the example provided in examples/COUPLE/simple/simple.cpp as follows:
mpicxx -I/usr/local/lammps-31Mar17/src -L/usr/local/lammps-31Mar17/src simple.cpp -llammps_mpi -ldl -o simpleCC
I encountered the following error:
simple.cpp:156:49: error: too few arguments to function ‘void lammps_create_atoms(void*, int, int*, int*, double*, double*, int*, int)’
In file included from simple.cpp:30:0:
/usr/local/lammps-31Mar17/src/library.h:62:6: note: declared here
void lammps_create_atoms(void *, int, int *, int *,
I would like to note that:
- I did not modify any of the source files or simple.cpp in any way, and I re-downloaded this release and attempted the compilation again with no luck.
- I used the very same command to successfully compile simple.cpp in a previous release of LAMMPS (30Jul16).
I then decided to take a look at library.h, where I discovered that the lammps_create_atoms command does in fact require many more arguments (eight) than are provided to it in simple.cpp (six):
void lammps_create_atoms(void *, int, int *, int *, double *, double *, int *, int);
Has anyone had a similar issue that they’ve been able to resolve with simple.cpp?
Thank you for your time,