Hi,
I found a solution. I've attached a simple patch to fix the issue.
Please add it for next release.
Let me know if you have any questions or concerns.
Thanks,
Pat
On Wed, 2012-05-23 at 11:06 -0400, Patrick Shinpaugh wrote:
> Hi,
> We are working with some tecplot data and finding that the last variable
> does not show in paraview (Windows, linux, 32 and 64 bit). The files are
> about 100MB each but the head is as follows:
>
> TITLE = "title"
> VARIABLES = X, Y, Z, "pressure", "x-velocity", "y-velocity",
> "z-velocity", "x-vorticity", "y-vorticity", "z-vorticity", "temperature"
> ZONE T="Rampant", N=332518, E=1866141, ET=TETRAHEDRON, F=FEBLOCK
>
>
> With this file, temperature is not visible, or available.
>
> In the following file
>
> TITLE = "title"
> VARIABLES = X, Y, Z, "pressure", "x-velocity", "y-velocity",
> "z-velocity", "temperature", "h2o"
> ZONE T="Rampant", N=332518, E=1866141, ET=TETRAHEDRON, F=FEBLOCK
>
> the "h2o" variable is not available.
>
> Seems to be an issue with the tecplot reader plugin token manipulation
> functions skipping the last variable. Any help would be appreciated.
>
>
> Thanks,
> Pat
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
--- ParaView-3.14.1-Source.orig/VTK/IO/vtkTecplotReader.cxx 2012-04-02 12:57:30.000000000 -0400
+++ ParaView-3.14.1-Source/VTK/IO/vtkTecplotReader.cxx 2012-05-23 19:58:57.000000000 -0400
@@ -1412,11 +1412,11 @@
this->Variables.push_back( theTpToken );
this->NumberOfVariables ++;
- theTpToken = this->Internal->GetNextToken();
if ( this->Internal->NextCharEOL )
{
break;
}
+ theTpToken = this->Internal->GetNextToken();
}
}
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview