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

@ -1984,7 +1984,7 @@ void ReadData::typelabels(std::vector<std::string> &mytypelabel, int myntypes, i
next = strchr(buf,'\n');
*next = '\0';
sscanf(buf,"%*d %s",typelabel);
if (!isalpha(typelabel[0])) error->all(FLERR,"Type labels must begin with a letter");
if (isdigit(typelabel[0])) error->all(FLERR,"Type labels cannot start with a number");
mytypelabel[i] = typelabel;
buf = next + 1;
}