Commits

BarryFSmith committed 8f92561

some compilers complain about false uninitialized variables

Comments (0)

Files changed (1)

src/ksp/pc/impls/gamg/tools.c

 */
 PETSC_STATIC_INLINE PetscErrorCode MatCollapseRows(Mat Amat,PetscInt start,PetscInt bs,PetscInt *w0,PetscInt *w1,PetscInt *w2,PetscInt *ncollapsed,PetscInt **collapsed)
 {
-  PetscInt       i,nprev,*cprev = w0,ncur,*ccur = w1,*merged = w2,*cprevtmp;
+  PetscInt       i,nprev,*cprev = w0,ncur = 0,*ccur = w1,*merged = w2,*cprevtmp;
   PetscErrorCode ierr;
 
   PetscFunctionBegin;