<div dir="ltr">No. I missed that note.<div>Complex has not been implemented.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 14, 2022 at 9:54 AM feng wang <<a href="mailto:snailsoar@hotmail.com">snailsoar@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Mark,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks for your reply! <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Maybe I have a misunderstanding of the documentation of KSPComputeRitz (<a href="https://petsc.org/main/docs/manualpages/KSP/KSPComputeRitz/" id="gmail-m_6877891815980076493LPlnk308872" target="_blank">https://petsc.org/main/docs/manualpages/KSP/KSPComputeRitz/</a>). It says "-this is currently not
implemented when PETSc is built with complex numbers". <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
But if it works, I will give it a try.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Feng<br>
<pre><span><br></span></pre>
<pre><span><a href="https://petsc.org/main/docs/manualpages/KSP/KSPComputeRitz/" target="_blank"></a></span></pre>
<br>
</div>
<div id="gmail-m_6877891815980076493appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_6877891815980076493divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>><br>
<b>Sent:</b> 14 July 2022 12:23<br>
<b>To:</b> feng wang <<a href="mailto:snailsoar@hotmail.com" target="_blank">snailsoar@hotmail.com</a>><br>
<b>Cc:</b> <a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a> <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>><br>
<b>Subject:</b> Re: [petsc-users] KSPComputeRitz, GMRES, matrix with complex number</font>
<div> </div>
</div>
<div>
<div dir="ltr">Why do you say it only works with Real? You need to configure PETSc to use complex numbers and it should work.
<div>This is an advanced method and it does not have any tests, which basically says it is very experimental.</div>
<div>Don't expect it to be very robust.</div>
<div><br>
<div>Mark</div>
</div>
</div>
<br>
<div>
<div dir="ltr">On Thu, Jul 14, 2022 at 7:19 AM feng wang <<a href="mailto:snailsoar@hotmail.com" target="_blank">snailsoar@hotmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Dear All,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am using GMRES with complex numbers and would like to compute the Ritz values.<span> I am looking at
<a href="https://petsc.org/main/docs/manualpages/KSP/KSPComputeRitz/" target="_blank">
KSPComputeRitz</a> and it seems to me that it only works with Petsc compiled with real numbers. Is there an easy alternative way to compute Ritz values for matrices with complex numbers?</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Feng<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>