also allow %e in format variables of suffix
This commit is contained in:
@ -5830,9 +5830,9 @@ Must have periodic x,y dimensions and non-periodic z dimension to use
|
|||||||
|
|
||||||
{Incorrect conversion in format string} :dt
|
{Incorrect conversion in format string} :dt
|
||||||
|
|
||||||
A format style variable was not using either a %f or a %g conversion.
|
A format style variable was not using either a %f, a %g, or a %e conversion.
|
||||||
Or an immediate variable with format suffix was not using either
|
Or an immediate variable with format suffix was not using either
|
||||||
a %f or a %g conversion in the format suffix. :dd
|
a %f, a %g or a %e conversion in the format suffix. :dd
|
||||||
|
|
||||||
{Incorrect element names in ADP potential file} :dt
|
{Incorrect element names in ADP potential file} :dt
|
||||||
|
|
||||||
|
|||||||
@ -529,7 +529,7 @@ void Input::substitute(char *&str, char *&str2, int &max, int &max2, int flag)
|
|||||||
|
|
||||||
// quick check for proper format string
|
// 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");
|
error->all(FLERR,"Incorrect conversion in format string");
|
||||||
|
|
||||||
snprintf(immediate,256,fmtstr,variable->compute_equal(var));
|
snprintf(immediate,256,fmtstr,variable->compute_equal(var));
|
||||||
|
|||||||
@ -176,7 +176,7 @@ quote.
|
|||||||
E: Incorrect conversion in format string
|
E: Incorrect conversion in format string
|
||||||
|
|
||||||
An immediate variable with format suffix was not using
|
An immediate variable with format suffix was not using
|
||||||
either a %f or a %g conversion in the format suffix.
|
either a %f, a %g, or a %e conversion in the format suffix.
|
||||||
|
|
||||||
E: Input line quote not followed by white-space
|
E: Input line quote not followed by white-space
|
||||||
|
|
||||||
|
|||||||
@ -384,7 +384,7 @@ void Variable::set(int narg, char **arg)
|
|||||||
num[nvar] = 3;
|
num[nvar] = 3;
|
||||||
which[nvar] = 0;
|
which[nvar] = 0;
|
||||||
pad[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");
|
error->all(FLERR,"Incorrect conversion in format string");
|
||||||
data[nvar] = new char*[num[nvar]];
|
data[nvar] = new char*[num[nvar]];
|
||||||
copy(2,&arg[2],data[nvar]);
|
copy(2,&arg[2],data[nvar]);
|
||||||
|
|||||||
@ -212,7 +212,7 @@ command.
|
|||||||
|
|
||||||
E: Incorrect conversion in format string
|
E: Incorrect conversion in format string
|
||||||
|
|
||||||
A format style variable was not using either a %f or a %g conversion.
|
A format style variable was not using either a %f, a %g, or a %e conversion.
|
||||||
|
|
||||||
E: Next command must list all universe and uloop variables
|
E: Next command must list all universe and uloop variables
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user