You need to set the PARAVIEW_DATA_ROOT value in your paraview configuration.  The information is in the previous email on where to download ParaViewData which is what you need to set PARAVIEW_DATA_ROOT to.  That will enable checking the results of the coprocessing tests.  The 2 tests which run essentially just checked that it was able to do coprocessing without crashing but didn&#39;t check the results (i.e. the images) to see if they are correct.  It needs the baseline images from ParaViewData in order to do that.<br>

<br>Andy<br><br><div class="gmail_quote">On Wed, Dec 7, 2011 at 3:39 PM, peacemaker <span dir="ltr">&lt;<a href="mailto:peacemaker1@web.de" target="_blank">peacemaker1@web.de</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">

<u></u>



<div style="padding-left:10px;padding-right:10px;padding-top:15px" name="Compose message area">
<div><font face="Arial" size="2">Hi Andy,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">thanks for the quick answer. I&#39;ve downloaded 
Paraview from: <a title="http://www.paraview.org/files/v3.12/ParaView-3.12.0.tar.gz
STRG + Klicken, um Verknüpfung zu folgen" href="http://www.paraview.org/files/v3.12/ParaView-3.12.0.tar.gz" target="_blank">http://www.paraview.org/files/v3.12/ParaView-3.12.0.tar.gz</a> and 
compiled it with coprocessing. When I run <font face="Times New Roman" size="3">&quot;ctest -V -R CoProcessing&quot;<font face="Arial" size="2"> in my 
Paraview-bin directory there seem to be just 2 Tests running and I get the 
following output:</font></font></font></div>
<div><font face="Arial" size="2"><a href="mailto:orschews@Lap:%7E/projects/ParaView-bin$" target="_blank">orschews@Lap:~/projects/ParaView-bin$</a> 
ctest -V -R CoProcessing<br>UpdateCTestConfiguration  from 
:/home/orschews/projects/ParaView-bin/DartConfiguration.tcl<br>Parse Config 
file:/home/orschews/projects/ParaView-bin/DartConfiguration.tcl<br> Add 
coverage exclude regular expressions.<br> Add coverage exclude: 
Common.KWCommon.*<br> Add coverage exclude: vtk.*CSInit.cxx<br> Add 
coverage exclude: vtkKWParaViewInit.cxx<br> Add coverage exclude: 
vtk[^\.]+ClientServer.cxx<br> Add coverage exclude: 
vtk[^\.]+Python.cxx<br> Add coverage exclude: vtkSNL<br> Add coverage 
exclude: GUI/Widgets<br> Add coverage exclude: moc_[^\.]+.cxx<br> Add 
coverage exclude: ui_[^\.]+.h<br> Add coverage exclude: 
qrc_[^\.]+.cxx<br> Add coverage exclude: 
Utilities.Xdmf2.libsrc.*<br> Add coverage exclude: 
Utilities.VisItBridge.avt<br> Add coverage exclude: 
Utilities.VisItBridge.CMake<br> Add coverage exclude: 
Utilities.VisItBridge.common<br> Add coverage exclude: 
Utilities.VisItBridge.databases<br> Add coverage exclude: 
Utilities.VisItBridge.include<br> Add coverage exclude: 
Utilities.VisItBridge.visit_vtk<br> Add coverage exclude: 
Utilities.protobuf<br> Add coverage exclude: vtk.*TCLInit.cxx<br> Add 
coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx<br> Add coverage exclude: 
Utilities.kwsys<br> Add coverage exclude: Utilities.vtksys<br> Add 
coverage exclude: Utilities.vtkmetaio<br> Add coverage exclude: 
Utilities.vtklibproj4<br> Add coverage exclude: 
Utilities.vtkalglib<br> Add coverage exclude: Utilities.octree<br> Add 
coverage exclude: .*vtkOpenGLState.*<br> Add coverage exclude: 
.*Testing.Cxx.*cxx<br> Add coverage exclude: .*Testing.Cxx.*h<br> Add 
coverage exclude: .*moc_.*cxx<br>UpdateCTestConfiguration  from 
:/home/orschews/projects/ParaView-bin/DartConfiguration.tcl<br>Parse Config 
file:/home/orschews/projects/ParaView-bin/DartConfiguration.tcl<br>Test project 
/home/orschews/projects/ParaView-bin<br>Constructing a list of tests<br>Done 
constructing a list of tests<br>Checking test dependency graph...<br>Checking 
test dependency graph end<br>test 372<br>    Start 372: 
CoProcessingTestPythonScript</font></div>
<div> </div>
<div><font face="Arial" size="2">372: Test command: 
/home/orschews/projects/ParaView-bin/bin/CoProcessingPythonScriptExample 
&quot;/home/orschews/projects/ParaView3/CoProcessing/CoProcessor/Testing/Cxx/PythonScriptTest.py&quot;<br>372: 
Test timeout computed to be: 1500<br>372: Initializing MPI.<br>372: Finished run 
with 0 errors.<br>1/2 Test #372: CoProcessingTestPythonScript 
.......   Passed    7.41 sec<br>test 
373<br>    Start 373: 
PCoProcessingPythonScriptExample</font></div>
<div> </div>
<div><font face="Arial" size="2">373: Test command: /usr/bin/mpiexec &quot;-np&quot; &quot;2&quot; 
&quot;/home/orschews/projects/ParaView-bin/bin/CoProcessingPythonScriptExample&quot; 
&quot;/home/orschews/projects/ParaView3/CoProcessing/CoProcessor/Testing/Cxx/PythonScriptTest2.py&quot;<br>373: 
Test timeout computed to be: 1500<br>373: Initializing MPI.<br>373: Initializing 
MPI.<br>373: Finished run with 0 errors.<br>373: Finished run with 0 
errors.<br>2/2 Test #373: PCoProcessingPythonScriptExample ...   
Passed    1.99 sec</font></div>
<div> </div>
<div><font face="Arial" size="2">The following tests 
passed:<br> CoProcessingTestPythonScript<br> PCoProcessingPythonScriptExample</font></div>
<div> </div>
<div><font face="Arial" size="2">100% tests passed, 0 tests failed out of 
2</font></div>
<div> </div>
<div><font face="Arial" size="2">Total Test time (real) =  11.18 sec<br><a href="mailto:orschews@Lap:%7E/projects/ParaView-bin$" target="_blank">orschews@Lap:~/projects/ParaView-bin$</a> 
</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div> </div>
<div style="font:10pt Tahoma">
<div><font face="Arial"></font><br></div>
<div style="background:none repeat scroll 0% 0% rgb(245,245,245)">
<div><b>From:</b> <a title="mailto:andy.bauer@kitware.com
STRG + Klicken, um Verknüpfung zu folgen" href="mailto:andy.bauer@kitware.com" target="_blank">Andy Bauer</a> </div>
<div><b>Sent:</b> Tuesday, December 06, 2011 8:53 PM</div>
<div><b>To:</b> <a title="mailto:peacemaker1@web.de
STRG + Klicken, um Verknüpfung zu folgen" href="mailto:peacemaker1@web.de" target="_blank">peacemaker</a> </div>
<div><b>Cc:</b> <a title="mailto:paraview@paraview.org
STRG + Klicken, um Verknüpfung zu folgen" href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a> </div>
<div><b>Subject:</b> Re: [Paraview] PythonScriptCoProcessingExample mpirun 
Problem</div></div></div>
<div><br></div>Hi Marek,<br><br>I&#39;m a bit confused.  Where are you getting 
your CoProcessing executable from?  If I run the coprocessing library tests 
I don&#39;t see any failures on my machine and they&#39;re running in parallel.  
Could you send me the results of doing &quot;ctest -V -R CoProcessing&quot; on your 
machine?  There should be 6 tests that run.  The 
PCoProcessingPythonScriptExampleOne tests the coprocessing tools with a 2 
process run.  You may need to check out ParaViewData (<a title="http://www.paraview.org/paraview/resources/software.html
STRG + Klicken, um Verknüpfung zu folgen" href="http://www.paraview.org/paraview/resources/software.html" target="_blank">http://www.paraview.org/paraview/resources/software.html</a>) 
and add that option in the cmake configuration.<br><br>Andy<br><br>
<div class="gmail_quote">On Tue, Dec 6, 2011 at 3:31 AM, peacemaker <span dir="ltr">&lt;<a href="mailto:peacemaker1@web.de" target="_blank">peacemaker1@web.de</a>&gt;</span> wrote:<br>
<blockquote style="border-left:1px solid rgb(204,204,204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote"><u></u>
  <div style="padding-left:10px;padding-right:10px;padding-top:15px" name="Compose message area">
  <div><font face="Arial" size="2">Hi,</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">Im trying to run the 
  PythonScriptCoProcessingExample(.cxx) included in ParaView sourcecode - this 
  is my first &quot;getting in touch&quot; with MPI + ParaView (and Coprocessing 
  of course) so maybe it`s just a very simple problem. I already succesfully 
  compiled Paraview with Coprocessing and python (Ubuntu 11.10) and I`m running 
  the source with COPROCESSOR_USE_MPI. </font></div>
  <div><font face="Arial" size="2">When I run it like: </font></div>
  <div><font face="Arial" size="2">mpirun -n 1 ./CoProcessing ./PythonScriptTest.py 
  </font></div>
  <div><font face="Arial" size="2">then I get as result CPGrid0_mpirun1.png and 
  CPPressure0_mpirun1.png - looks good.</font></div>
  <div><font face="Arial" size="2">If I try:</font></div>
  <div><font face="Arial" size="2">mpirun -n 2  ./CoProcessing 
  ./PythonScriptTest.py </font></div>
  <div><font face="Arial" size="2">then I get as result CPGrid0_mpirun2.png and 
  CPPressure0_mpirun2.png - these pictures seem to be incorrect. </font></div>
  <div><font face="Arial" size="2">In vtkPVCustomTestDriver.cxx there are source 
  lines like:</font></div>
  <div><font face="Arial" size="2">...</font></div>
  <div><font face="Arial" size="2">#ifdef COPROCESSOR_USE_MPI<br>  myid = 
  vtkMPICommunicator::GetWorldCommunicator()-&gt;GetLocalProcessId();<br>#endif</font></div>
  <div><font face="Arial" size="2">....</font></div>
  <div><font face="Arial" size="2">gridBuilder-&gt;SetSpacing(spacing);<br>  
  double origin[3] = {myid*49*.2,20,300};</font></div>
  <div><font face="Arial" size="2">.....</font></div>
  <div><font face="Arial" size="2">If I understand it correctly there should be just 
  a shift on the x-axis between the grids? The pictures get more and more messy, 
  when I increase the numer of processes.</font></div>
  <div><font face="Arial" size="2">After little messing around with the pyton-script 
  needed to run this example (see bottom of this Mail) I got the following 
  output when running it with mpirun -n 3: 
  CPPressure0_changedscript_mpirun3.png. The halfs of the 2nd and 3rd grid are 
  missing.</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">What am I doing wrong? Is this example not 
  supposed to be run with MPI? How does Coprocessing merge the data from 
  different processes and how does the picture get built?</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">I already tested this on a different PC with 
  the same result. I hope you can help me.  </font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">Best wishes</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">Marek</font></div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2"></font> </div>
  <div><font face="Arial" size="2">changed Python Script:</font></div>
  <div><font face="Arial" size="2">def DoCoProcessing(datadescription):<br>  
  timestep = datadescription.GetTimeStep()</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  grid = 
  datadescription.GetInputDescriptionByName(&quot;input&quot;).GetGrid()<br>  
  pressure = grid.GetPointData().GetArray(&#39;Pressure&#39;)</font></div>
  <div> </div>
  <div><font face="Arial" size="2">#  print grid</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  
  #grid.GetPointData().SetScalars(pressure)<br>  
  obj.SetOutput(grid)<br>#  print obj</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  # get global range of Pressure<br>  
  di = trivialproducer.GetDataInformation(0)<br>  
  trivialproducer.UpdatePipeline()<br>  di.Update()<br>  pdi = 
  di.GetPointDataInformation()<br>#  print pdi<br>  ai = 
  pdi.GetArrayInformation(&#39;Pressure&#39;)<br>  pressurerange = 
  ai.GetComponentRange(0)</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  contour.Isosurfaces = 
  .5*(pressurerange[0]+pressurerange[1])</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  # now output the results to the screen as 
  well as taking<br>  # a screen shot of the view<br>  #setup a 
  window<br>  #rep = Show(contour)<br>  #ren = Render()</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  #set the background color<br>  
  #ren.Background=[1,1,1]  #white</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  #set image size<br>  #ren.ViewSize = 
  [1000, 1000] #[width, height]</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  #set representation<br>  
  #rep.Representation=&quot;Surface&quot;</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  #save screenshot<br>  
  #gridimagefilename = &#39;CPGrid&#39;+str(timestep) + &#39;.png&#39;<br>  
  #WriteImage(gridimagefilename)</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  rep = Show(trivialproducer)<br>  
  #rep.LookupTable = MakeBlueToRedLT(pressurerange[0], 
  pressurerange[1])<br>  #rep.ColorArrayName = &#39;Pressure&#39;<br>  
  #rep.ColorAttributeType = &#39;POINT_DATA&#39;<br>  #set representation<br>  
  rep.Representation=&quot;Wireframe&quot;<br>  #rep = Show(contour)<br>  #set 
  the background color<br>  ren = Render()<br>  
  ren.Background=[0,0,0]  #white<br>  ren.ViewSize = [1000, 1000] 
  #[width, height]</font></div>
  <div> </div>
  <div><font face="Arial" size="2">  pressureimagefilename = 
  &#39;CPPressure&#39;+str(timestep) + &#39;.png&#39;<br>  
  WriteImage(pressureimagefilename)<br>  return</font></div>
  <div> </div>
  <div><font face="Arial" size="2">def 
  RequestDataDescription(datadescription):<br>  time = 
  datadescription.GetTime()<br>  timestep = 
  datadescription.GetTimeStep()<br>  print timestep<br>  if timestep % 
  20 == 0:<br>    # add in some fields<br>    
  #print &#39;added Pressure and wanting to do coprocessing&#39;<br>    
  datadescription.GetInputDescriptionByName(&quot;input&quot;).AddPointField(&quot;Pressure&quot;)<br>    
  datadescription.GetInputDescriptionByName(&#39;input&#39;).GenerateMeshOn()<br>  
  return</font></div>
  <div> </div>
  <div><font face="Arial" size="2"># the code below is needed to import objects from 
  paraview.simple<br># plus the definition of vtkTrivialProducer into this 
  python script.<br>try: paraview.simple<br>except: from paraview.simple import 
  *</font></div>
  <div> </div>
  <div><font face="Arial" size="2">trivialproducer = TrivialProducer()<br>contour = 
  Contour(Input=trivialproducer)</font></div>
  <div> </div>
  <div><font face="Arial" size="2">obj = 
  trivialproducer.GetClientSideObject()<br></font></div></div><br>_______________________________________________<br>Powered 
  by <a title="http://www.kitware.com
STRG + Klicken, um Verknüpfung zu folgen" 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>
</blockquote></div><br>