Closed ACManke closed 1 year ago
This is fixed in fer/gnl/eval_expr.F, and a new benchmark test is added.
The grave-accent syntax to evaluate a variable involves looking at the context of the expression. Here it was looking at parts of the command that are not involved in the expression ts
, and treating the LO:HI:DELTA from the command as if it applied to the string variable ts. This information needs to be ignored for evaluating the variable.
This was reported as a Ferret issue, https://github.com/NOAA-PMEL/Ferret/issues/1998 and the user closed it. However it is a bug.
A simplified version:
Most often we have recommended people do this kind of thing using symbols, so this may be a long-standing bug that hasn't been reported before. That would go like this:
However what was done in that original report should work fine.