From ca3d10fa39d5e41bfc30b9d48ca02484a1b06a45 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 9 Oct 2020 07:37:25 -0400 Subject: [PATCH] need to define LAMMPS_LIB_MPI --- doc/src/Library_execute.rst | 1 + examples/COUPLE/simple/simple.c | 1 + 2 files changed, 2 insertions(+) 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)