Parser #2130
-
I used "Parser" function to find the value of variables using a set of constants.
I used the following lines in my GNUMakeFile.
Also, the compilation seems to have some issues too: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Is there
I assume this is a typo. Parser is for C++ code, not for make.
This is not a valid code for the parser. What do you want to compute?
The function
|
Beta Was this translation helpful? Give feedback.
Is there
#include <AMReX_Parser.H>
?I assume this is a typo. Parser is for C++ code, not for make.
This is not a valid code for the parser. What do you want to compute?
(b*c)/(d*d)
? Assignment likea=...;
can be used to define a local variable that's internal to the parser. But the parser expression must have an expression as the last statement, and that will be its return value whenParserExecutor<N>::operator()
is called.a=(b*c)/(d*d); a
is valid, but thena
is not a variable to be registered withregisterVariables
. Parser is usually used to evaluate a runtime stri…