Calculator filter: bad variable matching between scalars and vectors
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The parser in the calculator filter has a bug where it seems to match scalar variable names even when there is a better match in the vectors. To replicate, do the following:
- Open disk_out_ref. Load all variables.
- Add the Gradient (Unstructured) filter. Make the output array named PressureGradients.
- Add the Calculator filter. Make the expression simply be PressureGradients (pass through the PressureGradients data).
When you apply the calculator filter, you get a rather cryptic error: "Syntax error: operator expected; see position 4". After some head scratching, I realized that the parser is matching the first 4 characters, "Pres", to the scalar of that name instead of appropriately matching to the PressureGradients vector.