[petsc-users] Question about MatGetRowMax

Sajid Ali sajidsyed2021 at u.northwestern.edu
Tue Sep 8 14:37:01 CDT 2020


Hi Hong,

A related bugfix is that lines 2444 and 2447 from
src/mat/impls/aij/mpi/mpiaij.c in the current petsc-master are missing a
check for validity of idx. Adding a check ( if (idx)  ...) before accessing
the entries of idx might be necessary (since the docs say that the idx
argument is optional).

Thanks for the insight into the cause of this bug.

-- 
Sajid Ali | PhD Candidate
Applied Physics
Northwestern University
s-sajid-ali.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200908/909aa207/attachment.html>


More information about the petsc-users mailing list