<div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Well.</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">I tried on other machine and it shows error message.</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">The fact is I understand the example.</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 again.</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:15 PM Fazlul Huq <<a href="mailto:huq2090@gmail.com">huq2090@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><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"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">For some reason it's not showing on my machine.</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">I am using petsc-3.10.2</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">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:03 PM Sanjay Govindjee via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@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">
<div text="#000000" bgcolor="#FFFFFF">
Throws the proper error on my machine:<br>
<br>
$ ~/petsc-3.10.1/intel/bin/mpirun -np 2 ex6<br>
[0]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------<br>
[0]PETSC ERROR: This is a uniprocessor example only!<br>
<pre class="m_8995016767552638666m_-4583732618878578938moz-signature" cols="72">
</pre>
<div class="m_8995016767552638666m_-4583732618878578938moz-cite-prefix">On 11/17/18 1:51 PM, Fazlul Huq via
petsc-users wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:comic sans ms,sans-serif">Thanks for the answer.</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">So, when I run the code with "mpiexec -n 2
./ex6" or "mpiexec -n 4 ./ex6" shouldn't it spit out </div>
<div class="gmail_default" style="font-family:comic sans ms,sans-serif">the error "This is a uniprocessor example
only!"? </div>
<div class="gmail_default" style="font-family:comic sans ms,sans-serif">But it didn't do that rather run the code 2/4
times.</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 1:12 PM Fazlul Huq <<a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default">Hello PETSc developers,</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">In example 6 or vec section I
don't understand this line:</div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif">if (size != 1)
SETERRQ(PETSC_COMM_SELF,1,"This is a uniprocessor
example only!");</font><br>
</div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif">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.</font></div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif">Thanks.</font></div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif">Sincerely,</font></div>
<div class="gmail_default"><font face="comic sans ms,
sans-serif">Huq</font></div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_8995016767552638666m_-4583732618878578938m_2318007667578293952gmail_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>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_8995016767552638666m_-4583732618878578938gmail_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>
</blockquote>
<br>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_8995016767552638666gmail_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>
</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>