[petsc-users] Fortran problem MatGetValuesLocal

Barry Smith bsmith at petsc.dev
Tue Nov 28 08:40:37 CST 2023


  This is fixed in branch barry/2023-11-28/add-matsetvalueslocal-fortran/release see also https://gitlab.com/petsc/petsc/-/merge_requests/7065

> On Nov 28, 2023, at 8:46 AM, Frank Bramkamp <bramkamp at nsc.liu.se> wrote:
> 
> 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
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231128/8213a49a/attachment.html>


More information about the petsc-users mailing list