From db59abf1b94170198a093de9e780922f5c09dafa Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 14 Sep 2020 12:16:53 -0400 Subject: [PATCH] fix bug in lammps_has_style() --- src/library.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/library.cpp b/src/library.cpp index 0e0c4070ea..697fefe1cb 100644 --- a/src/library.cpp +++ b/src/library.cpp @@ -3788,14 +3788,14 @@ Valid categories are: *atom*\ , *integrate*\ , *minimize*\ , \endverbatim * * \param handle pointer to a previously created LAMMPS instance cast to ``void *``. - * \param category category of the style - * \param name name of the style - * \return 1 if included, 0 if not. + * \param category category of the style + * \param name name of the style + * \return 1 if included, 0 if not. */ int lammps_has_style(void * handle, char * category, 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; } /* ---------------------------------------------------------------------- */