[petsc-users] How to use PETSc real version and complex version simultaneously?

gaochenyi14 gaochenyi14 at 163.com
Tue Apr 4 21:00:30 CDT 2023


I rely on PETSc to deal with real and complex sparse matrices of dimension 1e4 * 1e4 or above. I want to use real version when only real matrices are involved, to achieve better performance, and use complex version only when complex matrices get involved. But in the manual it says different versions can not be used at the same time. Can this restriction be circumvented? If not, where does the restriction come from?

All the best,

More information about the petsc-users mailing list