On Mon, Apr 16, 2012 at 2:05 PM, Abdul Hanan Sheikh <span dir="ltr">&lt;<a href="mailto:hanangul12@yahoo.co.uk">hanangul12@yahoo.co.uk</a>&gt;</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><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif"><div><span>Thanks! :) </span></div><div><br><span></span></div><div><span>I have an other query.  <br></span></div><div><span>By using VecScale on vector &quot;x&quot; with scalar &quot;alpha&quot;</span><span></span><span>, it overwrites the vector &quot;x&quot; with &quot;alpha \times x&quot; . <br>
</span></div><div><span>Can we re-use the vector &quot;x&quot; after scaling ? </span></div></div></div></blockquote><div><br></div><div>No. If you want the original vector around,  use VecAXPY() instead.</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><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif"><div><span></span></div>
<div><span>thanks, <br></span></div><div> </div><div>Abdul<br></div><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px">  <div style="font-family:verdana,helvetica,sans-serif;font-size:10pt">
 <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Shri &lt;<a href="mailto:abhyshr@mcs.anl.gov" target="_blank">abhyshr@mcs.anl.gov</a>&gt;<br>
 <b><span style="font-weight:bold">To:</span></b> Abdul Hanan Sheikh &lt;<a href="mailto:hanangul12@yahoo.co.uk" target="_blank">hanangul12@yahoo.co.uk</a>&gt;; PETSc users list &lt;<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>&gt; <br>
 <b><span style="font-weight:bold">Sent:</span></b> Monday, 16 April 2012, 19:20<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [petsc-users] Complex Number<br> </font> </div> <br><div><div><div style="font-size:12pt;font-family:Times New Roman">
<a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptionsGetScalar.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptionsGetScalar.html</a><br><br><hr>
<blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif"><div><span>Dear users n
 devlopers, </span></div><div><span><br></span></div><div><span>My Petsc routine contans a complex number, as a parameter of my problem. <br></span></div><div><span>I need to provide it at the run time options, since I intend to test a variety of parameter.</span></div>
<div><span>In this regard, I read that PetscScalar is the way to declare a complex number. </span></div><div><span>If I need merely a complex number at run time option to compile a compact routine, <br></span></div><div><span>any details from any examples of libraries ? <br>
</span></div><div><br><span></span></div><div><span>Thanks in anticipation. </span></div><div><br><span></span></div><div><span>Abdul,</span></div><br><div><span style="color:rgb(0,0,255)"><span style="font-family:verdana,helvetica,sans-serif"><span style="font-family:lucida console,sans-serif"></span></span></span><span style="color:rgb(0,0,255)"><span style="font-family:verdana,helvetica,sans-serif"></span></span></div>
</div></blockquote><br></div></div></div><br><br> </div> </div> </blockquote></div>   </div></div></blockquote></div><br><br clear="all"><div><br></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>