<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Update FGMRes approximate solution during solution process in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1245319#M30650</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to see if there's a way to update the current approximate solution after each iteration for &lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-fortran/top/sparse-solver-routines/iterative-sparse-solvers-based-on-reverse-communication-interface-rci-iss/rci-iss-routines/dfgmres.html" target="_self"&gt;MKL FGMRes&lt;/A&gt;. This is to remove a know null-space from the approximate solution, much like it's done in &lt;A href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSetNullSpace.html" target="_self"&gt;PETSc&lt;/A&gt;. I'm not sure if/how can I access the approximate solution and pass it back to dfgmres? I also would like to ask why simply retrieving the solution with dfgmres_get with ipar(13)=1 (Fortran 1 based indexing), messes up the convergence?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate any help you can provide.&lt;/P&gt;
&lt;P&gt;Ata&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 23:23:54 GMT</pubDate>
    <dc:creator>ata_mesgarnejad</dc:creator>
    <dc:date>2021-01-11T23:23:54Z</dc:date>
    <item>
      <title>Update FGMRes approximate solution during solution process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1245319#M30650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to see if there's a way to update the current approximate solution after each iteration for &lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-fortran/top/sparse-solver-routines/iterative-sparse-solvers-based-on-reverse-communication-interface-rci-iss/rci-iss-routines/dfgmres.html" target="_self"&gt;MKL FGMRes&lt;/A&gt;. This is to remove a know null-space from the approximate solution, much like it's done in &lt;A href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSetNullSpace.html" target="_self"&gt;PETSc&lt;/A&gt;. I'm not sure if/how can I access the approximate solution and pass it back to dfgmres? I also would like to ask why simply retrieving the solution with dfgmres_get with ipar(13)=1 (Fortran 1 based indexing), messes up the convergence?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate any help you can provide.&lt;/P&gt;
&lt;P&gt;Ata&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 23:23:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1245319#M30650</guid>
      <dc:creator>ata_mesgarnejad</dc:creator>
      <dc:date>2021-01-11T23:23:54Z</dc:date>
    </item>
    <item>
      <title>Re:Update FGMRes approximate solution during solution process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1245849#M30673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Forwarding your question to the Subject Matter Experts. They will get back to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2021 11:42:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1245849#M30673</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2021-01-13T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update FGMRes approximate solution during solution process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1246424#M30679</link>
      <description>&lt;P&gt;Hello Ata,&lt;/P&gt;
&lt;P&gt;I see you have two questions:&lt;/P&gt;
&lt;P&gt;1) How to apply additional operation on the computed solution of FGMRES between iterations.&lt;/P&gt;
&lt;P&gt;I suggest that you call dfgmres_get after any fgmres call at each iteration except the very first one, then apply your post-processing (removing the null space) to the returned by dfgmres_get vector, and then on the next iteration pass this to the next call dfgmres. I haven't tried it yet but I think this should work.&lt;/P&gt;
&lt;P&gt;For more details about how to use FGMRES from MKL/oneMKL, you can look at the example&amp;nbsp;fgmres_no_precon_c.c (although there fgmres_get is only called to get the final result).&lt;/P&gt;
&lt;P&gt;2) W&lt;SPAN&gt;hy simply retrieving the solution with dfgmres_get with ipar(13)=1 (Fortran 1 based indexing), messes up the convergence?&lt;BR /&gt;&lt;BR /&gt;Could you provide more details about this? Ideally, a minimal reproducer. It would be much simpler to analyze the issue if it exists once we can run the suspicious case on our side. Have you noticed in the docs &lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-fortran/top/sparse-solver-routines/iterative-sparse-solvers-based-on-reverse-communication-interface-rci-iss/rci-iss-routines/dfgmres-get.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-fortran/top/sparse-solver-routines/iterative-sparse-solvers-based-on-reverse-communication-interface-rci-iss/rci-iss-routines/dfgmres-get.html&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;that the output array of fgmres_get is different based on ipar(13)=0 or &amp;gt; 0?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;BR /&gt;Kirill&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 22:34:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1246424#M30679</guid>
      <dc:creator>Kirill_V_Intel</dc:creator>
      <dc:date>2021-01-14T22:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update FGMRes approximate solution during solution process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1246781#M30692</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;SPAN&gt;Kirill&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;With your help, I finally figured it out. For some reason, I need to read the solution in another vector and not the one I passed in the first iteration for the solution/initial guess. Then I remove its null-space and pass it back to dfgmres.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Ata&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 21:08:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1246781#M30692</guid>
      <dc:creator>ata_mesgarnejad</dc:creator>
      <dc:date>2021-01-15T21:08:29Z</dc:date>
    </item>
    <item>
      <title>Re:Update FGMRes approximate solution during solution process</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1247174#M30699</link>
      <description>&lt;P&gt;thanks Kirill.&lt;/P&gt;&lt;P&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 03:32:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Update-FGMRes-approximate-solution-during-solution-process/m-p/1247174#M30699</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-01-18T03:32:31Z</dc:date>
    </item>
  </channel>
</rss>

