hypre icon indicating copy to clipboard operation
hypre copied to clipboard

Complex Number Compatibility?

Open Heatherms27 opened this issue 3 years ago • 2 comments

Are there any plans to add complex number capabilities for different solvers/preconditioners? More specifically, I was interested in reading in a file containing a CSR matrix with complex values to use Euclid.

Heatherms27 avatar Sep 28 '21 16:09 Heatherms27

Hi @Heatherms27, there aren't plans now for adding support of complex numbers to preconditioners in the IJ interface. Sorry about that! Currently, many compilation warnings are issued when --enable-complex is used and, in general, they point to locations where algorithms need to be rethought to make them work with complex numbers. As a matter of fact, the ILU implementations in hypre (Euclid and hypre_ILU) are not supposed to deal with complex numbers.

As for reading complex matrices from file, If you are interested, I can point to the modifications needed in HYPRE_IJMatrixRead to make it work for this case.

Thanks!

victorapm avatar Sep 29 '21 17:09 victorapm

@victorapm Do you know if Hypre will/currently support complex matrices with zero imaginary part?

I would like to use AMS with my existing complex PETSc code, but want to avoid having to manually split my complex petsc matrix into multiple hypre real matrices.

lucasbanting avatar Oct 01 '22 13:10 lucasbanting