<HTML>
<HEAD>
<TITLE>Re: [Paraview] D3 not deterministic?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I think I see what is going on. In summary, it looks like changing the boundary mode does not properly set the modified flag on the D3 filter and is therefore not properly updating when you change only that parameter (but doing so deterministically). The minimal memory flag seems to set the modified flag properly, thereby forcing the update you should have seen when you changed the boundary mode.<BR>
<BR>
Here is some more info about what is happening (in case, for example, you want to submit a bug or work around it). In all cases, the partitioning is really the same. Underneath, D3 partitions the space with a k-d tree. The tree is the same size as the number of processes and each process is assigned a leaf in the tree. The k-d tree is coming out the same each time. The difference is how D3 distributes the cells based on the k-d tree. If the boundary mode is assign cells uniquely, then each cell is assigned to exactly one region of the k-d tree (I believe the one containing the centroid), and the cells are sent to the process for that region. In the duplicate cells boundary mode, cells sent to <I>all</I> processes that have a region that overlaps the cells. Thus, cells on the boundaries are duplicated. The change you are seeing is simply the overlap of cells in the processes. If you turn on parallel rendering (change the remote render threshold to 0), the overlap will probably become very noticeable.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 9/24/09 2:19 AM, "Karl König" <<a href="kkoenig11@web.de">kkoenig11@web.de</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
Hopefully someone can shed some light on this one:<BR>
I start tonight's PV in client/server mode with 4 parallel pvserver<BR>
processes. The pipeline is as follows:<BR>
Sources - Plane (default settings)<BR>
Triangulate<BR>
Subdivide (Number of Subdivisions: 3)<BR>
D3 (default settings, i.e.<BR>
Boundary Mode: Assign cells uniquely, Minimal Memory unchecked)<BR>
Process Id Scalars (Random Mode unchecked)<BR>
<BR>
All tetrahedra's are equally distributed, that's what I expected, fine.<BR>
Now:<BR>
1) Check "Minimal Memory" of D3 properties. Nothing changes, fine.<BR>
2) Uncheck "Minimal Memory" of D3 properties. Nothing changes, still fine.<BR>
3) Check "Minimal Memory" of D3 properties and change Boundary Mode to<BR>
"Duplicate cells". The partition changes, reasonable.<BR>
4) Change Boundary Mode back to "Assign cells uniquely", the partition<BR>
doesn't change again to the initial one.<BR>
(You can get back the earlier partition by changing both the "Minimal<BR>
Memory" setting and the Boundary Mode setting at the same time.)<BR>
<BR>
Isn't D3 deterministic?<BR>
<BR>
Thanks,<BR>
Karl<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>