small correction/simplification of the linking to LAMMPS library examples

This commit is contained in:
Axel Kohlmeyer 2020-02-25 17:36:37 +01:00
parent 8d427b54ec
commit 1a2a9f2209
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ link the coupled executable are then:
.. code-block:: bash
mpicc -c -O $(pkgconf liblammps --cflags) caller.c
mpicxx -o caller caller.o -$(pkgconf --libs)
mpicxx -o caller caller.o -$(pkgconf liblammps --libs)
*Traditional make*\ :
@ -100,7 +100,7 @@ change to:
.. code-block:: bash
gcc -c -O -I${HOME}/lammps/src/STUBS -I${HOME}/lammps/src -caller.c
g++ -o caller caller.o -L${HOME}/lammps/src/../lib/poems \
g++ -o caller caller.o -L${HOME}/lammps/lib/poems \
-L${HOME}/lammps/src/STUBS -L${HOME}/lammps/src -llammps -lpoems -lmpi_stubs
Note, that you need to link with "g++" instead of "gcc", since LAMMPS