[petsc-dev] Fwd: bad SETERRQ in MatGetDiagonalBlock()

Jed Brown jed at 59A2.org
Wed May 12 12:05:58 CDT 2010


On Wed, 12 May 2010 13:58:26 -0300, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> Likely Barry did not got this

@@ -73,9 +73,7 @@
   } else if (size == 1) {
     *a = A;
     *iscopy = PETSC_FALSE;
-  } else {
-    SETERRQ(PETSC_COMM_SELF,PETSC_ERR_SUP,"Cannot get diagonal part for this matrix");
-  }
+  } SETERRQ(((PetscObject)A)->comm,PETSC_ERR_SUP,"Cannot get diagonal part for this matrix");
   PetscFunctionReturn(0);
 }


Clearly, fix pushed.

Jed



More information about the petsc-dev mailing list