Unverified Commit 1a2a9f22 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

small correction/simplification of the linking to LAMMPS library examples

parent 8d427b54
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -52,7 +52,7 @@ link the coupled executable are then:
.. code-block:: bash
.. code-block:: bash


   mpicc -c -O $(pkgconf liblammps --cflags) caller.c
   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*\ :
*Traditional make*\ :
@@ -100,7 +100,7 @@ change to:
.. code-block:: bash
.. code-block:: bash


   gcc -c -O -I${HOME}/lammps/src/STUBS -I${HOME}/lammps/src -caller.c
   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 
     -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
Note, that you need to link with "g++" instead of "gcc", since LAMMPS