Commits

Vijay Mahadevan committed 2b007a8

Fix the mistake in the example introduced from merge.

  • Participants
  • Parent commits 4907a4d

Comments (0)

Files changed (1)

src/ts/examples/tutorials/ex30.cxx

   PetscInt               *gindices = new PetscInt[range->size()];
   merr = user.pcomm->get_moab()->tag_get_data(ltog_tag, *range, gindices);MBERRNM(merr);
 
-  ierr = ISLocalToGlobalMappingCreate(PETSC_COMM_SELF, range->size(), gindices,PETSC_COPY_VALUES, &ltog);CHKERRQ(ierr);
-  ierr = MatSetLocalToGlobalMappingBlock(*J,ltog,ltog);CHKERRQ(ierr);
+  ierr = ISLocalToGlobalMappingCreate(PETSC_COMM_SELF, 2, range->size(), gindices,PETSC_COPY_VALUES, &ltog);CHKERRQ(ierr);
+  ierr = MatSetLocalToGlobalMapping(*J,ltog,ltog);CHKERRQ(ierr);
 
   // Clean up:
   ierr = ISLocalToGlobalMappingDestroy(&ltog);CHKERRQ(ierr);