Commits

Lisandro Dalcin  committed f9566d6

Fix after changes to MatGetRowIJ() in petsc-dev

  • Participants
  • Parent commits 0d09ff7

Comments (0)

Files changed (1)

File src/petigapce.c

       ierr = PetscTryMethod(A,"MatGetDiagonalBlock_C",(Mat,Mat*),(A,&Ad));CHKERRQ(ierr);
       if (Ad) {
         PetscBool compressed,done;
-        PetscInt  na,*ia,*ja;
+        PetscInt  na;
+        #if PETSC_VERSION_(3,3,0) || PETSC_VERSION_(3,2,0)
+        PetscInt *ia,*ja;
+        #else
+        const PetscInt *ia,*ja;
+        #endif
         ierr = MatGetDiagonalBlock(A,&Ad);CHKERRQ(ierr);
         compressed = (baij||sbaij) ? PETSC_TRUE: PETSC_FALSE;
         ierr = MatGetRowIJ(Ad,0,PETSC_FALSE,compressed,&na,&ia,&ja,&done);CHKERRQ(ierr);