[petsc-users] Load real matrix in complex PETSc build.
Barry Smith
bsmith at mcs.anl.gov
Mon May 4 14:40:23 CDT 2015
You should be able to do it using the PetscBinaryIO.py tools we provide in the bin directory. Just read in the matrix as real in python and then write it out as complex using the methods there.
Barry
> On May 4, 2015, at 2:34 PM, stefano.pedraglio at libero.it wrote:
>
> Hallo
> I have saved a large matrix using PETSc configured with scalar type real and I used binary viewer. I need now to compute the eigensolutions in another program using SLEPc and I need to use a complex shift. I have configured and compiled another PETSc and SLEPc build for complex scalars. I know it is not possible to load a matrix saved as real when using a program configured for complex numbers. Is there a workaround to perform this operation? Maybe saving and loading in some other format the matrix or using a different library for eigenvalue computation. Thank you for any suggestion.
>
> Hallo
> Stefano
More information about the petsc-users
mailing list