[Paraview] [EXT] Re: Stupid question on Programmable Source

Dennis Conklin dennis_conklin at goodyear.com
Fri Oct 23 13:42:54 EDT 2015


So,

Case A:
1.  I set the Output Type on the Properties panel to be vtkUnstructured Grid
2.  I keep the  "output=..."  in my script
3.  My script runs and I get my mesh and the 1 Cell Variable which I have populated

Case B:
1.  I set the Output Type on the Properties panel to be vtkUnstructured Grid
2.  I comment out the output= in my script
3.  Paraview dies with a segmentation error while whining about SetPoints

Dennis

-----Original Message-----
From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] 
Sent: Friday, October 23, 2015 1:35 PM
To: Dennis Conklin <dennis_conklin at goodyear.com>
Cc: Paraview (paraview at paraview.org) <paraview at paraview.org>
Subject: Re: [EXT] Re: [Paraview] Stupid question on Programmable Source

Dennis,

> In my routine if I:
> 1.  Do not declare any output (just accept the predefined output, which is set to vtkUnstructuredGrd).   Then your print statements work but my program kills Paraview with a segmentation fault

I always change the output type using the Output Type property on the Properties panel for the Programmable source. Then the "output" is indeed the type I expect it to be.


> 2.  If I declare an output with:
> output=self.GetUnstructuredGridOutput()
> Then my program succeeds and I get my mesh (just not many cell variables yet as I haven't figured out how to do that 97 times efficiently).  If I turn on your print statements it complains that there is no CellData available.

You don't need do this at all, I am sure this working only when the "Output Type" is set properly on the Properties panel. Just use the output variable provided to you in the Programamble Filters environment (similar to inputs, self, etc). In otherwords, if your script, just remove the output = self.... line :).


More information about the ParaView mailing list