1. petsc
  2. PETSc
  3. petsc

Commits

BarryFSmith  committed 34d8655 Merge

Merge branch 'barry/reduce-dmsetup-da-memoryusage' of bitbucket.org:petsc/petsc into barry/reduce-dmsetup-da-memoryusage

  • Participants
  • Parent commits 19bfd8f, 8601f60
  • Branches master

Comments (0)

Files changed (1)

File src/dm/impls/da/hypre/mhyp.c

View file
 
   /* get values that will be used repeatedly in MatSetValuesLocal() and MatZeroRowsLocal() repeatedly */
   ierr        = MatGetOwnershipRange(mat,&ex->rstart,NULL);CHKERRQ(ierr);
-  ierr        = DMDAGetGlobalIndices(ex->da,NULL,&ex->gindices);CHKERRQ(ierr);
+  ierr        = DMDAGetGlobalIndices(ex->da,NULL, (const PetscInt **) &ex->gindices);CHKERRQ(ierr);
   ierr        = DMDAGetGhostCorners(ex->da,0,0,0,&ex->gnx,&ex->gnxgny,0);CHKERRQ(ierr);
   ex->gnxgny *= ex->gnx;
   ierr        = DMDAGetCorners(ex->da,&ex->xs,&ex->ys,&ex->zs,&ex->nx,&ex->ny,0);CHKERRQ(ierr);
 
   /* get values that will be used repeatedly in MatSetValuesLocal() and MatZeroRowsLocal() repeatedly */
   ierr = MatGetOwnershipRange(mat,&ex->rstart,NULL);CHKERRQ(ierr);
-  ierr = DMDAGetGlobalIndices(ex->da,NULL,&ex->gindices);CHKERRQ(ierr);
+  ierr = DMDAGetGlobalIndices(ex->da,NULL,(const PetscInt **) &ex->gindices);CHKERRQ(ierr);
   ierr = DMDAGetGhostCorners(ex->da,0,0,0,&ex->gnx,&ex->gnxgny,&ex->gnxgnygnz);CHKERRQ(ierr);
 
   ex->gnxgny    *= ex->gnx;