nolabel for write_data

also bug fixes
This commit is contained in:
jrgissing
2021-01-31 16:37:09 -05:00
parent b92adfaf6f
commit 4f219a94aa
8 changed files with 20 additions and 8 deletions

View File

@ -106,7 +106,7 @@ void LabelMap::modify_lmap(int narg, char **arg)
itype = utils::inumeric(FLERR,arg[iarg++],false,lmp);
charlabel = arg[iarg++];
if (itype > ntypes) error->all(FLERR,"Topology type exceeds system topology type");
if (isdigit(charlabel[0])) error->all(FLERR,"Type labels must begin with a letter");
if (isdigit(charlabel[0])) error->all(FLERR,"Type labels cannot start with a number");
(*labels)[itype-1] = charlabel;
}
}