<div dir="ltr">Note, as Barry said, GAMG works with native complex numbers. You can start with your original complex build and use '-pc_type gamg'.<div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 23, 2018 at 6:52 AM Pierpaolo Minelli <<a href="mailto:pierpaolo.minelli@cnr.it">pierpaolo.minelli@cnr.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> Il giorno 20 lug 2018, alle ore 19:58, Smith, Barry F. <<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>> ha scritto:<br>
> <br>
> <br>
> <br>
>> On Jul 20, 2018, at 7:01 AM, Pierpaolo Minelli <<a href="mailto:pierpaolo.minelli@cnr.it" target="_blank">pierpaolo.minelli@cnr.it</a>> wrote:<br>
>> <br>
>> Hi,<br>
>> <br>
>> in my code I have to solve both a system in the field of real numbers and in the field of complex numbers.<br>
>> My approach has been as follows.<br>
>> First I configured PETSc with the --with-scalar-type=complex option.<br>
>> Using this option I have unfortunately lost the possibility to use the two preconditioners ML and Hypre.<br>
> <br>
> You should still be able to use the PETSc PCGAMG algebraic multigrid solver. Have you tried that? If there are issues let us know because we would like to continue to improve the performance of PCGAMG to get it to be closer to as good as ML and hypre.<br>
> <br>
> Barry<br>
> <br>
<br>
I will try to convert, as suggested by Matthew, my complex system in a system twice as large in real numbers. When i finish, i will try to use ML, Hypre and GAMG and i let you know if there are any performance differences.<br>
<br>
Thanks<br>
<br>
Pierpaolo<br>
<br>
<br>
>> I later created two subspaces of Krylov and tried to solve the two systems as I used to when solving the only equation in the real numbers field.<br>
>> In order to correctly solve the system in the field of real numbers I had to transform the coefficients from real to complex with an imaginary part equal to zero.<br>
>> <br>
>> Is there a possibility to use a different and better approach to solve my problem?<br>
>> <br>
>> Perhaps an approach where you can continue to use ML and Hypre for system solving in the real numbers field or where you don't need to use complex numbers when real numbers would actually suffice?<br>
>> <br>
>> Thanks in advance<br>
>> <br>
>> Pierpaolo<br>
>> <br>
> <br>
<br>
</blockquote></div>