Commits

Peter Brune committed 8ad1f83 Merge

Merge branch 'prbrune/mat-matcolor'

  • Participants
  • Parent commits d98d5da, 924833a

Comments (0)

Files changed (1)

File src/snes/interface/snesj2.c

   if (!color) {
     ierr = SNESGetDM(snes,&dm);CHKERRQ(ierr);
     ierr = DMHasColoring(dm,&hascolor);CHKERRQ(ierr);
+    matcolor = PETSC_FALSE;
     ierr = PetscOptionsGetBool(((PetscObject)snes)->prefix,"-snes_fd_color_use_mat",&matcolor,NULL);CHKERRQ(ierr);
     if (hascolor && !matcolor) {
       ierr = DMCreateColoring(dm,IS_COLORING_GLOBAL,&iscoloring);CHKERRQ(ierr);