<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Matt,</p>
<p><br>
</p>
<p>Yes. I would like to try. Where should I start? </p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Matthew Knepley <knepley@gmail.com><br>
<b>Sent:</b> Thursday, October 15, 2015 3:43 PM<br>
<b>To:</b> Barry Smith<br>
<b>Cc:</b> Xiao, Jianjun (IKET); petsc-users@mcs.anl.gov<br>
<b>Subject:</b> Re: [petsc-users] Load balancing problem with DMDA</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Oct 14, 2015 at 3:32 PM, Barry Smith <span dir="ltr">
<<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<span class=""><br>
> On Oct 14, 2015, at 3:11 PM, Xiao, Jianjun (IKET) <<a href="mailto:jianjun.xiao@kit.edu">jianjun.xiao@kit.edu</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> We have a finite volume code with structured grid. We use the DMDA data structure.<br>
><br>
> Now we have the load balancing problem as shown in the attached picture. The domain is decomposed into 4 partitions. The sub-domain in black (proc 2) is solid which is of no interest. We would like to calculate only the fluid part in proc 1, 3 and 4 which
 means the resource in proc 2 is wasted. Does DMDA now support multi-block with communication between blocks? I mean I build block 1 and assign to proc1, block 2 to proc 3 and block 3 to proc 4. So the solid sub-domain does not exist. Any suggestion?<br>
<br>
</span>No<br>
<span class=""><br>
><br>
> Or I have to do it using DMPLEX? Since data structure of the whole code  is based on  DMDA, is there any "simple way" to switch from DMDA to DMPLEX without changing the loop structure in the code?<br>
<br>
</span>  No<br>
<br>
  DMDA is for simple structured grids.</blockquote>
<div><br>
</div>
<div>Using Plex would be some work since no one has ever used it to do FD. In fact, now I think the way to do this</div>
<div>is to only represent the vertices and edges. I would help you if you want to experiment with that.</div>
<div><br>
</div>
<div>  Thanks,</div>
<div><br>
</div>
<div>     Matt</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<span class=""><br>
><br>
> Thank you.<br>
><br>
> Best regards<br>
> Jianjun<br>
</span>> <pic.JPG><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener</div>
</div>
</div>
</div>
</div>
</body>
</html>