<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">Thanks. I'll look into it and let you know if I have any questions.<br><br>Sohail<br><div><span><br></span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> George Zagaris <george.zagaris@kitware.com><br> <b><span style="font-weight: bold;">To:</span></b> Sohail Shafii <sohailshafii@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> David Thompson <david.thompson@kitware.com>; "paraview@paraview.org" <paraview@paraview.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, August 20, 2012 7:36 PM<br> <b><span style="font-weight:
bold;">Subject:</span></b> Re: [Paraview] Numpy masking (via programm filter) not quite working in parallel<br> </font> </div> <br>
Hello,<br><br>I have done some work in VTK towards that. Currently, this works only<br>with structured data.<br><br>If your data is structured, you can use vtkPStructuredGridConnectivity<br>to generate a bitmask (an unsigned char associated with each mesh<br>node). The bitmask can then be queried using the vtkGhostArray (See<br>http://www.vtk.org/doc/nightly/html/classvtkGhostArray.html) to see<br>which properties are "turned on" for the given mesh node. If the<br>IGNORE property is ON, that means that the node is a duplicate with<br>respect to the given process and should not be taken into account. The<br>implementation assigns ownership to the lowest rank of a mesh node --<br>on all other processes, the IGNORE property is set to ON.<br><br>TestPStructuredGridConnectivity illustrates how this can be used. The<br>test ensures that:<br>(1) Ensuring that the total number of nodes computed is invariant to<br>the number of processes/partitions<br>(2)
Ensuring that computing the average for a given field is also<br>invariant to the numer of processes/partitions<br><br>If this could be useful in your work, I can elaborate more if you have<br>any questions on how to use it.<br><br>Best,<br>George<br><br><br>On Fri, Aug 17, 2012 at 6:18 PM, Sohail Shafii <<a ymailto="mailto:sohailshafii@yahoo.com" href="mailto:sohailshafii@yahoo.com">sohailshafii@yahoo.com</a>> wrote:<br>> Very well. I think that should be fine for now.<br>><br>> Sohail<br>><br>> ________________________________<br>> From: David Thompson <<a ymailto="mailto:david.thompson@kitware.com" href="mailto:david.thompson@kitware.com">david.thompson@kitware.com</a>><br>> To: Sohail Shafii <<a ymailto="mailto:sohailshafii@yahoo.com" href="mailto:sohailshafii@yahoo.com">sohailshafii@yahoo.com</a>><br>> Cc: David Thompson <<a ymailto="mailto:david.thompson@kitware.com"
href="mailto:david.thompson@kitware.com">david.thompson@kitware.com</a>>; "<a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org">paraview@paraview.org</a>"<br>> <<a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>> Sent: Friday, August 17, 2012 4:15 PM<br>><br>> Subject: Re: [Paraview] Numpy masking (via programm filter) not quite<br>> working in parallel<br>><br>> Hi Sohail,<br>><br>>> ... Will this point sharing information become available in later versions<br>>> of ParaView? i.e. would it ever be easy to identify and count duplicates?<br>><br>> I don't know of any plans to implement this (but that doesn't mean there<br>> aren't).<br>><br>> David<br>><br>><br>><br>><br>> _______________________________________________<br>> Powered by <a target="_blank"
href="http://www.kitware.com/">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> http://www.kitware.com/opensource/opensource.html<br>><br>> Please keep messages on-topic and check the ParaView Wiki at:<br>> http://paraview.org/Wiki/ParaView<br>><br>> Follow this link to subscribe/unsubscribe:<br>> http://www.paraview.org/mailman/listinfo/paraview<br>><br><br><br> </div> </div> </div></body></html>