[petsc-users] Changing the diagonal of a matrix via a vector
Jed Brown
jed at 59A2.org
Wed Apr 27 12:41:43 CDT 2011
On Wed, Apr 27, 2011 at 18:41, Xiangdong Liang <xdliang at gmail.com> wrote:
> Thanks a lot, Jed. I am using Petsc's built-in function, VecCreate and
> MatCreate. they are supposed to return PetscErrorCode. However, I still get
> "warning: return makes pointer from integer without a cast" for these
> built-in functions.
There is a "return" inside the CHKERRQ macro. You either need to make *your*
function return PetscErrorCode or use a different checking macro (e.g.
CHKERRABORT).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110427/742187be/attachment.htm>
More information about the petsc-users
mailing list