BarryFSmith  committed 554c65c

DMCreateMatrix_DA_1d_MPIAIJ_Fill() needs at least 2 points per grid point

  • Participants
  • Parent commits 04a5995
  • Branches master

Comments (0)

Files changed (1)

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

   ierr = PetscMemzero(cols,nx*nc*sizeof(PetscInt));CHKERRQ(ierr);
   ierr = PetscMemzero(ocols,nx*nc*sizeof(PetscInt));CHKERRQ(ierr);
+  if (nx < 2) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,"Need at least two grid points per process");
         note should be smaller for first and last process with no periodic
         does not handle dfill