also allow %e in format variables of suffix

This commit is contained in:
Axel Kohlmeyer
2019-05-30 14:52:26 -04:00
parent 1a5c3c6dcb
commit 02e7dd5716
5 changed files with 6 additions and 6 deletions

View File

@ -384,7 +384,7 @@ void Variable::set(int narg, char **arg)
num[nvar] = 3;
which[nvar] = 0;
pad[nvar] = 0;
if (!utils::strmatch(arg[2],"%[0-9 ]*\\.[0-9]+[fg]"))
if (!utils::strmatch(arg[2],"%[0-9 ]*\\.[0-9]+[efgEFG]"))
error->all(FLERR,"Incorrect conversion in format string");
data[nvar] = new char*[num[nvar]];
copy(2,&arg[2],data[nvar]);