small tweaks to support type labels with single and double quotes. add tests

This commit is contained in:
Axel Kohlmeyer
2022-09-03 19:04:24 -04:00
parent b143f87d10
commit bb45137b1a
4 changed files with 14 additions and 4 deletions

View File

@ -728,7 +728,7 @@ int Input::readtype(char *&str, int mode)
int type,max,max2;
char typechar[256];
std::string labelstr(str);
std::string labelstr = utils::trim(str);
type = atom->lmap->find(labelstr,mode);
if (type == -1) error->all(FLERR,fmt::format("Invalid type {}",str));