more accurate checking for styles using utils::strmatch() instead of strcmp() or strncmp()

This commit is contained in:
Axel Kohlmeyer
2019-06-07 07:14:57 -04:00
parent b53df3dd63
commit 61e9dc4c8d
7 changed files with 30 additions and 33 deletions

View File

@ -112,7 +112,7 @@ void Velocity::command(int narg, char **arg)
int initcomm = 0;
if (style == ZERO && rfix >= 0 &&
strcmp(modify->fix[rfix]->style,"rigid/small") == 0) initcomm = 1;
utils::strmatch(modify->fix[rfix]->style,"^rigid/small")) initcomm = 1;
if ((style == CREATE || style == SET) && temperature &&
strcmp(temperature->style,"temp/cs") == 0) initcomm = 1;