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

Slaughter, Andrew E andrew.slaughter at inl.gov
Fri Jan 13 11:08:03 EST 2017


Forget my last responses, Modified() seems to be working!

On Fri, Jan 13, 2017 at 8: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
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=QqX74k5Uv6PjRuA4rLq_4wP8l2CUB6MXw4JdY3E1vKc&e=>
>>> >
>>> > Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=hpX37IfbjCrxlZQ-tRizeCLMg92Ao4KXl9KQfqUgaRw&e=>
>>> >
>>> > Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=KB-vet1iGaYyprnYAO8sFostEe09-JAfvVern52YdRQ&e=>
>>> >
>>> > Search the list archives at: http://markmail.org/search/?q=vtkusers
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=w-64g5pHsdupESmmLIzZ_P33uBwKF2wqJE-5xy1hrkc&e=>
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://public.kitware.com/mailman/listinfo/vtkusers
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_vtkusers&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=AzoW95Lv_iW1zBubkn3kqD-aa9n-_nWXTTupvWNUdNM&e=>
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=QqX74k5Uv6PjRuA4rLq_4wP8l2CUB6MXw4JdY3E1vKc&e=>
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=hpX37IfbjCrxlZQ-tRizeCLMg92Ao4KXl9KQfqUgaRw&e=>
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=KB-vet1iGaYyprnYAO8sFostEe09-JAfvVern52YdRQ&e=>
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=w-64g5pHsdupESmmLIzZ_P33uBwKF2wqJE-5xy1hrkc&e=>
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_vtkusers&d=DQMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=mDjFyyugreDRsGjnszHYZBzvaTorpoTT6iN9mfl6h2w&s=AzoW95Lv_iW1zBubkn3kqD-aa9n-_nWXTTupvWNUdNM&e=>
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170113/d7a20c09/attachment.html>


More information about the vtkusers mailing list