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

@ -529,7 +529,7 @@ void Input::substitute(char *&str, char *&str2, int &max, int &max2, int flag)
// quick check for proper format string
if (!utils::strmatch(fmtstr,"%[0-9 ]*\\.[0-9]+[fg]"))
if (!utils::strmatch(fmtstr,"%[0-9 ]*\\.[0-9]+[efgEFG]"))
error->all(FLERR,"Incorrect conversion in format string");
snprintf(immediate,256,fmtstr,variable->compute_equal(var));