fix bug in lammps_has_style()

This commit is contained in:
Axel Kohlmeyer
2020-09-14 12:16:53 -04:00
parent cc86214fe2
commit 155e7de859

View File

@ -3795,7 +3795,7 @@ Valid categories are: *atom*\ , *integrate*\ , *minimize*\ ,
int lammps_has_style(void *handle, const char *category, const char *name) {
LAMMPS *lmp = (LAMMPS *) handle;
Info info(lmp);
return info.has_style(category, name) ? 0 : 1;
return info.has_style(category, name) ? 1 : 0;
}
/* ---------------------------------------------------------------------- */