[petsc-users] KSPComputeOperator Fortran API
Edoardo Centofanti
edoardo.centofanti01 at universitadipavia.it
Thu Jun 18 03:14:24 CDT 2026
Dear users,
I am working on a finite element Fortran code and I would like to extract
the preconditioned operator to explore its spectral properties. I know that
the KSPComputeOperator routine exists in C.
How can I call it from Fortran? I am currently using PETSc 3.20.2.
So far I have tried
call KSPComputeOperator(ksp,MATMPIAIJ,AAprec,ierr)
and also its old/deprecated version
call KSPComputeExplicitOperator(ksp,AAprec,ierr)
But in both cases I got
undefined reference to `kspcomputeoperator_'/`kspcomputeexplicitoperator_'
when compiling
Thanks in advance,
Edoardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260618/553d6c7f/attachment.html>
More information about the petsc-users
mailing list