[petsc-dev] fix for MatGetRowIJ_SeqSBAIJ

Stefano Zampini stefano.zampini at gmail.com
Thu Feb 12 05:56:17 CST 2015


attached is a patch for MatGetRowIJ_SeqSBAIJ.

the square brackets for array indexing take precedence on pointer
dereference (see
http://en.wikipedia.org/wiki/Order_of_operations#Programming_languages)

Don't know why this has not been fixed yet, the commit is from 2007 (
https://bitbucket.org/petsc/petsc/commits/8f7157ef067da8bcc67a53842181bca9de0f5d87
)

-- 
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150212/c71d5b40/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_sbaij
Type: application/octet-stream
Size: 710 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150212/c71d5b40/attachment.obj>


More information about the petsc-dev mailing list