diff --git a/src/LATTE/fix_latte.cpp b/src/LATTE/fix_latte.cpp index 165dfff597ab7efd0e7795426a91d79e4666dbae..4594f26f8f8c182901ed564895e5814d77cb5e06 100644 --- a/src/LATTE/fix_latte.cpp +++ b/src/LATTE/fix_latte.cpp @@ -39,6 +39,7 @@ extern "C" { double *, double *, double *, double *, double *, double *, double *, int*, double *, double *, double *, double *, bool *); + int latte_abiversion(); } #define INVOKED_PERATOM 8 @@ -54,6 +55,9 @@ FixLatte::FixLatte(LAMMPS *lmp, int narg, char **arg) : if (comm->nprocs != 1) 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"); scalar_flag = 1;