From 82d77e7ae1e968edf7a67d8c9ceb6b5cf7d2b94c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 28 Oct 2022 21:14:01 -0400 Subject: [PATCH] update example --- examples/COUPLE/plugin/simple.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/COUPLE/plugin/simple.c b/examples/COUPLE/plugin/simple.c index 609aeb1dfc..1401a22f49 100644 --- a/examples/COUPLE/plugin/simple.c +++ b/examples/COUPLE/plugin/simple.c @@ -19,10 +19,16 @@ in.lammps = LAMMPS input script See README for compilation instructions */ +#include + #include #include #include -#include + +/* define so interface to lammps_open() is available, + since we will run on split communicator */ +#define LAMMPS_LIB_MPI 1 + #include "liblammpsplugin.h" /* this is the include for the plugin loader */ int main(int narg, char **arg)