<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    I'm moving from 3.10 to 3.13 and ran into a compilation problem
    with  MatSeqBAIJSetPreallocation( ).<br>
    The manual page shows:<br>
    <br>
    <p class="moz-signature" cols="72"><a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</a>
      <a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSeqBAIJSetPreallocation.html#MatSeqBAIJSetPreallocation">MatSeqBAIJSetPreallocation</a>(<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/Mat.html#Mat">Mat</a>
      B,<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>
      bs,<a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>
      nz,const <a
href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a>
      nnz[])<br>
      <br>
      <br>
      Which I think is the way it was before but my code is now tossing
      a compile error<br>
      <br>
      <br>
         65 |      &                              
      PETSC_NULL_INTEGER,mr(np(246)),<br>
            |                                     1<br>
      Error: Rank mismatch in argument 'c' at (1) (scalar and rank-1)<br>
      <br>
      <br>
      The full line looks like:<br>
              call MatSeqBAIJSetPreallocation(Mmat,nsbk,<br>
          & PETSC_NULL_INTEGER,mr(np(246)),<br>
          & ierr)<br>
      <br>
      Any suggestions on what I've messed up?<br>
      -sanjay
    </p>
  </body>
</html>