<div dir="ltr"><div>Thank you.<br><br></div>If I understand correctly, before inserting the values into the Mat and Vec, I should call VecScatter as in the ''ex30f.F" example to set Vec and Mat with the new indexes, right?<br>

<br><br><br><br><br><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecScatter.html#VecScatter"></a></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 6:45 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Tue, May 13, 2014 at 11:42 AM, Hossein Talebi <span dir="ltr"><<a href="mailto:talebi.hossein@gmail.com" target="_blank">talebi.hossein@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><br></div>I have already decomposed the Finite Element system using Metis. I just need to have the global rows exactly like how I define and I like to have the answer in the same layout so I don't have to move things around the processes again.  <br>




<br>No, I don't need it for something else.<br></div></div></div></blockquote><div><br></div></div><div>PetscLayout is only for contiguous sets of indices. If you want to distribute them, you need to use VecScatter.</div>

<div>
<br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div>

Cheers<br></div>
Hossein<br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 6:36 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Tue, May 13, 2014 at 11:07 AM, Hossein Talebi <span dir="ltr"><<a href="mailto:talebi.hossein@gmail.com" target="_blank">talebi.hossein@gmail.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi All,<br><br><br></div>I am using PETSC from Fortran. I would like to define my own layout i.e. which row belongs to which CPU since I have already done the domain decomposition.  It appears that  "PetscLayoutCreate<a name="145f67969de53fab_145f67768ca675a1_145f67167d602eea_145f657ea16c949d_PetscLayoutCreate"></a>" and the other routine do this. But in the manual it says it is not provided in Fortran. <br>







<br></div>Is there any way that I can do this using Fortran? Anyone has an example?<br></div></div></div></blockquote><div><br></div></div></div><div>You can do this for Vec and Mat directly. Do you want it for something else?</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"><div dir="ltr"><div><div></div>Cheers<span><font color="#888888"><br>





</font></span></div><span><font color="#888888">Hossein<br><br></font></span></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><span><font color="#888888"><div><br></div>-- <br>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
</font></span></font></span></div></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr"><a href="http://www.permix.org" target="_blank">www.permix.org</a><br></div>
</font></span></div>
</blockquote></div></div><div class=""><br><br clear="all"><div><br></div>-- <br>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>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><a href="http://www.permix.org" target="_blank">www.permix.org</a><br></div>
</div>