[vtkusers] How to re-load time information in ExodusIIReader

David Thompson david.thompson at kitware.com
Fri Jan 13 11:57:45 EST 2017


Hi Andrew,

The code in ParaView that does this is in Qt/ApplicationComponents/pqReloadFilesReaction.cxx and ParaViewCore/ServerManager/Default/vtkSMReaderReloadHelper.cxx .

	David


On Jan 13, 2017, at 10:45 AM, Slaughter, Andrew E <andrew.slaughter at inl.gov> wrote:
> 
> 
> On Fri, Jan 13, 2017 at 8:35 AM, Andy Bauer <andy.bauer at kitware.com> wrote:
> You should be able to reload a file through Edit->Reload Files option. Note that on Linux F5 is the shortcut for that. The menu should show you the proper shortcut on your machine.
> 
> How does Paraview handle this? I have tried finding the code in the paraview ExodusIIReaer but have not been successful tracking this down. I have not looked for the code for the reload button, can you point me to where that might be?
>  
> On Fri, Jan 13, 2017 at 10:19 AM, David Thompson <david.thompson at kitware.com> wrote:
> Hi Andrew,
> 
> Does calling Modified() on the reader cause an update? If not, how about calling SetFileName(NULL) and then SetFileName(previousFileName)? Note that the latter will (should, anyway) invalidate the reader's cache, so it is not without a cost.
> 
> ParaView has had this feature requested (for information to get updated when the file gets changed) before and I don't recall whether something was done to address it or not.
> 
>         David
> 
> > On Jan 12, 2017, at 3:12 PM, Slaughter, Andrew E <andrew.slaughter at inl.gov> wrote:
> >
> > Is there anyone who can help me with this issue?
> >
> > On Tue, Dec 20, 2016 at 11:32 AM, Slaughter, Andrew E <andrew.slaughter at inl.gov> wrote:
> > I am reading a file that contains 2 timesteps, but is then updated and has an additional timestep. How can a reload the vtkExodusIIReader to get the new time information.
> >
> > I attached a python script demonstrating what I am doing, but I will summarize here. My test script has two files (diffusion_1.e and diffusion_2.e that have 2 and 3 timestep respectively). If I create a vtkExodusIIReader and change the filename then I get the correct number.
> >
> > But, if I copy the files to a common filename I always get 2, even when the file has changed to have 3 timesteps.
> >
> > Any help would be appreciated,
> >
> > Andrew
> >
> > _______________________________________________
> > 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Search the list archives at: http://markmail.org/search/?q=vtkusers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> 
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 
> 



More information about the vtkusers mailing list