use utils::strmatch() instead of strncmp()

This commit is contained in:
Axel Kohlmeyer 2019-03-27 06:19:42 -04:00
parent 1926c95625
commit 8a384df5c3
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include "variable.h"
#include "memory.h"
#include "error.h"
#include "utils.h"
using namespace LAMMPS_NS;
using namespace FixConst;
@ -1058,7 +1059,7 @@ int Modify::check_rigid_group_overlap(int groupbit)
int n = 0;
for (int ifix = 0; ifix < nfix; ifix++) {
if (strncmp("rigid",fix[ifix]->style,5) == 0) {
if (utils::strmatch(fix[ifix]->style,"^rigid")) {
const int * const body = (const int *)fix[ifix]->extract("body",dim);
if ((body == NULL) || (dim != 1)) break;