On Tue, May 22, 2012 at 5:17 AM, w_ang_temp <span dir="ltr"><<a href="mailto:w_ang_temp@163.com" target="_blank">w_ang_temp@163.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"><div>Hello</div>
<div> I am a beginner of PETSc.I find the petsc-users lists is very useful, however I do not know how to ask a question in it. So can you tell me? And below is what I want to ask.<br> I am solving Ax=b with PETSc. And I only use it in a fortran subroutine to get x ,then the main function of my program use x to do other things. The question is that: when the process is 1(mpiexec -n 1),the result of my program is ok, but when the process is more than 1 the result is wrong.<br>
</div></div></blockquote><div><br></div><div>"Wrong" is not an acceptable description. I suspect that you do not understand that only part of a Vec</div><div>is stored on each MPI process. First, get the book Using MPI, and then read the PETSc manual</div>
<div>section on vectors.</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 style="line-height:1.7;font-size:14px;font-family:arial">
<div> So where could be wrong? Can you give me some hints on how I can debug? Thanks.</div>
<div> Jim</div></div></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>