[Paraview] Using SpatioTemporalParallelism plugin in ParaView

Krishna Pai krishnapai09 at gmail.com
Fri Jul 31 15:07:28 EDT 2015


I've attached the xdmf file and the generated python script for
clarification.

On Fri, Jul 31, 2015 at 12:30 PM, Krishna Pai <krishnapai09 at gmail.com>
wrote:

> Thanks for the reply, Menno. I tried doing that before, but I got a
> segmentation fault due to a missing filename, and I'm not sure where in the
> function call for CreateReader I would put a file name or what file name I
> should use. I ended up getting the following error message along with 2
> slight variations on it, followed by the segmentation fault message:
>
> ERROR: In
> /lustre/cmf/scratch/k/kpai/projects/ParaView-v4.3.1-source/VTK/IO/Xdmf2/vtkXdmfReader.cxx,
> line 189
> vtkXdmfReader (0x48997f0): File name not set
>
> ERROR: In
> /lustre/cmf/scratch/k/kpai/projects/ParaView-v4.3.1-source/VTK/Common/ExecutionModel/vtkExecutive.cxx,
> line 784
> vtkPVCompositeDataPipeline (0x489fe20): Algorithm
> vtkFileSeriesReader(0x489de90) returned failure for request: vtkInformation
> (0x4891ab0)
>   Debug: Off
>   Modified Time: 165325
>   Reference Count: 1
>   Registered Events: (none)
>   Request: REQUEST_DATA_OBJECT
>   FORWARD_DIRECTION: 0
>   ALGORITHM_AFTER_FORWARD: 1
>
> Unless there's a bug in the plugin, I don't think this should be happening
> if I input the required information correctly. Here's what I did:
>
> 1. I opened the xdmf file in ParaView and added a ParallelImageDataWriter
> to it in the pipeline. In the File Name field of ParallelImageDataWriter, I
> entered output%t.pvti. I expect the output files to be in this form if I
> understand what ParallelImageDataWriter does correctly.
>
> 2. I exported state from the SpatioTemporal menu. As my xdmf file was the
> only file in the pipeline, I simply added it.
>
> 3. Next, as the xdmf file gets its data from binary files in a separate
> directory, I entered the file path to those files in the file location
> field (i.e. <path>/NeptuneData_2015-07-28/0000/f*.bin). I think this is
> where the plugin will get its data (this may be where the problem is).
>
> 4. Finally, I chose not to output images, entered a time compartment size
> of 4, and chose a location to save the generated python script.
>
> Obviously, the generated script contained the fileinfo=<path> argument in
> the CreateReader call among other issues, and I just want to understand
> what's going wrong. As always, any help is appreciated.
>
> Thanks,
> Krishna Pai
>
>
> On Fri, Jul 31, 2015 at 2:44 AM, Deij-van Rijswijk, Menno <M.Deij at marin.nl
> > wrote:
>
>> If I’m not mistaken, it should be called like this
>>
>>
>>
>> xdmf_test_v01xdmf = STP.CreateReader(XDMFReader,
>> '/lustre/cmf/scratch/k/kpai/projects/NeptuneData_2015-07-28/xdmf_test_v01.xdmf')
>>
>>
>>
>> That is, without the keyword argument fileinfo='<path>'
>>
>>
>>
>> Best wishes,
>>
>>
>>
>>
>>
>> Menno
>>
>>
>>
>> dr. ir. Menno A. Deij-van Rijswijk
>>
>> Researcher / Software Engineer
>> Maritime Simulation & Software Group
>>
>>
>>
>> *MARIN*
>>
>>
>> 2, Haagsteeg E M.Deij at marin.nl P.O. Box 28 T +31 317 49 39 11 6700 AA
>> Wageningen F +31 317 49 32 45 T  +31 317 49 35 06 The Netherlands I
>> www.marin.nl
>>
>>
>>
>> MARIN news: Coöperatief zonne-energieproject op dak MARIN
>> <http://www.marin.nl/web/News/News-items/Cooperatief-zonneenergieproject-op-dak-MARIN.htm>
>>
>> This e-mail may be confidential, privileged and/or protected by
>> copyright. If you are not the intended recipient, you should return it to
>> the sender immediately and delete your copy from your system.
>>
>>
>>
>> *From:* ParaView [mailto:paraview-bounces at paraview.org] *On Behalf Of *Krishna
>> Pai
>> *Sent:* donderdag 30 juli 2015 21:20
>> *To:* paraview at paraview.org
>> *Subject:* [Paraview] Using SpatioTemporalParallelism plugin in ParaView
>>
>>
>>
>> Hi all,
>>
>> I've been working with spatio-temporal data stored in an xdmf file. I
>> found that ParaView doesn't handle parallel processing of this file well,
>> so I thought I would use the SpatioTemporalParallelism plugin to partition
>> the data better. I chose the Parallel Image Data Writer to write to a .pvti
>> before using the plugin to export state. Once the python script was
>> generated, and I tried running it with pvbatch, I got the following error
>> message:
>>
>>
>> Traceback (most recent call last):
>>   File "./yoda.py", line 26, in <module>
>>     xdmf_test_v01xdmf = STP.CreateReader(XDMFReader,
>> fileinfo='/lustre/cmf/scratch/k/kpai/projects/NeptuneData_2015-07-28/xdmf_test_v01.xdmf')
>> TypeError: CreateReader() takes exactly 2 non-keyword arguments (1 given)
>>
>> The file path above is to the xdmf file on a remote machine.
>>
>> I'm not sure what other arguments need to be given, considering the
>> script was generated by ParaView (maybe I exported state incorrectly?). I
>> would appreciate any help.
>>
>> Thanks,
>>
>> Krishna Pai
>>
>>
>>
>>
>
>
> --
>           1   1
>           1   /
>           1 1                     1
>           1 1      _    0   _   1 _       _      _
>           1   \   1  1  1  (     1   7   1  7    _)
>           1    !  1      1   )    1   1   1  1   {_}
>



-- 
          1   1
          1   /
          1 1                     1
          1 1      _    0   _   1 _       _      _
          1   \   1  1  1  (     1   7   1  7    _)
          1    !  1      1   )    1   1   1  1   {_}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150731/5c15d69c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image20810f.JPG
Type: image/jpeg
Size: 1069 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150731/5c15d69c/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imageb1c161.JPG
Type: image/jpeg
Size: 1622 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150731/5c15d69c/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yoda.py
Type: text/x-python
Size: 1453 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150731/5c15d69c/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdmf_test_v01.xdmf
Type: application/octet-stream
Size: 14876 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150731/5c15d69c/attachment.obj>


More information about the ParaView mailing list