[petsc-dev] fix for MatGetRowIJ_SeqSBAIJ
Barry Smith
bsmith at mcs.anl.gov
Thu Feb 12 11:04:52 CST 2015
> On Feb 12, 2015, at 9:27 AM, hong at aspiritech.org wrote:
>
> Stefano,
> I'll apply your patch to petsc-release.
Hmm, petsc maint? If possible?
> Thanks!
> Hong
>
> On Thu, Feb 12, 2015 at 5:56 AM, Stefano Zampini <stefano.zampini at gmail.com> wrote:
> 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
>
More information about the petsc-dev
mailing list