Notes |
|
(0017346)
|
Alan Scott
|
2009-09-08 16:38
|
|
I am having my analyst create a reasonably size dataset. Ask me for it when you start working on this problem. This is an ascii case file type dataset, which does not exist in the ParaView or VTK datasets.
The issue is found in file vtkEnSightGoldReader.cxx, starting at line 123, in the following code:
if (this->UseFileSets)
{
for (i = 0; i < timeStep - 1; i++)
{
while (strncmp(line, "END TIME STEP", 13) != 0)
{
this->ReadLine(line);
}
this->ReadLine(line);
}
while(strncmp(line, "BEGIN TIME STEP", 15) != 0)
{
this->ReadNextDataLine(line);
}
this->ReadLine(line);
}
For every timestep, the code opens a file pointer (earlier in the function), starts at time step 0, and steps to the desired time step, and finally closes the pointer. This is an N-squared type operation. What is desired is to not close this file between time steps, and if we have already found a time step, start looking from there for the next one. This should change to an N type operation. This should significatly speed up "play animations" and "save animations".
Ask Utkarsh for implementation details - we went through the code together, and he has some ideas. |
|
|
(0017703)
|
Zhanping Liu
|
2009-09-22 11:11
|
|
This problem was fixed. Now multiple successive (unnecessarily immediately successive as long as in forward order) time steps in the same geometry file can be rapidly loaded.
Changes were made to
VTK/IO/vtkEnSightReader.h
new revision: 1.37; previous revision: 1.36
VTK/IO/vtkEnSightGoldReader.cxx
new revision: 1.67; previous revision: 1.66
VTK/IO/vtkEnSightReader.cxx
new revision: 1.85; previous revision: 1.84
Thanks. |
|
|
(0017721)
|
Alan Scott
|
2009-09-22 22:06
|
|
Need to get rid of a print statement - it says "Executing with:" ... Then, just mark it closed. |
|
|
(0017729)
|
Zhanping Liu
|
2009-09-23 09:50
|
|
As suggested, "Executing with:" was removed.
new revision: 1.87; previous revision: 1.86 |
|
|
(0017799)
|
Utkarsh Ayachit
|
2009-09-28 14:49
|
|
Committed to 3.6.2
/cvsroot/ParaView3/ParaView3/VTK/IO/vtkEnSightGoldReader.cxx,v <-- VTK/IO/vtkEnSightGoldReader.cxx
new revision: 1.65.6.1; previous revision: 1.65
/cvsroot/ParaView3/ParaView3/VTK/IO/vtkEnSightReader.cxx,v <-- VTK/IO/vtkEnSightReader.cxx
new revision: 1.84.6.1; previous revision: 1.84
/cvsroot/ParaView3/ParaView3/VTK/IO/vtkEnSightReader.h,v <-- VTK/IO/vtkEnSightReader.h
new revision: 1.36.8.1; previous revision: 1.36
/cvsroot/ParaView3/ParaView3/VTK/IO/vtkEnSightReader.cxx,v <-- VTK/IO/vtkEnSightReader.cxx
new revision: 1.84.6.2; previous revision: 1.84.6.1
/cvsroot/ParaView3/ParaView3/VTK/IO/vtkEnSightReader.cxx,v <-- VTK/IO/vtkEnSightReader.cxx
new revision: 1.84.6.3; previous revision: 1.84.6.2 |
|
|
(0017911)
|
Alan Scott
|
2009-10-02 14:51
|
|
Excellent. Tested local server, XP. |
|