1. petsc
  2. PETSc
  3. petsc

Commits

Jed Brown  committed 330d42d Merge

Merge branch 'maint'

* maint:
VecView_MPI_DA: fix gsizes bug (bad conversion in parent commit)

  • Participants
  • Parent commits a4a39e5, 4db9b48
  • Branches master

Comments (0)

Files changed (1)

File src/dm/impls/da/gr2.c

View file
   gsizes[0]  = dof;
   ierr       = PetscMPIIntCast(dd->M,gsizes+1);CHKERRQ(ierr);
   ierr       = PetscMPIIntCast(dd->N,gsizes+2);CHKERRQ(ierr);
-  ierr       = PetscMPIIntCast(dd->P,gsizes+1);CHKERRQ(ierr);
+  ierr       = PetscMPIIntCast(dd->P,gsizes+3);CHKERRQ(ierr);
   lsizes[0]  = dof;
   ierr       = PetscMPIIntCast((dd->xe-dd->xs)/dof,lsizes+1);CHKERRQ(ierr);
   ierr       = PetscMPIIntCast(dd->ye-dd->ys,lsizes+2);CHKERRQ(ierr);