Commits

BarryFSmith committed 02b6de1

need to call MatDestroy_MatRedundant() for SeqAIJ destroy also

  • Participants
  • Parent commits 4472c49

Comments (0)

Files changed (1)

File src/mat/impls/aij/seq/aij.c

 }
 #endif
 
+extern PetscErrorCode MatDestroy_MatRedundant(Mat);
+
 #undef __FUNCT__
 #define __FUNCT__ "MatDestroy_SeqAIJ"
 PetscErrorCode MatDestroy_SeqAIJ(Mat A)
 #if defined(PETSC_USE_LOG)
   PetscLogObjectState((PetscObject)A,"Rows=%D, Cols=%D, NZ=%D",A->rmap->n,A->cmap->n,a->nz);
 #endif
+  ierr = MatDestroy_MatRedundant(A);CHKERRQ(ierr);
   ierr = MatSeqXAIJFreeAIJ(A,&a->a,&a->j,&a->i);CHKERRQ(ierr);
   ierr = ISDestroy(&a->row);CHKERRQ(ierr);
   ierr = ISDestroy(&a->col);CHKERRQ(ierr);