<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 25, 2015 at 1:03 PM, Eric Chamberland <span dir="ltr"><<a href="mailto:Eric.Chamberland@giref.ulaval.ca" target="_blank">Eric.Chamberland@giref.ulaval.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
while looking for where in the world do I insert the (135,9) entry in my matrix, I have discovered that the column # shown is wrong in parallel!<br></blockquote><div><br></div><div>We have talked about this before. It is certainly not easy. The error is given by the embedded serial matrix, whereas you want</div><div>the parallel column. It would be good if we could restructure to give that back.</div><div><br></div><div>  Thanks,</div><div><br></div><div>      Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am using PETsc 3.5.3.<br>
<br>
The full error message is:<br>
<br>
[0]PETSC ERROR: MatSetValues_MPIAIJ() line 564 in /home/mefpp_ericc/petsc-3.5.3/<u></u>src/mat/impls/aij/mpi/mpiaij.c Inserting a new nonzero (135, 9) into matrix<br>
<br>
This line code is a call to a #defined macro:<br>
<br>
MatSetValues_SeqAIJ_B_Private(<u></u>row,col,value,addv);<br>
<br>
where the "col" parameter is not equal to "in[j]"!!!<br>
<br>
in gdb, printing "in[j]" gave me:<br>
<br>
print in[j]<br>
$6 = 537<br>
<br>
while "col" is:<br>
<br>
print col<br>
$7 = 9<br>
<br>
So, I expected to have a message telling me that (135,537) and not (135,9) is a new entry matrix!!!<br>
<br>
Would it be a big work to fix this so that the col # displayed is correct?<br>
<br>
Thanks!<span class="HOEnZb"><font color="#888888"><br>
<br>
Eric<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>