From 6068e9df5a51a7d99eae6d861eb48c2fe68e14ae Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 31 Oct 2022 16:13:25 -0400 Subject: [PATCH] make fully compatible with gcc -ansi --- examples/COUPLE/plugin/liblammpsplugin.h | 6 +++--- examples/COUPLE/plugin/simple.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/COUPLE/plugin/liblammpsplugin.h b/examples/COUPLE/plugin/liblammpsplugin.h index 0865be6bb9..26abf74d02 100644 --- a/examples/COUPLE/plugin/liblammpsplugin.h +++ b/examples/COUPLE/plugin/liblammpsplugin.h @@ -167,9 +167,9 @@ struct _liblammpsplugin { void (*scatter)(void *, char *, int, int, void *); void (*scatter_subset)(void *, char *, int, int, int, int *, void *); -// lammps_create_atoms() takes tagint and imageint as args -// ifdef insures they are compatible with rest of LAMMPS -// caller must match to how LAMMPS library is built +/* lammps_create_atoms() takes tagint and imageint as args + * the ifdef insures they are compatible with rest of LAMMPS + * caller must match to how LAMMPS library is built */ #ifndef LAMMPS_BIGBIG void (*create_atoms)(void *, int, int *, int *, double *, double *, int *, int); diff --git a/examples/COUPLE/plugin/simple.c b/examples/COUPLE/plugin/simple.c index 0ca5726072..d4b9b9314c 100644 --- a/examples/COUPLE/plugin/simple.c +++ b/examples/COUPLE/plugin/simple.c @@ -134,7 +134,7 @@ int main(int narg, char **arg) plugin->command(lmp,"run 1"); } - // extract force on single atom two different ways + /* extract force on single atom two different ways */ if (lammps == 1) { double **f = (double **) plugin->extract_atom(lmp,"f"); @@ -172,7 +172,7 @@ int main(int narg, char **arg) if (v) free(v); if (type) free(type); - // close down LAMMPS + /* close down LAMMPS */ if (lammps == 1) { plugin->close(lmp);