Here&#39;s how I got the coprocessing library to work with offscreen rendering:<br>1) build paraview server with qt client turned off<br>2) use osmesa -- replacing opengl lib and dir locations with proper osmesa ones<br>3) set use offscreen rendering (I left VTK_USE_X on since I have problems when I set it to off)<br>

4) in your coprocessing python script add in:<br>import paraview.servermanager as sm<br>options = sm.vtkPVOptions()<br>options.SetUseOffscreenRendering(1)<br><br>There may be a better way to do this but this at least worked for me.<br>

<br>Andy<br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 11:39 AM, Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br><br><div class="gmail_quote"><div>On Thu, Aug 19, 2010 at 11:23 AM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Andy,<br><br>1 : Here are he files<br></blockquote></div><div><br>Somehow Utkarsh&#39;s change to servermanager.py didn&#39;t make it into your build servermanager.py.  The change is:<br>@@ -796,6 +796,10 @@ class ArraySelectionProperty(VectorProperty):<br>


         elif len(values) == 2:<br>             if isinstance(values[0], str):<br>                 val = str(ASSOCIATIONS[values[0]])<br>+            else:<br>+                # In case user didn&#39;t specify valid association,<br>


+                # just pick POINTS.<br>+                val = str(ASSOCIATIONS[&#39;POINTS&#39;])<div><br>             self.SMProperty.SetElement(3,  str(val))<br></div>             self.SMProperty.SetElement(4, values[1])<br>

         else:<br>
<br>Try rebuilding and if you don&#39;t see those changes in your build servermanager.py file, do a clean build.<br><br><br></div><div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<br>2 : Thanks ! I do need this to work, so I can run on a cluster without any graphics card. I haven&#39;t tried the patch Adriano sent earlier yet.<br><br>3 : How do you want me to set this up for you ? If you are using the Phasta code then if you just replace the Hex input by Poly input then you should get the same problem ? <br>


</blockquote></div><div><br>Do something similar to the example I put up on the coprocessing wiki.  Use the multiblock reader to load the grid and let me know how many processes you use when you see the problem.<br><br> <br>

</div><div><div></div><div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>Thanks again,<br>Jacques<br><br><div class="gmail_quote">2010/8/17 Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span><div><div></div><div>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For 1:  Can you send me your Utilities/VTKPythonWrapping/paraview/servermanager.py in the PV source as well as the Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py file in your PV build?  <br><br>For 2: I&#39;ll take a look at that since I have to do the same thing on a remote machine I&#39;ll be working on.<br>




<br>For 3: No idea why.  If you can set up a simple problem I can take a look at it.<br><font color="#888888"><br>Andy</font><div><div></div><div><br><br><div class="gmail_quote">On Tue, Aug 17, 2010 at 10:06 AM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All, <br><br>Although I&#39;ve got the coprocessing to work somehow, I still have a couple of problems :<br>




<br>-&gt; I have pulled from git yesterday.<br><br>1. None inside the python scripts generated by the plugin throws up some issues :<br>
<br>Traceback (most recent call last):<br>  File &quot;&lt;string&gt;&quot;, line 2, in &lt;module&gt;<br>  File &quot;/users/boreas01/jacques/TESTING/A6_saloon_50k/pvCopro.py&quot;, line 138, in DoCoProcessing<br>    DataRepresentation1.SelectOrientationVectors = [None, &#39;&#39;]<br>





  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 207, in __setattr__<br>    setter(self, value)<br>  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 2367, in setProperty<br>





    return self.GetPropertyValue(propName)<br>  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 256, in SetPropertyWithName<br>    def SetPropertyWithName(self, pname, arg):<br>





  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 799, in SetData<br>    if len(values) == 1:<br>UnboundLocalError: local variable &#39;val&#39; referenced before assignment<br>





<br><br>2. When Compiling with MESA, and switching offscreen rendering ON I get problems at runtime when coprocessing (I have no problems saving screenshots directly from within paraview) :<br><br><br>--- Some of my CMAKE settings :<br>





//Path to a file.<br>OPENGL_INCLUDE_DIR:PATH=/usr/include<br><br>//Path to a library.<br>OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so<br><br>//Path to a library.<br>OPENGL_glu_LIBRARY:FILEPATH=/usr/lib64/libGLU.so<br><br>





//Path to a file.<br>OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/include<br><br>//Path to a file.<br>OSMESA_INCLUDE_DIR:PATH=/usr/include<br><br>//Path to a library.<br>OSMESA_LIBRARY:FILEPATH=/usr/lib64/libOSMesa.so<br><br>----- RunTime error message ---- <br>





<br><br>#0  Foam::error::printStack(Foam::Ostream&amp;) in &quot;/users/boreas01/jacques/FOAMpro-1.6-dev/FOAM-dev/lib/linux64GccDPOpt/libFOAM.so&quot;<br>#1  Foam::sigSegv::sigSegvHandler(int) in &quot;/users/boreas01/jacques/FOAMpro-1.6-dev/FOAM-dev/lib/linux64GccDPOpt/libFOAM.so&quot;<br>





#2  ?? in &quot;/lib64/libc.so.6&quot;<br>#3  __rawmemchr in &quot;/lib64/libc.so.6&quot;<br>#4  ?? in &quot;/lib64/libc.so.6&quot;<br>#5  vsscanf in &quot;/lib64/libc.so.6&quot;<br>#6  _IO_sscanf in &quot;/lib64/libc.so.6&quot;<br>





#7  vtkOpenGLExtensionManager::ReadOpenGLExtensions() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>#8  vtkOpenGLExtensionManager::Update() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>





#9  vtkOpenGLExtensionManager::ExtensionSupported(char const*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>#10  vtkOpenGLRenderWindow::OpenGLInit() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>





#11  vtkXOpenGLRenderWindow::Start() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>#12  vtkRenderWindow::DoStereoRender() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>





#13  vtkRenderWindow::DoFDRender() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>#14  vtkRenderWindow::DoAARender() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>





#15  vtkRenderWindow::Render() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>#16  vtkXOpenGLRenderWindow::Render() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9&quot;<br>





#17  vtkXOpenGLRenderWindowCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&amp;, vtkClientServerStream&amp;) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRenderingCS.so&quot;<br>





#18  vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream const&amp;, int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkClientServer.so&quot;<br>#19  vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&amp;, int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkClientServer.so&quot;<br>





#20  vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&amp;) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkClientServer.so&quot;<br>#21  vtkSelfConnection::ProcessStreamLocally(vtkClientServerStream&amp;) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>





#22  vtkMPISelfConnection::SendStreamToDataServerRoot(vtkClientServerStream&amp;) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>#23  vtkProcessModuleConnection::SendStream(unsigned int, vtkClientServerStream&amp;) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>





#24  vtkProcessModuleConnectionManager::SendStream(long long, unsigned int, vtkClientServerStream&amp;, int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>#25  vtkProcessModule::SendStream(long long, unsigned int, vtkClientServerStream&amp;, int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>





#26  vtkSMRenderViewProxy::PerformRender() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>#27  vtkSMViewProxy::StillRender() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>





#28  vtkSMRenderViewProxy::CaptureWindow(int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>#29  vtkSMRenderViewProxy::WriteImage(char const*, char const*, int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>





#30  ?? at vtkSMRenderViewProxyPython.cxx:0<br>#31  vtkPythonUtil::CallOverloadedMethod(PyMethodDef*, _object*, _object*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPythonCore.so.pv3.9&quot;<br>#32  PyObject_Call in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>





#33  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#34  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#35  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#36  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>





#37  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#38  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#39  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#40  PyEval_EvalCode in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>





#41  ?? in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#42  PyRun_StringFlags in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#43  PyRun_SimpleStringFlags in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#44  vtkPVPythonInterpretor::RunSimpleString(char const*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVPythonInterpretor.so&quot;<br>





#45  vtkCPPythonScriptPipeline::CoProcess(vtkCPDataDescription*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so&quot;<br>#46  vtkCPProcessor::CoProcess(vtkCPDataDescription*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so&quot;<br>





<br><br>When compiling without MESA and OFFSCREEN then it works fine but I get an annoying window that pops up all the time...<br><br>3. I am able to use the Parallel Multi Block Data Set Writer, on a very simple hex mesh. But when I use it on a more complex mesh (including POLYHEDRA cells) I get the following error :<br>





<br>When opening the file in paraview :<br><br>

<table style="margin: 4px;">
<tbody><tr>
<td style="border: medium none;">
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">ERROR: In /users/boreas01/jacques/PARAVIEW/ParaView/VTK/IO/vtkXMLParser.cxx, line 483</span></p>






<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">vtkXMLDataParser (0x18aa700): Error parsing XML in stream at line 1, column 7, byte index 7: not well-formed (invalid token)</span></p>






<p style="margin: 0px; text-indent: 0px; font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px; font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">ERROR: In /users/boreas01/jacques/PARAVIEW/ParaView/VTK/IO/vtkXMLReader.cxx, line 362</span></p>






<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">vtkXMLUnstructuredGridReader (0x18cbbc0): Error parsing input file.  ReadXMLInformation aborting.</span></p>






<p style="margin: 0px; text-indent: 0px; font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px; font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);"></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">ERROR: In /users/boreas01/jacques/PARAVIEW/ParaView/VTK/Filtering/vtkExecutive.cxx, line 756</span></p>






<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">vtkStreamingDemandDrivenPipeline (0xdadf60): Algorithm vtkXMLUnstructuredGridReader(0x18cbbc0) returned failure for request: vtkInformation (0x127b170)</span></p>






<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">  Debug: Off</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">  Modified Time: 80976</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">  Reference Count: 1</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">  Registered Events: (none)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">  Request: REQUEST_INFORMATION</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">  ALGORITHM_AFTER_FORWARD: 1</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);">  FORWARD_DIRECTION: 0</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: &#39;Courier&#39;; font-size: 10pt; color: rgb(128, 0, 0);"></p></td></tr></tbody></table><br><br>When running the coprocessor  I do not get any error message. And I am still able to ouput png screenshots (when not using OFFSCREEN)... Is there an incompatibility between the writers and the polyhedra cell type ? Or is it possible that somewhere I am not filling in the cells / points properly ? <br>





<br>Best, <br>Jacques<br><br><br><br><br><br><div class="gmail_quote">2010/8/16 pat marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





cc&#39;ing the list.<br><font color="#888888"><br>Pat</font><div><div></div><div><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Jacques Papper</b> <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span><br>






Date: Mon, Aug 16, 2010 at 1:55 PM<br>Subject: Re: [Paraview] CoProcessing<br>To: pat marion &lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;<br><br><br>Once again... My mistake .. I&#39;m not used to submodules ! <br>






<br><div class="gmail_quote">2010/8/16 Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span><div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, I just pulled my git.. <br><br>CMake Error in Utilities/VTKClientServer/Wrapping/CMakeLists.txt:<br>







  Cannot find source file &quot;vtkParsePreprocess.c&quot;.  Tried extensions .c .C<br>  .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>
<br>I tried to configure and generate cmake but I get the same error when generating... <br><br>Should I start from a clean cmake cache ? <br><br>Jacques<br><br><div class="gmail_quote">2010/8/16 pat marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;</span><div>







<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If you can&#39;t upgrade your paraview version you could try hand applying the patch to /users/boreas01/jacques/<div>








<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py</blockquote></div><div><br>The patch:<br><br><a href="http://paraview.org/gitweb?p=ParaView.git;a=commitdiff;h=23027770320168c3f7877c6e4150d5ca834f3b9b" target="_blank">http://paraview.org/gitweb?p=ParaView.git;a=commitdiff;h=23027770320168c3f7877c6e4150d5ca834f3b9b</a> <br>









</div><br>Pat<div><div></div><div><br><br><div class="gmail_quote">On Mon, Aug 16, 2010 at 11:01 AM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>








<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, <br><br>I&#39;m sorry I was just rerunning to reproduce the error, and did not realize I missed changing my input back to input.foam instead of toto.foam .... <br><br>Here is the actual error message :<br><br>Traceback (most recent call last):<br>










  File &quot;&lt;string&gt;&quot;, line 2, in &lt;module&gt;<br>  File &quot;/users/boreas01/jacques/TESTING/A6_saloon_50k/pvCopro.py&quot;, line 138, in DoCoProcessing<br>    DataRepresentation1.SelectOrientationVectors = [None, &#39;&#39;]<br>










  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 207, in __setattr__<br>    setter(self, value)<br>  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 2367, in setProperty<br>










    return self.SetPropertyWithName(propName, value)<br>  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 256, in SetPropertyWithName<br>










    prop.SetData(arg)<br>  File &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 799, in SetData<br>    self.SMProperty.SetElement(3,  str(val))<br>










UnboundLocalError: local variable &#39;val&#39; referenced before assignment<br><br><br>Jacques<br><br><div class="gmail_quote">2010/8/16 Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span><div>









<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The other thing is that there was a problem when outputting images from coprocessing.  Try updating to commit 2302777 to see if that&#39;s it.  <br>










<font color="#888888"><br>Andy</font><div><div></div><div><br><br><div class="gmail_quote">On Mon, Aug 16, 2010 at 9:07 AM, pat marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;</span> wrote:<br>











<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jacques,<br><br>That error message seems to be unrelated to the lines containing &#39;None&#39; that you copied in a previous email.  It looks to me like your code that calls the coprocessor is not inserting the vtk data set under the name &#39;test.foam&#39;.  In the calling code you need something like:<br>












<br>dataDesc-&gt;AddInput(&quot;test.foam&quot;)<br>dataDesc-&gt;GetInputDescriptionByName(&quot;test.foam&quot;)-&gt;SetGrid(dataObject);<br><font color="#888888"><br>Pat</font><div><div></div><div><br><br><div class="gmail_quote">











On Mon, Aug 16, 2010 at 8:35 AM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Pat, <br><br>This is what shows up for me :<br><br>    datadescription.GetInputDescriptionByName(input_name).AllFieldsOff()<br>












AttributeError: &#39;NoneType&#39; object has no attribute &#39;AllFieldsOff&#39;<br><br><br>
Inside the Python script :<br><br>def RequestDataDescription(datadescription):<br>    &quot;Callback to populate the request for current timestep&quot;<br>    timestep = datadescription.GetTimeStep()<br><br><br>    input_name = &#39;test.foam&#39;<br>













    if (timestep % 0.0004 == 0) :<br>        datadescription.GetInputDescriptionByName(input_name).AllFieldsOn()<br>        datadescription.GetInputDescriptionByName(input_name).GenerateMeshOn()<br>    else:<br>        datadescription.GetInputDescriptionByName(input_name).AllFieldsOff()<br>













        datadescription.GetInputDescriptionByName(input_name).GenerateMeshOff()<br><br><br>Best,<br><br><br>Jacques<br><br><br><div class="gmail_quote">2010/8/13 pat marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;</span><div>












<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jacques,<br><br>My python trace files have similar lines, and I am able to run them without error.  I&#39;ve only just tested with latest git master, not 3.8.  Can you copy the specific error message you&#39;re getting so I can take a look?<br>













<font color="#888888">
<br>Pat</font><div><div></div><div><br><br><div class="gmail_quote">On Fri, Aug 13, 2010 at 6:20 PM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>













<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
   Sorry I meant None... not Null :<br> <br>For example :<br><br><br>    DataRepresentation1.SelectOrientationVectors = [None, &#39;&#39;]<br>    DataRepresentation1.SelectedMapperIndex = &#39;Projected tetra&#39;<br>    DataRepresentation1.CubeAxesTickLocation = &#39;Inside&#39;<br>















    DataRepresentation1.CubeAxesXAxisMinorTickVisibility = 1<br>    DataRepresentation1.CubeAxesYAxisVisibility = 1<br>    DataRepresentation1.SelectionPointLabelFontFamily = &#39;Arial&#39;<br>    DataRepresentation1.Source.ShaftResolution = 6<br>















    DataRepresentation1.CubeAxesFlyMode = &#39;Closest Triad&#39;<br>    DataRepresentation1.SelectScaleArray = [None, &#39;&#39;]<br><br><br><div class="gmail_quote">2010/8/13 Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span><div>














<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote"><div>On Fri, Aug 13, 2010 at 3:39 AM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>















<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I found the problem... I was inserting PointData instead of CellData :) ,,,<br>Anyway it seems to be starting to work now.. 2 things though :<br><br>-&gt; Whenever I try to run directly a python script exported from paraview (Through the Coprocessing export state) it won&#39;t run until I remove all references to LIC and all lines containing Null...<br>

















<br></blockquote></div><div>Now that you mention it, I didn&#39;t put in anything special for plugins.  Setting the plugins to auto-load may work but my guess is that it won&#39;t.  I&#39;ll look into the plugin thing and the best way to do it in the script generator.<br>
















<br>What do you mean by Null?  I don&#39;t know what that is so you&#39;ll have to explain it to me.<br><br> </div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
















For the LIC, is it because the python script doesn&#39;t automatically load the LIC plugin ? <br>For the Null, do you have this problem as well ?<br><br>-&gt; Is the Live Source Data code already available in git ? I&#39;d love to test it out even if it is not robust yet. <br>
















</blockquote></div><div><br>We don&#39;t yet have permission to release the Live Source Data code yet but I think it should be available in the next couple of months. <br></div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

















<br>Best, <br>Jacques<br><br><br><div class="gmail_quote">2010/8/12 Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


















You probably want to add the field data to the specific grids in the multiblock data set and not just the block itself.  As an example:<br><br>create multiblock<br>for each grid:<br>  create grid points and cells<br>  add point and cell data to grid<br>



















  add grid to block<br><br>Note that in parallel for coprocessing that the block must have the same structure on each process but whether a leaf node is empty or not can change.  For example:<br><br>proc 0 mutliblock:<br>



















  block 0 -&gt; unstructured grid<br>  block 1 -&gt; uniform grid<br>  block 2 -&gt; NULL<br>proc 1 multiblock:<br>  block 0 -&gt; NULL<br>
  block 1 -&gt; NULL<br>
  block 2 -&gt; unstructured grid<br>
<br>I&#39;m not sure of all of the details but what I do is that I set a block to only be non-NULL on a single process.<br><br>Hope this helps,<br><font color="#888888">Andy</font><div><div></div><div><br><br>
<div class="gmail_quote">On Thu, Aug 12, 2010 at 2:38 PM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All, <br><br>I am making some more progress on this. Everything was working until I tried adding field data... I now get an explosion :<br>



















<br>#2  ?? in &quot;/lib64/libc.so.6&quot;<br>#3  vtkDataArrayTemplate&lt;double&gt;::ComputeScalarRange(int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCommon.so.pv3.9&quot;<br>
#4  vtkDataArray::ComputeRange(int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCommon.so.pv3.9&quot;<br>#5  vtkPVArrayInformation::CopyFromObject(vtkObject*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>




















#6  vtkPVDataSetAttributesInformation::CopyFromDataSetAttributes(vtkDataSetAttributes*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>#7  vtkPVDataInformation::CopyFromDataSet(vtkDataSet*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>




















#8  vtkPVDataInformation::CopyFromObject(vtkObject*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>#9  vtkPVCompositeDataInformation::CopyFromObject(vtkObject*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>




















#10  vtkPVDataInformation::CopyFromCompositeDataSet(vtkCompositeDataSet*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>#11  vtkPVDataInformation::CopyFromObject(vtkObject*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>




















#12  vtkSelfConnection::GatherInformation(unsigned int, vtkPVInformation*, vtkClientServerID) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>#13  vtkSynchronousMPISelfConnection::GatherInformation(unsigned int, vtkPVInformation*, vtkClientServerID) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so&quot;<br>




















#14  vtkSMOutputPort::GatherDataInformation() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>#15  vtkSMOutputPort::GetDataInformation() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>




















#16  vtkSMDataTypeDomain::IsInDomain(vtkSMSourceProxy*, int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>#17  vtkSMDataTypeDomain::IsInDomain(vtkSMProperty*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>




















#18  vtkSMProperty::IsInDomains() in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>#19  vtkSMRenderViewProxy::CreateDefaultRepresentation(vtkSMProxy*, int) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so&quot;<br>




















#20  ?? at vtkSMRenderViewProxyPython.cxx:0<br>#21  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#22  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#23  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>




















#24  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#25  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#26  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#27  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>




















#28  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#29  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#30  PyEval_EvalFrameEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#31  PyEval_EvalCodeEx in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>




















#32  PyEval_EvalCode in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#33  ?? in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#34  PyRun_StringFlags in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>#35  PyRun_SimpleStringFlags in &quot;/usr/lib64/libpython2.6.so.1.0&quot;<br>




















#36  vtkPVPythonInterpretor::RunSimpleString(char const*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVPythonInterpretor.so&quot;<br>#37  vtkCPPythonScriptPipeline::CoProcess(vtkCPDataDescription*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so&quot;<br>




















#38  vtkCPProcessor::CoProcess(vtkCPDataDescription*) in &quot;/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so&quot;<br><br>Any ideas where this can be coming from ?<br>When I do not add the field data it just complains about missing fields so I know that the code is not completely wrong...<br>




















I am adding the data to the first block of my multiblockdataset... Is that a problem ? <br><br><br><br>Thanks ! <br>Jacques<br><br><br><div class="gmail_quote">2010/8/12 Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span><div>



















<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Andy, Pat,<br><br>I have the skeleton of the coprocessing working (for the moment I just tried by populating the point field - no cells, no data).<br>




















I am trying to figure out the most efficient way of transferring my data structure to VTK with minimal copying and looping... <br>
I would like to use the vtkUnstructuredGrid::SetCells() method, which means I probably need to use the vtkCellArray::SetCells() method, and therefore the vtkIdType::SetArray() method... <br>The problem is I am not sure what the format of the array should be ?<br>





















I am dealing with unstructured polyhedra cells (most of which are known types like hex prism etc..). <br><br>Of course, I could also use the InsertNextCell() methods, but I was wondering if there wasn&#39;t a more efficient way... <br>





















<br>Best,<br>Jacques<br><br><br><div class="gmail_quote">2010/8/9 Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span><div><div></div><div>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jacques,<br><br>I put an example on the wiki based on Pat&#39;s example for running a coprocessing.  It&#39;s at:<br><a href="http://paraview.org/Wiki/Coprocessing_example#Python_Scripts" target="_blank">http://paraview.org/Wiki/Coprocessing_example#Python_Scripts</a><br>























Let me know if you have any problems with it so that I can fix any errors that I have.<br><br>Also, I just made changes so that the coprocessing library gets installed properly.<br><br>Thanks,<br><font color="#888888">Andy</font><div>





















<div></div><div><br><br><div class="gmail_quote">
On Wed, Aug 4, 2010 at 7:21 PM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks Pat, <br><br>I am trying to compile my first attempt.<br>Although I do find the headers I need, I am having some trouble identifying which libraries I need to link to. <br>























For example, I assume that I should be linking to libvtkCoProcessor.so ... Although I find this library in the compilation folder (under bin), I do not find it in the make installed version under lib... <br>
Is this normal ? <br><br>Best, <br>Jacques<br><br><div class="gmail_quote">2010/8/4 pat marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;</span><div><div></div>























<div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Below is a simple cxx program I have used for testing.  It creates one sphere per process, positions the sphere as a function of the process id, and the spheres grow/shrink over time.<br><br>Pat<br><br>#include &quot;vtkCPProcessor.h&quot;<br>

























#include &quot;vtkCPPythonScriptPipeline.h&quot;<br>#include &quot;vtkMultiProcessController.h&quot;<br>#include &quot;vtkXMLUnstructuredGridReader.h&quot;<br>#include &quot;vtkUnstructuredGrid.h&quot;<br>#include &quot;vtkCPDataDescription.h&quot;<br>

























#include &quot;vtkCPInputDataDescription.h&quot;<br>#include &quot;vtkSmartPointer.h&quot;<br>#include &quot;vtkPolyData.h&quot;<br>#include &quot;vtkSphereSource.h&quot;<br><br>#include &lt;stdio.h&gt;<br>#include &lt;string&gt;<br>

























#include &lt;sstream&gt;<br><br>static unsigned int procId;<br><br>void myprint(const std::string&amp; str)<br>{<br>  printf(&quot;driver (%u): %s\n&quot;, procId, str.c_str());<br>}<br><br>class DataGenerator {<br>public:<br>

























<br>  DataGenerator()<br>    {<br>    this-&gt;Sphere = vtkSmartPointer&lt;vtkSphereSource&gt;::New();<br>    this-&gt;Sphere-&gt;SetThetaResolution(30);<br>    this-&gt;Sphere-&gt;SetPhiResolution(30);<br>    this-&gt;Sphere-&gt;SetCenter(procId*4.0, 0, 0);<br>

























    this-&gt;Index = 0;<br>    }<br><br>  vtkSmartPointer&lt;vtkPolyData&gt; GetNext()<br>    {<br>    double radius = fabs(sin(0.1 * this-&gt;Index));<br>    this-&gt;Index++;<br>    this-&gt;Sphere-&gt;SetRadius(1.0 + radius);<br>

























    this-&gt;Sphere-&gt;Update();<br>    vtkSmartPointer&lt;vtkPolyData&gt; ret = vtkSmartPointer&lt;vtkPolyData&gt;::New();<br>    ret-&gt;DeepCopy(this-&gt;Sphere-&gt;GetOutput());<br>    return ret;<br>    }<br><br>protected:<br>

























<br>  int Index;<br>  vtkSmartPointer&lt;vtkSphereSource&gt; Sphere;<br>  <br><br>};<br><br>int main(int argc, char* argv[])<br>{<br>  if (argc &lt; 3)<br>    {<br>    printf(&quot;Usage: %s &lt;cp python file&gt; &lt;number of steps&gt;\n&quot;, argv[0]);<br>

























    return 1;<br>    }<br><br>  std::string cpPythonFile = argv[1];<br>  int nSteps = atoi(argv[2]);<br><br>  myprint(&quot;starting coprocessor&quot;);<br><br>  vtkCPProcessor* processor = vtkCPProcessor::New();<br>  processor-&gt;Initialize();<br>

























  vtkCPPythonScriptPipeline* pipeline = vtkCPPythonScriptPipeline::New();<br><br>  // mpi was initialized when we called vtkCPPythonScriptPipeline::New()<br>  procId = vtkMultiProcessController::GetGlobalController()-&gt;GetLocalProcessId();<br>

























<br><br>  // read the coprocessing python file<br>  myprint(&quot;loading pipeline python file: &quot; + cpPythonFile);<br>  int success = pipeline-&gt;Initialize(cpPythonFile.c_str());<br>  if (!success)<br>    {<br>    myprint(&quot;aborting&quot;);<br>

























    return 1;<br>    }<br><br>  processor-&gt;AddPipeline(pipeline);<br>  pipeline-&gt;Delete();<br><br>  if (nSteps == 0)<br>    {<br>    return 0;<br>    }<br><br>  // create a data source<br>  DataGenerator generator;<br>

























<br>  // do coprocessing<br>  double tStart = 0.0;<br>  double tEnd = 1.0;<br>  double stepSize = (tEnd - tStart)/nSteps;<br><br>  vtkCPDataDescription* dataDesc = vtkCPDataDescription::New();<br>  dataDesc-&gt;AddInput(&quot;input&quot;);<br>

























<br>  for (int i = 0; i &lt; nSteps; ++i)<br>    {<br><br>    double currentTime = tStart + stepSize*i;<br>    std::stringstream timeStr;<br>    timeStr &lt;&lt; &quot;time(&quot; &lt;&lt; i &lt;&lt; &quot;, &quot; &lt;&lt; currentTime &lt;&lt; &quot;)&quot;;<br>

























<br><br>    dataDesc-&gt;SetTimeData(currentTime, i);<br><br>    myprint(&quot;call RequestDataDescription, &quot; + timeStr.str());<br>    int do_coprocessing = processor-&gt;RequestDataDescription(dataDesc);<br><br>    if (do_coprocessing)<br>

























      {<br>      myprint(&quot;calling CoProcess, &quot; + timeStr.str());<br><br>      vtkSmartPointer&lt;vtkDataObject&gt; dataObject =<br>        generator.GetNext();<br><br>      dataDesc-&gt;GetInputDescriptionByName(&quot;input&quot;)-&gt;SetGrid(dataObject);<br>

























      processor-&gt;CoProcess(dataDesc);<br>      }<br>    }<br><br><br>  myprint(&quot;finalizing&quot;);<br>  dataDesc-&gt;Delete();<br>  processor-&gt;Finalize();<br>  processor-&gt;Delete();<br><br>  return 0;<div><div>
























</div><div><br>}<br>
<br><br><br><div class="gmail_quote">On Wed, Aug 4, 2010 at 12:14 PM, Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

























Hi Jacques,<br><br>There is a polyhedra cell type in VTK now -- <a href="http://www.vtk.org/doc/nightly/html/classvtkPolyhedron.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkPolyhedron.html</a><br>As far as I know it works with all of the proper filters but since I haven&#39;t tried it yet I won&#39;t promise that.  The good news is that Will Schroeder had a high interest in it and probably worked on some of it so I&#39;d assume that it&#39;s working quite well right now.<br>


























<br>As for Phasta, it does run in parallel (as props to their developers it was a finalist for the 2009 Gordon Bell prize).  The grid is already partitioned and each process runs the adaptor and creates an unstructured grid from its portion of the partitioned mesh.  Thus, there isn&#39;t any need for mpi calls in the adaptor code.  If you had ghost cell information in your partitioned mesh and wanted to get fancy you should be able to add that to your partitioned grid to make some of the filters faster but I haven&#39;t tried that.<br>

























<font color="#888888">
<br>Andy</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Aug 4, 2010 at 11:58 AM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br>

























<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks a lot Andy, Takuya,<br><br>I&#39;m using the PhastaAdaptor, and the FortranAdaptorAPI as a guide for the moment. <br>I know there were talks of getting POLYHEDRAL cell support in VTK. Do you know if this is there yet?<br>



























My dataset is multiregion unstructured polyhedral mesh domain decomposed amongst each processor. <br><br>Is the Phasta code parallelized ? If so, I do not see any MPI statements in the adaptor code ?<br><br>Jacques<br><br>



























<div class="gmail_quote">2010/8/4 Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



























Hi Jacques,<br><br>What type of data set do you have?  Even though the PHASTA adaptor ( ParaView/CoProcessing/Adaptors/FortranAdaptors/PhastaAdaptor) is for fortran code it may give you an idea.  Also stepping through the example in ParaView/CoProcessing/CoProcessor/Testing/Cxx/PythonScriptCoProcessingExample.cxx may help as well.<br>




























<br>I&#39;ll spend some time this week putting up a skeleton of a simulation code on the coprocessing wiki that should hopefully be easier to follow.  I&#39;ll let you know when it&#39;s done.<br><font color="#888888"><br>



























Andy<br><br></font><div class="gmail_quote"><div><div></div><div>
On Wed, Aug 4, 2010 at 8:02 AM, Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



























<div><div></div><div>
Hi All,<br><br>Sorry for my last post, I figured out that I had wrongly set my PYTHONPATH.. <br>All the tests work ok now. Still interested in CoProcessing adaptors examples though :) <br><br>Thanks <br>Jacques<br><br><div class="gmail_quote">





























2010/8/4 Jacques Papper <span dir="ltr">&lt;<a href="mailto:jacques.papper@gmail.com" target="_blank">jacques.papper@gmail.com</a>&gt;</span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





























<br><div class="gmail_quote">Hi All, <br><br>I&#39;m starting to look into the ParaView CoProcessing libraries. <br>I just pulled from git today, and compiled it all up following the guidelines in :<br><a href="http://www.paraview.org/Wiki/CoProcessing" target="_blank">http://www.paraview.org/Wiki/CoProcessing</a><br>































I didn&#39;t find :<br><b>BUILD_PYTHON_COPROCESSING_ADAPTOR<br></b>but instead :<br>PARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator<br>anyway the compilation went through without any issues.<br>I then tried :<br><br>ctest -R CoProcessing<br>































Test project /users/boreas01/jacques/PARAVIEW/ParaView-bin<br>    Start 491: CoProcessingTestPythonScript<br>1/3 Test #491: CoProcessingTestPythonScript ...........   Passed    0.45 sec<br>    Start 492: CoProcessingPythonScriptGridPlot<br>































2/3 Test #492: CoProcessingPythonScriptGridPlot .......***Failed    0.09 sec<br>    Start 493: CoProcessingPythonScriptPressurePlot<br>3/3 Test #493: CoProcessingPythonScriptPressurePlot ...***Failed    0.09 sec<br><br>33% tests passed, 2 tests failed out of 3<br>































<br>Total Test time (real) =   0.68 sec<br><br>The following tests FAILED:<br>        492 - CoProcessingPythonScriptGridPlot (Failed)<br>        493 - CoProcessingPythonScriptPressurePlot (Failed)<br>Errors while running CTest<br>































<br>Is this a problem in my current installation or on the master branch ? <br><br>Finally, I would like to start writing an adaptor to a C++ parallelised code. Can you tell me what is the closest code I can inspire myself from ? <br>































<br><br>Thank you, <br><font color="#888888"><font color="#888888">Jacques<br>
</font></font></div><br><br>PS sorry mixed up the subjects.. <br>
</blockquote></div></div></div><br>
<br></div></div><div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></div></blockquote></div><br>
</blockquote></div></div></div><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</blockquote></div></div></div><br>
</blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div></div></div><br>
</div><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div></div></div><br>
</blockquote></div><br>