need to define LAMMPS_LIB_MPI

This commit is contained in:
Axel Kohlmeyer
2020-10-09 07:37:25 -04:00
parent bafba4235c
commit ca3d10fa39
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ Below is a short example using some of these functions.
.. code-block:: C .. code-block:: C
#define LAMMPS_LIB_MPI
#include "library.h" #include "library.h"
#include <mpi.h> #include <mpi.h>
#include <stdio.h> #include <stdio.h>

View File

@ -23,6 +23,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <mpi.h> #include <mpi.h>
#define LAMMPS_LIB_MPI
#include "library.h" /* this is a LAMMPS include file */ #include "library.h" /* this is a LAMMPS include file */
int main(int narg, char **arg) int main(int narg, char **arg)