I hope that&#39;s not the case that the slice has to go through each process&#39;s grid domain.  I think it just needs to go through one of the process&#39;s grid domain such that the global number of points and cells is greater than 0.  I will check on this though.<br>
<br>Andy<br><br><div class="gmail_quote">On Sat, Nov 12, 2011 at 3:57 AM, Takuya OSHIMA <span dir="ltr">&lt;<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for all the input guys. Indeed Pat&#39;s tip did the trick, in my case:<br>
<br>
    if Slice1.GetDataInformation().GetNumberOfPoints():<br>
        DataRepresentation2.ColorArrayName = &#39;p&#39;<br>
<br>
I am still new to coprocessing so I am not getting things right but<br>
here is my deduction: I am running my simulation code in parallel with<br>
8 processes with one cell thickness of ghost layers. Slice1 does<br>
intersect the domain, but not all of parallel decomposed<br>
subdomains. Hence the error is issued for the processes that have no<br>
slice data.<br>
<br>
Meanwhile I noticed that the slice in oneSlice.py just have happened<br>
to locate exactly on interprocessor boundaries and intersected all of<br>
parallel decomposed subdomains at the ghost layers. That explains why<br>
the script worked without error.<br>
<div class="im"><br>
Takuya OSHIMA, Ph.D.<br>
Faculty of Engineering, Niigata University<br>
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br>
<br>
</div>From: pat marion &lt;<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>&gt;<br>
<div class="im">Subject: Re: [Paraview] PV 3.12.0 coprocessing problem when using multiple filters<br>
</div>Date: Fri, 11 Nov 2011 20:08:54 -0500<br>
<div><div></div><div class="h5"><br>
&gt; That&#39;s right, if the output has no point or cell data, then assigning the<br>
&gt; ColorArrayName property will throw an exception.  It&#39;s kind of an annoying<br>
&gt; behavior.  So I&#39;ll work around this by writing code such as:<br>
&gt;<br>
&gt; if mySlice.GetDataInformation().GetNumberOfPoints():<br>
&gt;     rep.ColorArrayName=&#39;p&#39;<br>
&gt;<br>
&gt;<br>
&gt; Pat<br>
&gt;<br>
&gt; On Fri, Nov 11, 2011 at 12:39 PM, Andy Bauer &lt;<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Another thing to check is if there are any cells in the output from the<br>
&gt;&gt; second slice filter.  In the ParaView GUI, i started with the mandelbrot<br>
&gt;&gt; source and then created a slice filter that didn&#39;t intersect the domain.<br>
&gt;&gt; After that there wasn&#39;t any point or cell data in the output.<br>
&gt;&gt;<br>
&gt;&gt; Andy<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2011/11/11 Takuya OSHIMA &lt;<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m not in a place where I can test the line 323 modification right<br>
&gt;&gt;&gt; now but the cell array p is present. Please note that oneSlice.py<br>
&gt;&gt;&gt; which also colors by cell p works.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Takuya OSHIMA, Ph.D.<br>
&gt;&gt;&gt; Faculty of Engineering, Niigata University<br>
&gt;&gt;&gt; 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; From: Utkarsh Ayachit &lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;<br>
&gt;&gt;&gt; Subject: Re: [Paraview] PV 3.12.0 coprocessing problem when using<br>
&gt;&gt;&gt; multiple filters<br>
&gt;&gt;&gt; Date: Fri, 11 Nov 2011 09:16:18 -0500<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt; Is the array &quot;p&quot; not present when you&#39;re coprocessnig? Try taking out<br>
&gt;&gt;&gt; &gt; line 323 which sets the array &quot;p&quot; as the array to color with.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Utkarsh<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On Fri, Nov 11, 2011 at 9:08 AM, Takuya OSHIMA<br>
&gt;&gt;&gt; &gt; &lt;<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; &gt; Hi,<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; I am trying to explore the coprocessing capability of PV 3.12.0. When<br>
&gt;&gt;&gt; &gt; &gt; I create a pipeline with a single slice filter within the PV GUI,<br>
&gt;&gt;&gt; &gt; &gt; export the Python state file by the coprocessing plugin and run the<br>
&gt;&gt;&gt; &gt; &gt; script as the coprocessing pipleline in my simulation code, it works<br>
&gt;&gt;&gt; &gt; &gt; fine.<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; However if I create a pipeline with two or more filters my simulation<br>
&gt;&gt;&gt; &gt; &gt; code issues an error from the coprocessing library (the error message<br>
&gt;&gt;&gt; &gt; &gt; is for the case of two slice filters):<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; Traceback (most recent call last):<br>
&gt;&gt;&gt; &gt; &gt;  File &quot;&lt;string&gt;&quot;, line 2, in &lt;module&gt;<br>
&gt;&gt;&gt; &gt; &gt;  File &quot;/Users/ohshima/shindoriTest/twoSlices.py&quot;, line 323, in<br>
&gt;&gt;&gt; DoCoProcessing<br>
&gt;&gt;&gt; &gt; &gt;    DataRepresentation2.ColorArrayName = &#39;p&#39;<br>
&gt;&gt;&gt; &gt; &gt;  File<br>
&gt;&gt;&gt; &quot;/Volumes/RAID0data/paraview/3.12/build/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;,<br>
&gt;&gt;&gt; line 212, in __setattr__<br>
&gt;&gt;&gt; &gt; &gt;    setter(self, value)<br>
&gt;&gt;&gt; &gt; &gt;  File<br>
&gt;&gt;&gt; &quot;/Volumes/RAID0data/paraview/3.12/build/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;,<br>
&gt;&gt;&gt; line 2276, in setProperty<br>
&gt;&gt;&gt; &gt; &gt;    return self.SetPropertyWithName(propName, value)<br>
&gt;&gt;&gt; &gt; &gt;  File<br>
&gt;&gt;&gt; &quot;/Volumes/RAID0data/paraview/3.12/build/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;,<br>
&gt;&gt;&gt; line 267, in SetPropertyWithName<br>
&gt;&gt;&gt; &gt; &gt;    prop.SetData(arg)<br>
&gt;&gt;&gt; &gt; &gt;  File<br>
&gt;&gt;&gt; &quot;/Volumes/RAID0data/paraview/3.12/build/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;,<br>
&gt;&gt;&gt; line 695, in SetData<br>
&gt;&gt;&gt; &gt; &gt;    raise ValueError(&quot;Could not locate array %s in the input.&quot; % arr)<br>
&gt;&gt;&gt; &gt; &gt; ValueError: Could not locate array p in the input.<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; The problem is same for Mac OS X 10.6 and RHEL 5.1 64bit. I attach the<br>
&gt;&gt;&gt; &gt; &gt; scripts oneSlice.py (which works) and twoSlices.py (which does not<br>
&gt;&gt;&gt; &gt; &gt; work). Can anybody shed light on the problem?<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; Takuya<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; Takuya OSHIMA, Ph.D.<br>
&gt;&gt;&gt; &gt; &gt; Faculty of Engineering, Niigata University<br>
&gt;&gt;&gt; &gt; &gt; 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; _______________________________________________<br>
&gt;&gt;&gt; &gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt; &gt; &gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;<br>
&gt;&gt;<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>
</div></div></blockquote></div><br>