<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1611" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=062342016-25032009>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=062342016-25032009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=062342016-25032009>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 face=Arial color=#0000ff size=2><SPAN class=062342016-25032009>_ierr 
= MatSetType(_A,MATSUPERLU_DIST)&nbsp;&nbsp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=062342016-25032009>to</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>_ierr = 
MatSetType(_A,MAT_SOLVER_SUPERLU_DIST)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=062342016-25032009><FONT face=Arial color=#0000ff size=2>Is 
this the only change I need to do?</FONT></SPAN></DIV>
<DIV><SPAN class=062342016-25032009><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=062342016-25032009><FONT face=Arial color=#0000ff size=2>Ravi, 
X.G</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  petsc-users-bounces@mcs.anl.gov [mailto:petsc-users-bounces@mcs.anl.gov]<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>&lt;<A 
  href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</A>&gt;</SPAN> 
  wrote:<BR>
  <DIV class=gmail_quote>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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>&nbsp; Matt<BR>&nbsp;</DIV>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><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></BODY></HTML>