<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hei,</p>
<p>thanks for the idea, that solved my problem! I noticed that I was
writing out of bounds in an earlier loop, which then resulted in
the behavior observed below.</p>
<p>Regards,</p>
<p>Roland<br>
</p>
<div class="moz-cite-prefix">Am 17.01.21 um 19:40 schrieb Stefano
Zampini:<br>
</div>
<blockquote type="cite"
cite="mid:CAGPUisio4fY4PNPuwJmjyf3w5XCoAz8ca4c85BEdu23mys=UhA@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="auto">Valgrind <a href="https://valgrind.org/"
moz-do-not-send="true">https://valgrind.org/</a></div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Il Dom 17 Gen 2021, 21:28
Roland Richter <<a href="mailto:roland.richter@ntnu.no"
moz-do-not-send="true">roland.richter@ntnu.no</a>> ha
scritto:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p>Dear all,</p>
<p>I am currently encountering issues in my program when
calling MatDiagonalScale(matrix, NULL, vector) in an
MPI-context for at least two threads. The backtrace from
gdb (and the error output) tells me that the problem lies
apparently in PetscSFBcastAndOpBegin(), with the exact
error listed as <i>petsc/src/vec/is/sf/interface/sf.c
Wrong type of object: Parameter # 1 <br>
</i></p>
<p>When printing the involved matrix and vector, everything
looks as expected (the matrix is split over the processes
equally with continuous rows, the vector is distributed
over both processes).</p>
<p>Is the issue that my vector is distributed over several
processes? Or is there another issue I am not seeing here?</p>
<p>I tried to narrow the problem down by writing a MWE, but
was not able to reproduce it in a smaller scale.
Therefore, are there other approaches I could try, too?</p>
<p>Thanks!</p>
<p>Regards,</p>
<p>Roland Richter<br>
</p>
</div>
</blockquote>
</div>
</blockquote>
</body>
</html>