<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&nbsp; simply use</p>
<p>&quot;do j=1,size_y</p>
<p>&nbsp;do i=1,size_x</p>
<p>&nbsp;&nbsp;matsetvalue ....</p>
<p>&nbsp;end do</p>
<p>end do&quot;</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&#39;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>