1. petsc
  2. PETSc
  3. petsc

Commits

Matt Knepley  committed 58c26cb

Mat: Cast to remove warning

  • Participants
  • Parent commits 9d80f4a
  • Branches master

Comments (0)

Files changed (1)

File src/mat/impls/aij/mpi/mpiaij.c

View file
  • Ignore whitespace
   ierr = PetscSFCreate(PetscObjectComm((PetscObject) A), &sf);CHKERRQ(ierr);
   ierr = PetscSFSetGraph(sf, n, N, NULL, PETSC_OWN_POINTER, rrows, PETSC_OWN_POINTER);CHKERRQ(ierr);
   /* Collect flags for rows to be zeroed */
-  ierr = PetscSFReduceBegin(sf, MPIU_INT, rows, lrows, MPI_LOR);CHKERRQ(ierr);
-  ierr = PetscSFReduceEnd(sf, MPIU_INT, rows, lrows, MPI_LOR);CHKERRQ(ierr);
+  ierr = PetscSFReduceBegin(sf, MPIU_INT, (PetscInt *) rows, lrows, MPI_LOR);CHKERRQ(ierr);
+  ierr = PetscSFReduceEnd(sf, MPIU_INT, (PetscInt *) rows, lrows, MPI_LOR);CHKERRQ(ierr);
   ierr = PetscSFDestroy(&sf);CHKERRQ(ierr);
   /* Compress and put in row numbers */
   for (r = 0; r < n; ++r) if (lrows[r] >= 0) lrows[len++] = r;