Using period in a variable.name
ishovkun opened this issue · 2 comments
ishovkun commented
Is there any way to use a period "." in a variable name?
I am trying to define a variable as follows:
mu::Parser parser;
double value;
parser.DefineVar("inputs.poro", &value);
and I'm getting the following exception:
Invalid function-, variable- or constant name: "".
beltoforion commented
Try adding it to the characters allowed in variable names like described here:
https://beltoforion.de/en/muparser/interface.php#idDefCharset
ishovkun commented
It worked! Thank you!