make fully compatible with gcc -ansi

This commit is contained in:
Axel Kohlmeyer
2022-10-31 16:13:25 -04:00
parent 5d115fec90
commit 6068e9df5a
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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);