<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 10 Dec 2023, at 8:40 AM, Stephan Köhler <stephan.koehler@math.tu-freiberg.de> wrote:</div><br class="Apple-interchange-newline"><div>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>
Dear PETSc/Tao team,
<br>
<br>
there is a bug in the voector interface: In the function
<br>
VecNorm, see, eg.
<a class="moz-txt-link-freetext" href="https://petsc.org/release/src/vec/vec/interface/rvector.c.html#VecNorm">https://petsc.org/release/src/vec/vec/interface/rvector.c.html#VecNorm</a>
line 197 the check for consistency in line 214 is done on the wrong
communicator. The
communicator should be PETSC_COMM_SELF.<br>
<span _d-id="11028" class="--l --r sentence_highlight">Otherwise the
program may hang when PetscCheck is executed.<br></span></div></div></blockquote><div><br></div><div>I think the communicator should not be changed, but instead, the check/conditional should be changed, à la PetscValidLogicalCollectiveBool().</div><div><br></div><div>Thanks,</div><div>Pierre</div><br><blockquote type="cite"><div><div><span _d-id="11028" class="--l --r sentence_highlight">
Please find a minimal example attached.<br>
</span><br>
<br>
Kind regards,
<br>
Stephan Köhler
<pre class="moz-signature" cols="72">--
Stephan Köhler
TU Bergakademie Freiberg
Institut für numerische Mathematik und Optimierung
Akademiestraße 6
09599 Freiberg
Gebäudeteil Mittelbau, Zimmer 2.07
Telefon: +49 (0)3731 39-3188 (Büro)</pre>
</div>
<span id="cid:57B3A19E-AFE9-4AF6-8FBE-DD88C7D70C9A"><minimal_ex_vec_norm.cpp></span><span id="cid:D82740C5-DBB1-40DB-94A6-14CBC2B7D4DB"><OpenPGP_0xC9BF2C20DFE9F713.asc></span></div></blockquote></div><br></body></html>