Hi, I did not find any function doing this in the manual. Could someone suggest a good way to do this? Thanks Yifei -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120809/33ba32f2/attachment.html>