[Paraview] Slice not appearing while coprocessing
Andy Bauer
andy.bauer at kitware.com
Sun Jan 31 20:34:54 EST 2016
Hi Tim,
Glad you figured out the issue.
As for the XDMF writer with Catalyst, you can do it but it takes some
modifications to the Catalyst Python script. Currently only the parallel
VTK XML writers and the ADIOS writer are fully supported in Catalyst
through the script generation utility. I haven't tested the XDMF writer
very much in parallel but maybe it's about time to see about that and then
add it to the list of writers that are fully supported in Catalyst.
Cheers,
Andy
On Sat, Jan 30, 2016 at 11:20 AM, Tim Gallagher <tim.gallagher at gatech.edu>
wrote:
> Hi Andy,
>
> Thanks for the reply! The data is a vtkMultiBlockDataSet with structured
> grids. I forgot about the grid writing debugging technique, I found the
> issue.
>
> It turns out that all of my runs/testing in the past 4 years I've had
> coprocessing had only 1 block per processor and this simulation we were
> trying had multiple blocks per processor. Buried deep in my interface
> adapter code where I set the pointers for the grid arrays, I was pointing
> to the first pointer in the array of pointers instead of incrementing
> through the array for each block. So all the blocks besides the first on
> the processor were using the wrong coordinates and it just so happened that
> meant we didn't have any grid points where the slice was. So changing my
> ptr = x[0] to ptr = x[i] was all it took... kind of embarrassing.
>
> At any rate, one of the things I tried to do while debugging was to write
> out the grid using Xdmf instead of VTK. But that didn't work. I had:
>
> writer = coprocessor.CreateWriter( XdmfWriter, "filename_%t.xmf", 1 )
>
> and I got:
>
> ...
> File "/data4/pv4.4Build/lib/site-packages/paraview/coprocessing.py",
> line 319, in WriterParametersProxy
> proxy.GetProperty("Input").SetInputConnection(
> AttributeError: 'NoneType' object has no attribute 'GetProperty'
> ERROR: In
> /data3/ParaView/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx,
> line 565
> vtkSIProxyDefinitionManager (0x3854340): No proxy that matches:
> group=insitu_writer_parameters and proxy=XdmfWriter were found.
>
> Is it possible to write out a multiblock dataset from coprocessing using
> XDMF?
>
> Thanks again,
>
> Tim
>
> ------------------------------
> *From: *"Andy Bauer" <andy.bauer at kitware.com>
> *To: *"tim gallagher" <tim.gallagher at gatech.edu>
> *Cc: *"paraview" <paraview at paraview.org>
> *Sent: *Saturday, January 30, 2016 7:46:01 AM
> *Subject: *Re: [Paraview] Slice not appearing while coprocessing
>
> Hi Tim,
>
> Everything seems to be correct. Maybe on the "input" name/identifier isn't
> matching? This is an unstructured grid output, correct?
>
> Maybe try writing out the full grid to see if Catalyst is getting the
> proper input information.
>
> Cheers,
> Andy
>
>
> On Fri, Jan 29, 2016 at 4:18 PM, Tim Gallagher <tim.gallagher at gatech.edu>
> wrote:
>
>> Hi everybody,
>>
>> I was working with a colleague to get his simulation running with
>> coprocessing and I am totally stumped on the problem. I have been able to
>> set up and render some very complex things with our code, but for some
>> reason this simulation just won't work as expected.
>>
>> We generated the coprocessing script with version 4.3 and we are running
>> it on a cluster with the same version, using off-screen rendering. I have
>> attached the script, it really just takes a slice through the center of the
>> domain.
>>
>> It is producing images of the colorbar and nothing else. I tried to save
>> the slice data to an xdmf file from the coprocessing script and it all
>> reports dimensions of zero. So the slice doesn't seem to be actually doing
>> anything.
>>
>> We took the exact lines from the Pipeline class and moved them to their
>> own python file. We then removed the coprocessor.RegisterView and changed
>> the coprocessor.CreateProducer line so it loads a datafile off disk
>> instead. We then ran it through the python shell in the paraview GUI and we
>> get exactly the slice we expected to get.
>>
>> So, for some reason, this renders fine in the GUI but outputs the
>> background with just the colorbar when we are using coprocessing.
>>
>> Any ideas or glaring problems in the coprocessing script that we are
>> missing?
>>
>> Thanks,
>>
>> Tim
>> _______________________________________________
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160131/ca2d05ee/attachment.html>
More information about the ParaView
mailing list