<p>Hi,</p>
<p>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</p>
<p>"do j=1,size_y</p>
<p> do i=1,size_x</p>
<p> matsetvalue ....</p>
<p> end do</p>
<p>end do"</p>
<p>to insert values into all the cells </p>
<p>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?</p>
<p>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?</p>
<p>Thanks</p>