<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body 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="moz-signature" cols="72">
</pre>
<div class="moz-cite-prefix">On 11/17/18 1:51 PM, Fazlul Huq via
petsc-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAE5QvP2cMx5dYm6GjYXQxPYiKNBbFmBdj86Jp00gtFsxgMUang@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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" moz-do-not-send="true">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" style="font-family:"comic
sans ms",sans-serif">Hello PETSc developers,</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">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_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" moz-do-not-send="true">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="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"
moz-do-not-send="true">huq2090@gmail.com</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>