more use of fmtlib and std::string
This commit is contained in:
@ -1157,11 +1157,8 @@ void ReadData::header(int firstpass)
|
||||
parse_keyword(1);
|
||||
for (n = 0; n < NSECTIONS; n++)
|
||||
if (strcmp(keyword,section_keywords[n]) == 0) break;
|
||||
if (n == NSECTIONS) {
|
||||
char str[128];
|
||||
sprintf(str,"Unknown identifier in data file: %s",keyword);
|
||||
error->all(FLERR,str);
|
||||
}
|
||||
if (n == NSECTIONS)
|
||||
error->all(FLERR,fmt::format("Unknown identifier in data file: {}",keyword));
|
||||
|
||||
// error checks on header values
|
||||
// must be consistent with atom style and other header values
|
||||
|
||||
Reference in New Issue
Block a user