Skip to content
Snippets Groups Projects
Commit bcef43c7 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add code to check the ABI version of the LATTE library

parent aa1503b7
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ extern "C" { ...@@ -39,6 +39,7 @@ extern "C" {
double *, double *, double *, double *, double *, double *, double *, double *,
double *, double *, double *, int*, double *, double *, double *, int*,
double *, double *, double *, double *, bool *); double *, double *, double *, double *, bool *);
int latte_abiversion();
} }
#define INVOKED_PERATOM 8 #define INVOKED_PERATOM 8
...@@ -54,6 +55,9 @@ FixLatte::FixLatte(LAMMPS *lmp, int narg, char **arg) : ...@@ -54,6 +55,9 @@ FixLatte::FixLatte(LAMMPS *lmp, int narg, char **arg) :
if (comm->nprocs != 1) if (comm->nprocs != 1)
error->all(FLERR,"Fix latte currently runs only in serial"); error->all(FLERR,"Fix latte currently runs only in serial");
if (20180207 != latte_abiversion())
error->all(FLERR,"LAMMPS is linked against incompatible LATTE library");
if (narg != 4) error->all(FLERR,"Illegal fix latte command"); if (narg != 4) error->all(FLERR,"Illegal fix latte command");
scalar_flag = 1; scalar_flag = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment