<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><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 "x" with scalar "alpha"</span><span class="tab"></span><span>, it overwrites the vector "x" with "alpha \times x" . <br></span></div><div><span>Can we re-use the vector "x" after scaling ? <br></span></div><div><br><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" size="2"> <hr size="1"> <b><span
style="font-weight:bold;">From:</span></b> Shri <abhyshr@mcs.anl.gov><br> <b><span style="font-weight: bold;">To:</span></b> Abdul Hanan Sheikh <hanangul12@yahoo.co.uk>; PETSc users list <petsc-users@mcs.anl.gov> <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 id="yiv170337971"><style type="text/css">#yiv170337971 p {margin:0;}</style><div><div style="font-family:Times New Roman;font-size:12pt;color:#000000;">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptionsGetScalar.html<br><br><hr id="yiv170337971zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:10pt;"><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></body></html>