[petsc-users] Fortran problem MatGetValuesLocal

Frank Bramkamp bramkamp at nsc.liu.se
Tue Nov 28 07:46:28 CST 2023


Dear PETSc team,


We are using the latest petsc version 3.20.1, intel compiler 2023,
and we found the following problem:

We want to call the function MatGetValuesLocal to extract a block sub-matrix
from an assembled matrix (e.g. a 5x5 blocked sub matrix). We use the matrix format MatCreateBAIJ in parallel.
In particular we try to call MatGetValuesLocal in Fortran.

It seems that the linked does not find the subroutine MatGetValuesLocal.
The subroutine MatGetValues seems to be fine.
I guess that the fortran stubs/fortran interface is missing for this routine.
On the documentation side, you also write a note for developers that the fortran stubs and interface
Is not automatically generated for MatGetValuesLocal. So maybe that has been forgotten to do.


Unfortunately I do not have any small test example, since we just incorporated the function call into our own software.
Otherwise I would first have to set a small test example for the parallel case.

I think there is also an include file where one can check the fortran interfaces ?!
I forgot where to look this up.


Greetings, Frank Bramkamp












More information about the petsc-users mailing list