use simplified group->assign

This commit is contained in:
Axel Kohlmeyer
2020-06-28 18:02:35 -04:00
parent f0a983b465
commit f670464a3e

View File

@ -226,12 +226,7 @@ void Ndx2Group::create(char *name, bigint num, tagint *tags)
{
// wipe out all members if the group exists. gid==0 is group "all"
int gid = group->find(name);
if (gid > 0) {
char *cmd[2];
cmd[0] = name;
cmd[1] = (char *)"clear";
group->assign(2,cmd);
}
if (gid > 0) group->assign(std::string(name) + " clear");
// map from global to local
const int nlocal = atom->nlocal;