diff --git a/doc/src/Library_execute.rst b/doc/src/Library_execute.rst index deed99f456..ac2de17ba2 100644 --- a/doc/src/Library_execute.rst +++ b/doc/src/Library_execute.rst @@ -32,6 +32,7 @@ Below is a short example using some of these functions. .. code-block:: C + #define LAMMPS_LIB_MPI #include "library.h" #include #include diff --git a/examples/COUPLE/simple/simple.c b/examples/COUPLE/simple/simple.c index a5ce281b1d..603ff270b7 100644 --- a/examples/COUPLE/simple/simple.c +++ b/examples/COUPLE/simple/simple.c @@ -23,6 +23,7 @@ #include #include #include +#define LAMMPS_LIB_MPI #include "library.h" /* this is a LAMMPS include file */ int main(int narg, char **arg)