Commits

Dmitry Karpeyev committed 0e8f364

PCGASM: fixed a copy-paste bug.

Comments (0)

Files changed (1)

src/ksp/pc/impls/gasm/gasm.c

       if (!iis) {
         ierr = PetscMalloc1(n,&osm->iis);CHKERRQ(ierr);
         for (i=0; i<n; i++) {
-          for (i=0; i<n; i++) {ierr = PetscObjectReference((PetscObject)ois[i]);CHKERRQ(ierr);}
+          ierr = PetscObjectReference((PetscObject)ois[i]);CHKERRQ(ierr);
           osm->iis[i] = ois[i];
         }
       }
       if (!ois) {
         ierr = PetscMalloc1(n,&osm->ois);CHKERRQ(ierr);
         for (i=0; i<n; i++) {
-          for (i=0; i<n; i++) {
-            ierr = PetscObjectReference((PetscObject)iis[i]);CHKERRQ(ierr);
-            osm->ois[i] = iis[i];
-          }
+	  ierr = PetscObjectReference((PetscObject)iis[i]);CHKERRQ(ierr);
+	  osm->ois[i] = iis[i];
         }
         if (osm->overlap > 0) {
           /* Extend the "overlapping" regions by a number of steps */