generalize match to fit all rigid/small derived fixes
This commit is contained in:
@ -108,7 +108,7 @@ void Velocity::command(int narg, char **arg)
|
||||
|
||||
int initcomm = 0;
|
||||
if (style == ZERO && rfix >= 0 &&
|
||||
utils::strmatch(modify->fix[rfix]->style,"^rigid/small")) 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user