minor update

This commit is contained in:
Yaser Afshar
2021-09-15 07:07:48 -05:00
parent 6873001fec
commit c63d6ce790

View File

@ -2043,7 +2043,8 @@ void ReadData::impropercoeffs(int which)
void ReadData::typelabels(std::vector<std::string> &mytypelabel, int myntypes, int mode)
{
if (settypeflag) error->all(FLERR,"Must read Type Labels before any section involving types");
if (settypeflag)
error->all(FLERR,"Must read Type Labels before any section involving types");
char *next;
char *buf = new char[myntypes*MAXLINE];
@ -2059,7 +2060,8 @@ void ReadData::typelabels(std::vector<std::string> &mytypelabel, int myntypes, i
*next = '\0';
int rv = sscanf(buf,"%*d %s",typelabel);
if (rv != 1) error->all(FLERR,"Invalid data file section: Type Labels");
if (isdigit(typelabel[0])) error->all(FLERR,"Type labels cannot start with a number");
if (isdigit(typelabel[0]))
error->all(FLERR,"Type labels cannot start with a number");
mytypelabel[i] = typelabel;
buf = next + 1;
}