On Wed, Mar 25, 2009 at 11:26 AM, Ravi Kannan <span dir="ltr"><<a href="mailto:rxk@cfdrc.com">rxk@cfdrc.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font color="#0000ff" size="2" face="Arial"><span>Hi,</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
<div><font color="#0000ff" size="2" face="Arial"><span>After
I upgrade the petsc from 2.3.3 to 3.0.0, I have made the change for the superlu
from</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"><span>_ierr
= MatSetType(_A,MATSUPERLU_DIST) </span></font></div>
<div><font color="#0000ff" size="2" face="Arial"><span>to</span></font></div>
<div><font color="#0000ff" size="2" face="Arial">_ierr =
MatSetType(_A,MAT_SOLVER_SUPERLU_DIST)</font></div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Is
this the only change I need to do?</font></span></div>
<div><span></span></div></div></blockquote><div><br>No, this type no longer exists. please see the Mat section in the Changes document:<br><br><a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/300.html">http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/300.html</a><br>
<br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div> <br></div>
<div><span><font color="#0000ff" size="2" face="Arial">Ravi,
X.G</font></span></div>
<blockquote>
<div dir="ltr" align="left"><font size="2" face="Tahoma">-----Original Message-----<br><b>From:</b>
<a href="mailto:petsc-users-bounces@mcs.anl.gov" target="_blank">petsc-users-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:petsc-users-bounces@mcs.anl.gov" target="_blank">petsc-users-bounces@mcs.anl.gov</a>]<b>On
Behalf Of </b>Matthew Knepley<br><b>Sent:</b> Wednesday, March 25, 2009 7:08
AM<br><b>To:</b> PETSc users list<br><b>Subject:</b> Re: Petsc parallel
vectors with two communicators<br><br></font></div>On Wed, Mar 25, 2009 at
1:05 AM, Khan, Irfan <span dir="ltr"><<a href="mailto:irfan.khan@gatech.edu" target="_blank">irfan.khan@gatech.edu</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br>Can
the petsc parallel vectors be used with two different communicators? For
instance, I have created two different communicators called FEA_Comm and
FSI_Comm. The total number of processes are x+y. FSI_Comm works on x+y but
FEA_Comm works only on x.<br><br>Now I am trying to create parallel vectors
a1 and a2 such that a1 has entries from x+y processes but a2 has entries
from only y processes.<br><br>After splitting the communicators I assign
PETSC_COMM_WORLD to FEA_Comm which works on only x processes. Subsequently
petsc is initialized (PetscInitialize()). But when the parallel vectors are
created, the processes hang.</blockquote>
<div><br>PETSC_COMM_WORLD should encompass all processes you wish to use in
PETSc, so that means x+y. You can create Vec<br>objects on subcommunicators,
like x.<br><br> Matt<br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Any
suggestions will be helpful<br><br>Thankyou<br>Irfan<br>Graduate Research
Assistant<br>Woodruff school of Mechanical Engineering<br>Atlanta, GA
(30307)<br></blockquote></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<br></blockquote></div>
</blockquote></div><br><br clear="all"><br>-- <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<br>