<div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif">I think when I have installed PETSc, I did --download-mpich.</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">How can I correct it? Shall I install PETSc again?<br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Thanks.</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Sincerely,</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Huq</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 17, 2018 at 4:53 PM Smith, Barry F. <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Nov 17, 2018, at 3:51 PM, Fazlul Huq via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
> <br>
> Thanks for the answer.<br>
> <br>
> So, when I run the code with "mpiexec -n 2 ./ex6" or "mpiexec -n 4 ./ex6" shouldn't it spit out <br>
> the error "This is a uniprocessor example only!"? <br>
> But it didn't do that rather run the code 2/4 times.<br>
<br>
This can happen if you use the "wrong" mpiexec; that is a different mpiexec than the one associated with the mpi you built PETSc with. For example if some mpiexec is in your path and you used ./configure --download-mpich<br>
<br>
Barry<br>
<br>
<br>
> <br>
> Thanks.<br>
> Sincerely,<br>
> Huq<br>
> <br>
> On Sat, Nov 17, 2018 at 1:12 PM Fazlul Huq <<a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a>> wrote:<br>
> Hello PETSc developers,<br>
> <br>
> In example 6 or vec section I don't understand this line:<br>
> if (size != 1) SETERRQ(PETSC_COMM_SELF,1,"This is a uniprocessor example only!");<br>
> <br>
> I tried to run the code with "mpiexec -n 2 ./ex6" or "mpiexec -n 4 ./ex6" or even "mpiexec -n 1 ./ex6" it the code runs properly.<br>
> <br>
> Thanks.<br>
> <br>
> Sincerely,<br>
> Huq<br>
> <br>
> -- <br>
> <br>
> Fazlul Huq<br>
> Graduate Research Assistant<br>
> Department of Nuclear, Plasma & Radiological Engineering (NPRE)<br>
> University of Illinois at Urbana-Champaign (UIUC)<br>
> E-mail: <a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a><br>
> <br>
> <br>
> -- <br>
> <br>
> Fazlul Huq<br>
> Graduate Research Assistant<br>
> Department of Nuclear, Plasma & Radiological Engineering (NPRE)<br>
> University of Illinois at Urbana-Champaign (UIUC)<br>
> E-mail: <a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><div><font face="comic sans ms, sans-serif">Fazlul Huq</font></div><div><font face="comic sans ms, sans-serif">Graduate Research Assistant</font></div><div><font face="comic sans ms, sans-serif">Department of Nuclear, Plasma & Radiological Engineering (NPRE)</font></div><div><font face="comic sans ms, sans-serif">University of Illinois at Urbana-Champaign (UIUC)</font></div><div><font face="comic sans ms, sans-serif">E-mail: <a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a></font></div></div></div></div></div></div></div>