https://urldefense.us/v3/__https://petsc.org/release/manualpages/Sys/PetscSortInt/__;!!G_uCfscf7eWS!abfR-2RYdZsOXFaja4qPl17LNED2IYBaty9XZrlDUTRk3PGyPVqfaHKUMl9w130BTQi21XlV1oOhUbxVmyOhOUI1Y9A$
'na' should be PetscCount Satish On Tue, 1 Oct 2024, Adrian Croucher wrote: > hi > > I just pulled PETSc 3.22 and tried to build my (Fortran) code with it. I'm > getting compilation errors when it gets to calls to PetscSortInt(): > > 567 | call PetscSortInt(na, asort, ierr); CHKERRQ(ierr) > | 1 > Error: Type mismatch in argument ‘a’ at (1); passed INTEGER(4) to INTEGER(8) > > Here na is PetscInt, asort an array of PetscInt and ierr is PetscErrorCode. > > Do I need to make changes to get this to work again? > > - Adrian > >