Commits

BarryFSmith committed 662a7ba

did not mirror 1d DMDA values correctly due to previous change consulidating block size
-options_table should have been -options_view twenty years ago

Comments (0)

Files changed (2)

src/dm/impls/da/da1.c

     for (i=0; i<x; i++) idx [nn++] = xs + i;  /* Non-ghost points */
 
     for (i=0; i<(sDist); i++) { /* Right ghost points */
-      if ((xe+i)<dof) idx[nn++] =  xe+i;
-      else              idx[nn++] = M - (i + 2);
+      if ((xe+i)<M) idx[nn++] =  xe+i;
+      else          idx[nn++] = M - (i + 1);
     }
   } else {      /* Now do all cases with no periodicity */
     if (0 <= xs-sDist) {

src/sys/objects/pinit.c

   /* preemptive call to avoid listing this option in options table as unused */
   ierr = PetscOptionsHasName(NULL,"-malloc_dump",&flg1);CHKERRQ(ierr);
   ierr = PetscOptionsHasName(NULL,"-objects_dump",&flg1);CHKERRQ(ierr);
-  ierr = PetscOptionsGetBool(NULL,"-options_table",&flg2,NULL);CHKERRQ(ierr);
+  ierr = PetscOptionsGetBool(NULL,"-options_view",&flg2,NULL);CHKERRQ(ierr);
 
   if (flg2) {
     PetscViewer viewer;