<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Thanks for the info George. This what I figured and I guess there is no free lunch. I had been trying to avoid the communication on my side since some of the fields I output are never communicated otherwise and had also been trying to avoid having all
the processors write to the same file since I have had MPI I/O issues on some systems. I guess I will implement a few different things and can always postprocess the files if necessary.</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>George Zagaris <<a href="mailto:george.zagaris@kitware.com">george.zagaris@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, June 27, 2013 6:34 PM<br>
<span style="font-weight:bold">To: </span>Jeremy Kozdon <<a href="mailto:jekozdon@nps.edu">jekozdon@nps.edu</a>><br>
<span style="font-weight:bold">Cc: </span>Vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [vtkusers] PStructuredGrid questions and ghostlevels<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi Jeremy,
<div><br>
</div>
<div style="">To the best of my knowledge, partition interfaces in VTK need to abut.</div>
<div style=""><br>
</div>
<div style="">Although I do understand the reasoning of what you are trying to achieve, from a finite difference code perspective, leaving a gap is problematic b/c it creates an implicit cell that could span two or more partitions/zones. For most post-processing/visualization
operations, the algorithms need to loop over cells, e.g., consider contouring or interpolating the data over a line. Not having an explicit definition of all the cells in a partition makes this more complicated -- it would require building that information
when reading in the partitioned grid, e.g., by growing the grid to the right and communicating the data (assuming we run in parallel).</div>
<div style=""><br>
</div>
<div style="">More importantly, VTK structured grids can also store values at cell-centers. The output scheme that you describe would only work for node-centered data.</div>
<div style=""><br>
</div>
<div style="">So, to best support node-centered and cell-centered data, partition interfaces need to abut.</div>
<div style=""><br>
</div>
<div style="">Hope this helps.</div>
<div style=""><br>
</div>
<div style="">Best,</div>
<div style="">George</div>
<div style=""><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jun 27, 2013 at 4:04 PM, Kozdon, Jeremy (CIV) <span dir="ltr">
<<a href="mailto:jekozdon@nps.edu" target="_blank">jekozdon@nps.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am trying to get vtk to properly work with a parallel finite difference code. What I would like to do is have each processor write the data they "own" to a separate file. For instance<br>
processor 0 would write local extends "0 9 0 10 0 0" to file file0.vts<br>
processor 1 would write local extends "10 19 0 10 0 0" to file file1.vts<br>
processor 2 would write local extends "20 29 0 10 0 0" to file file2.vts<br>
...<br>
I thought that when I wrote the pvts file to combine the data this would be ghostlevel="0" since there is no overlap of the data, but I get errors on a lack of extents. For instance in the above it would be for lack of extents "9 10 0 10 0 0" and "19 20 0 10
0 0", i.e., where the parallel boundary occurs.<br>
<br>
I am wondering if there is a better way to do what I am trying to accomplish / whether it is possible to do such formatting with vtk. I would prefer not having processors write duplicated data if possible.<br>
<br>
Thanks!<br>
Jeremy<br>
______________________________<u></u>_________________<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/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>