[petsc-users] How to set the value in Ax=b.

Abhyankar, Shrirang G. abhyshr at mcs.anl.gov
Mon Apr 28 19:39:40 CDT 2014

Zero out the sixth row, set A[5][5]= 1.0 and b[5]=3.14.

On Apr 28, 2014, at 7:00 PM, "丁老师" <ztdepyahoo at 163.com<mailto:ztdepyahoo at 163.com>> wrote:

Dear group:
    I have assembled the coefficients of A and b. My computation alogrithm need to specify a component of x to be a constant value. for example x[5]=3.14;
then how to resolve this problem.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140429/3fd2953e/attachment.html>

More information about the petsc-users mailing list