How to get more information about mallocs during MatSetValues()

Jed Brown jed at
Thu Sep 24 04:32:11 CDT 2009

Thomas Witkowski wrote:

> Is there an easy way to find out, why Petsc must do some mallocs?

try MatSetOption(A,MAT_NEW_NONZERO_ALLOCATION_ERR,PETSC_TRUE) and catch the error in a debugger.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the petsc-users mailing list