add group style to create an empty group directly

This commit is contained in:
Axel Kohlmeyer
2018-02-13 14:54:30 +01:00
parent 63714c7079
commit 1a213363f1
2 changed files with 13 additions and 1 deletions

View File

@ -188,6 +188,12 @@ void Group::assign(int narg, char **arg)
if (domain->regions[iregion]->match(x[i][0],x[i][1],x[i][2]))
mask[i] |= bit;
// create an empty group
} else if (strcmp(arg[1],"empty") == 0) {
; // nothing to do here
// style = type, molecule, id
// add to group if atom matches type/molecule/id or condition