<div dir="ltr">It looks like we don't have a Fortran interface for this. In the source code:<div><pre width="80" style="color:rgb(0,0,0)"><a name="line2366">2366: </a><font color="#B22222"> Developer Note:</font>
<a name="line2367">2367: </a><font color="#B22222"> This is labeled with C so does not automatically generate Fortran stubs and interfaces</font>
<a name="line2368">2368: </a><font color="#B22222"> because it requires multiple Fortran interfaces depending on which arguments are scalar or arrays.</font>
</pre>Someone else might be able to offer a workaround.</div><div><br></div><div>Thanks,</div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 28, 2023 at 5:46 AM Frank Bramkamp <<a href="mailto:bramkamp@nsc.liu.se">bramkamp@nsc.liu.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear PETSc team,<br>
<br>
<br>
We are using the latest petsc version 3.20.1, intel compiler 2023,<br>
and we found the following problem:<br>
<br>
We want to call the function MatGetValuesLocal to extract a block sub-matrix<br>
from an assembled matrix (e.g. a 5x5 blocked sub matrix). We use the matrix format MatCreateBAIJ in parallel.<br>
In particular we try to call MatGetValuesLocal in Fortran.<br>
<br>
It seems that the linked does not find the subroutine MatGetValuesLocal.<br>
The subroutine MatGetValues seems to be fine.<br>
I guess that the fortran stubs/fortran interface is missing for this routine.<br>
On the documentation side, you also write a note for developers that the fortran stubs and interface<br>
Is not automatically generated for MatGetValuesLocal. So maybe that has been forgotten to do.<br>
<br>
<br>
Unfortunately I do not have any small test example, since we just incorporated the function call into our own software.<br>
Otherwise I would first have to set a small test example for the parallel case.<br>
<br>
I think there is also an include file where one can check the fortran interfaces ?!<br>
I forgot where to look this up.<br>
<br>
<br>
Greetings, Frank Bramkamp<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div>