Hi, I need to insert values into a matrix and then solve this poisson eqn as part of my cfd code. For efficiency sake, I simply use
"do j=1,size_y do i=1,size_x matsetvalue .... end do end do" to insert values into all the cells Then for specific cells, I need to enter some other values. In other words, for specific rows of the matrix, I need to zero the whole row and insert new values. How can I do that? I tried to use MatZeroRows but it says it's not for unassembled matrix. But I need to zero the particular row, insert values, and then finally assembly it. Is there a command to do this? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070610/c3285549/attachment.htm>
