<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">I tried to reconfigure PETSc and I got the following error message:</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif">..................................................................................................................</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif"><div class="gmail_default">Unable to find mpi in default locations!</div><div class="gmail_default">Perhaps you can specify with --with-mpi-dir=<directory></div><div class="gmail_default">If you do not want MPI, then give --with-mpi=0</div><div class="gmail_default">You might also consider using --download-mpich instead</div><div class="gmail_default">.................................................................................................................</div><div class="gmail_default">I also got this error message last time when I have installed first and I have used --download-mpich command.</div><div class="gmail_default"><br></div><div class="gmail_default">The log file is attached herewith along with terminal screenshot.</div><div class="gmail_default">I am not sure what to do now.</div><div class="gmail_default"><br></div><div class="gmail_default">Thanks.</div><div class="gmail_default">Sincerely,</div><div class="gmail_default">Huq</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 17, 2018 at 5:26 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>
Then use<br>
<br>
${PETSC_DIR}/${PETSC_ARCH}/bin/mpiexec <br>
<br>
don't just use the random (wrong) mpiexec that is in your path.<br>
<br>
Barry<br>
<br>
<br>
> On Nov 17, 2018, at 5:22 PM, Fazlul Huq <<a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a>> wrote:<br>
> <br>
> I think when I have installed PETSc, I did --download-mpich.<br>
> How can I correct it? Shall I install PETSc again?<br>
> <br>
> Thanks.<br>
> Sincerely,<br>
> Huq<br>
> <br>
> On Sat, Nov 17, 2018 at 4:53 PM Smith, Barry F. <<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>> wrote:<br>
> <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>
> <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>