MantisBT - ParaView
View Issue Details
0010800ParaViewBugpublic2010-06-07 15:552013-01-22 16:27
Ross McLendon 
Utkarsh Ayachit 
normalmajoralways
closedduplicate 
3.8 
3.98.0 
0010800: Calculator parsing error on tensoral cell data...
I load a .vtu file that has tensor-style cell data with the name "FailureModes". I use the calculator to attempt to extract scalars from this data so that I can apply threshold to various components. The equation field contains only a string of the form "FailureModes_XX" (no quotes, _XX corresponds to the component I want to convert to a scalar for use in Threshold down the road). When I hit apply, ParaView gives the the following output message:

ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1632
vtkFunctionParser (00000000067DD400): Syntax error: operator expected; see position 14


ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1632
vtkFunctionParser (00000000067DD400): Syntax error: operator expected; see position 14


Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 401
vtkPVArrayCalculator (000000000F885010): An error occured when parsing the calculator's function. See previous errors.


Also, there is no Result array...

This worked in 3.6.2. I'm guessing it's a parser issue. Hopefully not too bad to fix.
I've attached a version of my .vtu file that I'm trying to visualize...

I am running ParaView 3.8 on Windows Server 2008 R2 64 bit.
No tags attached.
duplicate of 0013258closed Utkarsh Ayachit Calculator can't use tensor components correctly 
patch paraview-3.8.1-fixed-vtkpvarraycalculator-tensor-data.patch (2,224) 2011-03-29 05:12
https://www.vtk.org/Bug/file/8784/paraview-3.8.1-fixed-vtkpvarraycalculator-tensor-data.patch
Issue History
2010-06-07 15:55Ross McLendonNew Issue
2011-03-29 05:12He YuqiFile Added: paraview-3.8.1-fixed-vtkpvarraycalculator-tensor-data.patch
2011-03-29 05:14He YuqiNote Added: 0025948
2011-03-29 05:15He YuqiNote Edited: 0025948bug_revision_view_page.php?bugnote_id=25948#r261
2012-09-25 11:10Utkarsh AyachitRelationship addedduplicate of 0013258
2012-09-25 11:10Utkarsh AyachitStatusbacklog => gatekeeper review
2012-09-25 11:10Utkarsh AyachitResolutionopen => duplicate
2012-09-25 11:10Utkarsh AyachitAssigned To => Utkarsh Ayachit
2012-09-28 14:28Utkarsh AyachitFixed in Version => git-master
2012-09-28 14:28Utkarsh AyachitStatusgatekeeper review => customer review
2012-09-28 14:28Utkarsh AyachitNote Added: 0029295
2012-10-29 17:04Utkarsh AyachitFixed in Versiongit-master => 3.98.0
2013-01-22 16:27Alan ScottNote Added: 0030220
2013-01-22 16:27Alan ScottStatuscustomer review => closed

Notes
(0025948)
He Yuqi   
2011-03-29 05:14   
(edited on: 2011-03-29 05:15)
It seems that the function vtkPVArrayCalculator::UpdateArrayAndVariableNames does not support tensor-style cell data.

Attached patch to fix this issue.

(0029295)
Utkarsh Ayachit   
2012-09-28 14:28   
merged into master, if applicable.
(0030220)
Alan Scott   
2013-01-22 16:27   
Although I cannot find the attached file, I also believe this is the same as 13258. I used the dataset from that bug to test this one. Fixed.

Tested remote server, Linux, master.